diff --git "a/nlq_dataset.json" "b/nlq_dataset.json" new file mode 100644--- /dev/null +++ "b/nlq_dataset.json" @@ -0,0 +1,200002 @@ +[ + { + "natural_query": "Show me all products in the decade category with a price over $943.1.", + "sql_query": "SELECT * FROM products WHERE category = 'decade' AND price > 943.1", + "company": { + "name": "Shea-Ramsey", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "trial", + "category": "decade", + "price": 943.1, + "stock_quantity": 409 + }, + "customer": { + "name": "Michelle Ramsey", + "age": 75, + "country": "Somalia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dean-Marquez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dean-Marquez", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "president", + "category": "maybe", + "price": 357.48, + "stock_quantity": 553 + }, + "customer": { + "name": "Elaine Sullivan", + "age": 40, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Jones, Anderson and Sparks", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "let", + "category": "laugh", + "price": 650.59, + "stock_quantity": 476 + }, + "customer": { + "name": "Gary Moody", + "age": 57, + "country": "Guyana" + } + }, + { + "natural_query": "What are the top 4 products by orders for Garcia and Sons last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Garcia and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4", + "company": { + "name": "Garcia and Sons", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "fall", + "category": "every", + "price": 875.28, + "stock_quantity": 731 + }, + "customer": { + "name": "Jennifer Wilson", + "age": 18, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Robinson-Arnold", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "actually", + "category": "stage", + "price": 509.15, + "stock_quantity": 456 + }, + "customer": { + "name": "Christine Frazier", + "age": 23, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Williams PLC", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "standard", + "category": "lot", + "price": 127.63, + "stock_quantity": 644 + }, + "customer": { + "name": "Lynn Levine", + "age": 35, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Parker Inc", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "good", + "category": "ever", + "price": 155.67, + "stock_quantity": 313 + }, + "customer": { + "name": "Connor Carlson", + "age": 28, + "country": "Montenegro" + } + }, + { + "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'", + "company": { + "name": "Obrien-Marks", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "hope", + "category": "research", + "price": 434.48, + "stock_quantity": 551 + }, + "customer": { + "name": "Adrian Patton", + "age": 49, + "country": "Martinique" + } + }, + { + "natural_query": "List all products of Hernandez PLC ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Hernandez PLC' ORDER BY rating DESC", + "company": { + "name": "Hernandez PLC", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "ever", + "category": "wife", + "price": 699.32, + "stock_quantity": 303 + }, + "customer": { + "name": "Donna Green", + "age": 34, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Wilson-Hodge", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "collection", + "category": "strong", + "price": 419.18, + "stock_quantity": 502 + }, + "customer": { + "name": "Charlene Morales", + "age": 30, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Garcia-Bryant", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "forget", + "category": "true", + "price": 801.22, + "stock_quantity": 547 + }, + "customer": { + "name": "Dennis Curry", + "age": 38, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Wilson-Hall", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "shake", + "category": "message", + "price": 244.17, + "stock_quantity": 491 + }, + "customer": { + "name": "Erik Horton", + "age": 59, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Thomas Inc", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "box", + "category": "where", + "price": 99.05, + "stock_quantity": 924 + }, + "customer": { + "name": "Matthew Gross", + "age": 20, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Hale Group", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "letter", + "category": "there", + "price": 209.55, + "stock_quantity": 753 + }, + "customer": { + "name": "Felicia Parker", + "age": 53, + "country": "Burkina Faso" + } + }, + { + "natural_query": "How many orders were placed for Evans, Moore and Mclaughlin between 2023-11-10 and 2024-06-26?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Evans, Moore and Mclaughlin' AND order_date BETWEEN '2023-11-10' AND '2024-06-26'", + "company": { + "name": "Evans, Moore and Mclaughlin", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "senior", + "category": "major", + "price": 464.66, + "stock_quantity": 516 + }, + "customer": { + "name": "Audrey Johnson", + "age": 59, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Williams, Gonzalez and Scott", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "when", + "category": "inside", + "price": 52.12, + "stock_quantity": 862 + }, + "customer": { + "name": "Tristan Bell", + "age": 59, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Berg Group", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "affect", + "category": "significant", + "price": 650.04, + "stock_quantity": 638 + }, + "customer": { + "name": "Jessica Mcpherson", + "age": 64, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Gordon, Powers and Dixon", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "rise", + "category": "wall", + "price": 411.34, + "stock_quantity": 143 + }, + "customer": { + "name": "Jennifer Franklin", + "age": 79, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Jones, Williamson and Love", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "question", + "category": "control", + "price": 823.84, + "stock_quantity": 552 + }, + "customer": { + "name": "Jill Edwards", + "age": 60, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Blake, Chung and Coleman", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "executive", + "category": "growth", + "price": 22.04, + "stock_quantity": 662 + }, + "customer": { + "name": "Vanessa Nichols", + "age": 67, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Willis, Villegas and Proctor", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "see", + "category": "knowledge", + "price": 136.22, + "stock_quantity": 276 + }, + "customer": { + "name": "Jack Smith", + "age": 64, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Kline-Smith", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "science", + "category": "impact", + "price": 582.59, + "stock_quantity": 506 + }, + "customer": { + "name": "Ashley Butler", + "age": 70, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Reyes, Jackson and Mcdaniel", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "use", + "category": "do", + "price": 928.71, + "stock_quantity": 175 + }, + "customer": { + "name": "Gary White", + "age": 76, + "country": "Puerto Rico" + } + }, + { + "natural_query": "List all customers and their total order value for Jones-Thomas.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Jones-Thomas' GROUP BY c.customer_id", + "company": { + "name": "Jones-Thomas", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "us", + "category": "physical", + "price": 956.55, + "stock_quantity": 825 + }, + "customer": { + "name": "David Perez", + "age": 59, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Brooks-Wilson", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "read", + "category": "sign", + "price": 638.66, + "stock_quantity": 475 + }, + "customer": { + "name": "David Miller", + "age": 62, + "country": "Saint Lucia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Romero Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Romero Group", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "Mr", + "category": "step", + "price": 203.07, + "stock_quantity": 893 + }, + "customer": { + "name": "Dawn Matthews", + "age": 54, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Simpson, Miller and Flores", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "south", + "category": "life", + "price": 32.78, + "stock_quantity": 908 + }, + "customer": { + "name": "Oscar Lewis", + "age": 66, + "country": "New Zealand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Price, Lester and Jimenez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Price, Lester and Jimenez", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "democratic", + "category": "trouble", + "price": 622.47, + "stock_quantity": 113 + }, + "customer": { + "name": "Todd Davis", + "age": 80, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Wright Group", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "stuff", + "category": "member", + "price": 864.1, + "stock_quantity": 889 + }, + "customer": { + "name": "Sandra Williams", + "age": 44, + "country": "Bangladesh" + } + }, + { + "natural_query": "What is the minimum quantity of all products for Peterson-Rodriguez?", + "sql_query": "SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Peterson-Rodriguez'", + "company": { + "name": "Peterson-Rodriguez", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "agreement", + "category": "them", + "price": 677.92, + "stock_quantity": 903 + }, + "customer": { + "name": "Angela Collins", + "age": 35, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gallegos, Larsen and Murray'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gallegos, Larsen and Murray", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "listen", + "category": "happen", + "price": 526.52, + "stock_quantity": 899 + }, + "customer": { + "name": "Jonathan Mccullough", + "age": 73, + "country": "Netherlands" + } + }, + { + "natural_query": "List all customers and their total order value for Thomas-Brown.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Thomas-Brown' GROUP BY c.customer_id", + "company": { + "name": "Thomas-Brown", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "run", + "category": "make", + "price": 505.98, + "stock_quantity": 483 + }, + "customer": { + "name": "Ronnie Sharp", + "age": 73, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Kelly-Santana", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "city", + "category": "drug", + "price": 895.68, + "stock_quantity": 544 + }, + "customer": { + "name": "Charles Taylor", + "age": 60, + "country": "Djibouti" + } + }, + { + "natural_query": "List all products of Barnes LLC ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Barnes LLC' ORDER BY stock_quantity ASC", + "company": { + "name": "Barnes LLC", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "behavior", + "category": "push", + "price": 562.11, + "stock_quantity": 416 + }, + "customer": { + "name": "Angelica Watson", + "age": 56, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Gates LLC", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "evening", + "category": "star", + "price": 556.58, + "stock_quantity": 72 + }, + "customer": { + "name": "Ian Chung", + "age": 50, + "country": "Gabon" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Franklin LLC?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Franklin LLC'", + "company": { + "name": "Franklin LLC", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "cause", + "category": "each", + "price": 512.29, + "stock_quantity": 936 + }, + "customer": { + "name": "Susan Palmer", + "age": 79, + "country": "Guam" + } + }, + { + "natural_query": "What are the top 3 products by orders for Anderson-Hampton this year?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson-Hampton' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3", + "company": { + "name": "Anderson-Hampton", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "since", + "category": "tonight", + "price": 151.42, + "stock_quantity": 378 + }, + "customer": { + "name": "Daniel Frank", + "age": 21, + "country": "Zambia" + } + }, + { + "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'", + "company": { + "name": "Wallace, Hobbs and Sharp", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "long", + "category": "order", + "price": 844.85, + "stock_quantity": 294 + }, + "customer": { + "name": "Jason Singh", + "age": 70, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Wilcox, Wilkins and Bauer", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "program", + "category": "thing", + "price": 548.01, + "stock_quantity": 409 + }, + "customer": { + "name": "Wanda Wilson", + "age": 45, + "country": "United Kingdom" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Cox Ltd?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Cox Ltd' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Cox Ltd", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "interview", + "category": "operation", + "price": 966.92, + "stock_quantity": 686 + }, + "customer": { + "name": "Jennifer Brown", + "age": 37, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Howard PLC", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "fight", + "category": "agree", + "price": 741.99, + "stock_quantity": 880 + }, + "customer": { + "name": "Holly Taylor", + "age": 79, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Gonzales Group", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "blue", + "category": "total", + "price": 607.34, + "stock_quantity": 229 + }, + "customer": { + "name": "Maria Keith", + "age": 36, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Shaw, Jones and Miller", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "history", + "category": "child", + "price": 619.12, + "stock_quantity": 265 + }, + "customer": { + "name": "Michelle Thompson", + "age": 57, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Peterson and Sons", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "leader", + "category": "item", + "price": 805.76, + "stock_quantity": 320 + }, + "customer": { + "name": "Collin Gonzalez", + "age": 56, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "David LLC", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "draw", + "category": "necessary", + "price": 523.86, + "stock_quantity": 372 + }, + "customer": { + "name": "Dale Daniels", + "age": 63, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Hancock Group", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "specific", + "category": "now", + "price": 146.96, + "stock_quantity": 342 + }, + "customer": { + "name": "Jennifer Richmond", + "age": 64, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Flores-Greene", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "themselves", + "category": "usually", + "price": 261.94, + "stock_quantity": 524 + }, + "customer": { + "name": "Mitchell Grant", + "age": 29, + "country": "Sweden" + } + }, + { + "natural_query": "How many orders were placed for Harper PLC between 2023-10-17 and 2024-04-03?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harper PLC' AND order_date BETWEEN '2023-10-17' AND '2024-04-03'", + "company": { + "name": "Harper PLC", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "experience", + "category": "data", + "price": 519.05, + "stock_quantity": 820 + }, + "customer": { + "name": "Kristi Bates", + "age": 57, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Miller, Barnes and Wolfe", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "series", + "category": "able", + "price": 964.44, + "stock_quantity": 727 + }, + "customer": { + "name": "Jenna Robinson", + "age": 66, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Rodriguez LLC", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "result", + "category": "away", + "price": 976.83, + "stock_quantity": 988 + }, + "customer": { + "name": "Jennifer Cook", + "age": 28, + "country": "Korea" + } + }, + { + "natural_query": "What are the top 6 products by customers for Hernandez, Harper and Cooley this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Hernandez, Harper and Cooley' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6", + "company": { + "name": "Hernandez, Harper and Cooley", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "pretty", + "category": "race", + "price": 208.16, + "stock_quantity": 875 + }, + "customer": { + "name": "Kimberly Smith", + "age": 46, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Lee-Smith", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "might", + "category": "live", + "price": 994.83, + "stock_quantity": 218 + }, + "customer": { + "name": "Angelica Lloyd", + "age": 66, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Drake, Barnett and Henderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Drake, Barnett and Henderson", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "trouble", + "category": "which", + "price": 220.42, + "stock_quantity": 978 + }, + "customer": { + "name": "Heather Romero", + "age": 72, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jackson, Golden and Burns'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jackson, Golden and Burns", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "religious", + "category": "group", + "price": 847.93, + "stock_quantity": 204 + }, + "customer": { + "name": "Jody Taylor", + "age": 42, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Morton Inc", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "baby", + "category": "however", + "price": 960.98, + "stock_quantity": 676 + }, + "customer": { + "name": "Kevin Mahoney", + "age": 50, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Owens Group", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "form", + "category": "summer", + "price": 305.15, + "stock_quantity": 288 + }, + "customer": { + "name": "Mrs. Brittany Herrera", + "age": 54, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Campbell Inc", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "or", + "category": "unit", + "price": 758.06, + "stock_quantity": 152 + }, + "customer": { + "name": "Linda Proctor", + "age": 70, + "country": "Turkmenistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murphy Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murphy Group", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "seek", + "category": "fear", + "price": 837.69, + "stock_quantity": 359 + }, + "customer": { + "name": "Jordan Gray", + "age": 56, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Miller-Moreno", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "sport", + "category": "skin", + "price": 969.33, + "stock_quantity": 40 + }, + "customer": { + "name": "Cameron Lawson", + "age": 34, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sawyer, Aguirre and Wong'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sawyer, Aguirre and Wong", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "air", + "category": "of", + "price": 602.46, + "stock_quantity": 795 + }, + "customer": { + "name": "Angela Nunez", + "age": 59, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Ali Group", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "break", + "category": "cold", + "price": 536.83, + "stock_quantity": 916 + }, + "customer": { + "name": "Eric Madden", + "age": 25, + "country": "Thailand" + } + }, + { + "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'", + "company": { + "name": "Callahan-Stokes", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "and", + "category": "employee", + "price": 232.42, + "stock_quantity": 816 + }, + "customer": { + "name": "Gerald Hancock", + "age": 69, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Rivas and Sons", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "might", + "category": "real", + "price": 246.3, + "stock_quantity": 982 + }, + "customer": { + "name": "Mary Roberts", + "age": 57, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Marsh, Owens and Johnson", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "exist", + "category": "ago", + "price": 616.8, + "stock_quantity": 559 + }, + "customer": { + "name": "Mr. Anthony Brown", + "age": 55, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Moss LLC", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "run", + "category": "likely", + "price": 935.29, + "stock_quantity": 609 + }, + "customer": { + "name": "Charles Garcia", + "age": 52, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Bradley-Best", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "act", + "category": "left", + "price": 194.28, + "stock_quantity": 498 + }, + "customer": { + "name": "Steven Klein", + "age": 62, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Gordon-Perez", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "walk", + "category": "dark", + "price": 291.15, + "stock_quantity": 342 + }, + "customer": { + "name": "Richard Bailey", + "age": 21, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Stephens, Hernandez and Allison", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "outside", + "category": "how", + "price": 730.37, + "stock_quantity": 883 + }, + "customer": { + "name": "Adam Hahn", + "age": 80, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Olson-Bowen", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "institution", + "category": "teach", + "price": 703.5, + "stock_quantity": 905 + }, + "customer": { + "name": "Patricia Bennett", + "age": 62, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Jackson Inc", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "court", + "category": "fish", + "price": 411.05, + "stock_quantity": 781 + }, + "customer": { + "name": "Jessica Adams", + "age": 33, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Evans and Brown", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "medical", + "category": "case", + "price": 581.96, + "stock_quantity": 657 + }, + "customer": { + "name": "Diana Hood", + "age": 42, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Norman and Sons", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "research", + "category": "admit", + "price": 855.93, + "stock_quantity": 906 + }, + "customer": { + "name": "Michael Taylor", + "age": 74, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Green-Chandler", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "station", + "category": "wrong", + "price": 573.98, + "stock_quantity": 50 + }, + "customer": { + "name": "Tyler Miller", + "age": 54, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Zimmerman LLC", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "learn", + "category": "agreement", + "price": 711.38, + "stock_quantity": 425 + }, + "customer": { + "name": "Samuel Ross", + "age": 50, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Robinson, Smith and Clay", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "when", + "category": "customer", + "price": 139.8, + "stock_quantity": 747 + }, + "customer": { + "name": "James Salazar", + "age": 42, + "country": "Peru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris-Ballard'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris-Ballard", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "any", + "category": "increase", + "price": 68.14, + "stock_quantity": 343 + }, + "customer": { + "name": "Christian Harris", + "age": 63, + "country": "Romania" + } + }, + { + "natural_query": "What is the total quantity of all products for Juarez Inc?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Juarez Inc'", + "company": { + "name": "Juarez Inc", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "adult", + "category": "own", + "price": 30.96, + "stock_quantity": 635 + }, + "customer": { + "name": "Alejandro Hicks", + "age": 68, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Hobbs Ltd", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "might", + "category": "option", + "price": 404.11, + "stock_quantity": 312 + }, + "customer": { + "name": "Chris White", + "age": 80, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Savage, Johnson and Miller", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "court", + "category": "cup", + "price": 629.04, + "stock_quantity": 321 + }, + "customer": { + "name": "Christopher Brooks", + "age": 79, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Russell-Neal", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "across", + "category": "decide", + "price": 473.71, + "stock_quantity": 37 + }, + "customer": { + "name": "Juan Nicholson", + "age": 20, + "country": "Christmas Island" + } + }, + { + "natural_query": "What is the average rating of all products for Andrews, Hall and Little?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Andrews, Hall and Little'", + "company": { + "name": "Andrews, Hall and Little", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "rate", + "category": "simple", + "price": 91.18, + "stock_quantity": 599 + }, + "customer": { + "name": "Paul Riggs", + "age": 56, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Andrews, Lopez and Foster", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "card", + "category": "catch", + "price": 728.84, + "stock_quantity": 683 + }, + "customer": { + "name": "Chase Warner", + "age": 42, + "country": "Palestinian Territory" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hall, Bush and Deleon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hall, Bush and Deleon", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "much", + "category": "reduce", + "price": 646.99, + "stock_quantity": 428 + }, + "customer": { + "name": "Brian Reese", + "age": 42, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Johnson-Jordan", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "yard", + "category": "picture", + "price": 274.34, + "stock_quantity": 559 + }, + "customer": { + "name": "Melissa Marshall", + "age": 74, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Pacheco, Beck and Martinez", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "town", + "category": "agreement", + "price": 997.74, + "stock_quantity": 18 + }, + "customer": { + "name": "Michele Cook", + "age": 45, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Stafford Group", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "relationship", + "category": "man", + "price": 508.39, + "stock_quantity": 310 + }, + "customer": { + "name": "George Copeland", + "age": 18, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Humphrey and Sons", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "including", + "category": "possible", + "price": 712.9, + "stock_quantity": 704 + }, + "customer": { + "name": "Jose Nicholson", + "age": 73, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Singh-Scott", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "culture", + "category": "heart", + "price": 752.4, + "stock_quantity": 176 + }, + "customer": { + "name": "Matthew Woods", + "age": 39, + "country": "Saint Pierre and Miquelon" + } + }, + { + "natural_query": "What is the total sales for each country in Rice, Hooper and Allison?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Rice, Hooper and Allison' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Rice, Hooper and Allison", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "maybe", + "category": "vote", + "price": 978.58, + "stock_quantity": 823 + }, + "customer": { + "name": "Jackie Allen", + "age": 64, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Henderson, Farrell and Martinez", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "call", + "category": "girl", + "price": 431.08, + "stock_quantity": 944 + }, + "customer": { + "name": "James Ritter", + "age": 57, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Castillo, Luna and Brown", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "itself", + "category": "religious", + "price": 800.66, + "stock_quantity": 416 + }, + "customer": { + "name": "Nathaniel Smith", + "age": 34, + "country": "Macao" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mitchell, Lambert and Pope'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mitchell, Lambert and Pope", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "police", + "category": "environmental", + "price": 747.49, + "stock_quantity": 524 + }, + "customer": { + "name": "Jorge Harper", + "age": 28, + "country": "Czech Republic" + } + }, + { + "natural_query": "What is the total profit for each category in Bell-Edwards?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bell-Edwards' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Bell-Edwards", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "job", + "category": "article", + "price": 335.75, + "stock_quantity": 151 + }, + "customer": { + "name": "Glenn Edwards", + "age": 71, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Ware Inc", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "begin", + "category": "ability", + "price": 614.78, + "stock_quantity": 265 + }, + "customer": { + "name": "Michelle Smith", + "age": 47, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Lee, Irwin and Brown", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "military", + "category": "work", + "price": 431.3, + "stock_quantity": 686 + }, + "customer": { + "name": "Matthew Hernandez", + "age": 43, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Gill Inc", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "animal", + "category": "hundred", + "price": 541.27, + "stock_quantity": 91 + }, + "customer": { + "name": "Lucas Jones", + "age": 79, + "country": "Israel" + } + }, + { + "natural_query": "List all customers and their total order value for Henderson, Anderson and Cruz.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Henderson, Anderson and Cruz' GROUP BY c.customer_id", + "company": { + "name": "Henderson, Anderson and Cruz", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "drive", + "category": "international", + "price": 972.36, + "stock_quantity": 140 + }, + "customer": { + "name": "Jaclyn Sanford", + "age": 66, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Miller PLC", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "beyond", + "category": "cover", + "price": 745.09, + "stock_quantity": 163 + }, + "customer": { + "name": "Justin Bates", + "age": 34, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Shea and Sons", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "crime", + "category": "determine", + "price": 906.87, + "stock_quantity": 914 + }, + "customer": { + "name": "Alicia Smith", + "age": 46, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Walker, Mcbride and Carter", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "student", + "category": "high", + "price": 122.91, + "stock_quantity": 258 + }, + "customer": { + "name": "William Terry", + "age": 79, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Jennings LLC", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "coach", + "category": "evidence", + "price": 272.75, + "stock_quantity": 182 + }, + "customer": { + "name": "Michael Rice", + "age": 27, + "country": "Finland" + } + }, + { + "natural_query": "List all products of Martinez PLC ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Martinez PLC' ORDER BY rating ASC", + "company": { + "name": "Martinez PLC", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "probably", + "category": "skin", + "price": 714.88, + "stock_quantity": 236 + }, + "customer": { + "name": "Bobby Johnson", + "age": 79, + "country": "Nauru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cole-Wallace'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cole-Wallace", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "strong", + "category": "any", + "price": 674.48, + "stock_quantity": 11 + }, + "customer": { + "name": "Laura Davenport", + "age": 28, + "country": "Tunisia" + } + }, + { + "natural_query": "List all products of Ray, Wells and Newman ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Ray, Wells and Newman' ORDER BY price DESC", + "company": { + "name": "Ray, Wells and Newman", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "next", + "category": "record", + "price": 730.79, + "stock_quantity": 465 + }, + "customer": { + "name": "Kathryn Blair", + "age": 70, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Williams-Haney", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "indeed", + "category": "little", + "price": 185.89, + "stock_quantity": 608 + }, + "customer": { + "name": "Shannon Hoffman", + "age": 58, + "country": "Saint Lucia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones-Haynes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones-Haynes", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "consider", + "category": "behind", + "price": 706.05, + "stock_quantity": 503 + }, + "customer": { + "name": "Aaron Wilson", + "age": 78, + "country": "Martinique" + } + }, + { + "natural_query": "What is the total profit for each supplier in Rodriguez-Davis?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rodriguez-Davis' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Rodriguez-Davis", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "skin", + "category": "meet", + "price": 536.16, + "stock_quantity": 53 + }, + "customer": { + "name": "Amy Sherman", + "age": 74, + "country": "Grenada" + } + }, + { + "natural_query": "List all products of Oneal, Smith and Mccormick ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Oneal, Smith and Mccormick' ORDER BY price ASC", + "company": { + "name": "Oneal, Smith and Mccormick", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "evening", + "category": "represent", + "price": 43.75, + "stock_quantity": 325 + }, + "customer": { + "name": "Richard Weaver", + "age": 69, + "country": "Niue" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Carlson, Brock and Williams for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carlson, Brock and Williams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carlson, Brock and Williams", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "measure", + "category": "sometimes", + "price": 520.39, + "stock_quantity": 568 + }, + "customer": { + "name": "Jessica Kelly", + "age": 21, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Hernandez, Salazar and Hughes", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "central", + "category": "argue", + "price": 51.86, + "stock_quantity": 919 + }, + "customer": { + "name": "Robert Scott", + "age": 26, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Levine, Harmon and Ward", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "real", + "category": "within", + "price": 482.15, + "stock_quantity": 449 + }, + "customer": { + "name": "Christopher Smith", + "age": 21, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Chapman PLC", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "piece", + "category": "final", + "price": 477.53, + "stock_quantity": 746 + }, + "customer": { + "name": "Joseph Watkins", + "age": 76, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Powell, Long and Hudson", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "sister", + "category": "walk", + "price": 578.11, + "stock_quantity": 542 + }, + "customer": { + "name": "David Perez", + "age": 31, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Krause, Nichols and Malone", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "everybody", + "category": "along", + "price": 400.22, + "stock_quantity": 329 + }, + "customer": { + "name": "Jared Farmer", + "age": 55, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Mcclure, Hays and Acosta", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "apply", + "category": "exist", + "price": 456.94, + "stock_quantity": 208 + }, + "customer": { + "name": "William Roberts", + "age": 33, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Mckee, Solis and Parsons", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "sing", + "category": "buy", + "price": 982.47, + "stock_quantity": 613 + }, + "customer": { + "name": "Desiree Smith", + "age": 51, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Williams Group", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "mother", + "category": "provide", + "price": 24.13, + "stock_quantity": 913 + }, + "customer": { + "name": "Ronald Cunningham", + "age": 27, + "country": "Romania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cole, Santiago and Galvan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cole, Santiago and Galvan", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "increase", + "category": "pattern", + "price": 917.37, + "stock_quantity": 61 + }, + "customer": { + "name": "Matthew Short", + "age": 74, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Harris Inc", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "huge", + "category": "open", + "price": 520.62, + "stock_quantity": 213 + }, + "customer": { + "name": "Mark Rodriguez", + "age": 66, + "country": "Senegal" + } + }, + { + "natural_query": "Show me all products in the bar category with a price over $970.63.", + "sql_query": "SELECT * FROM products WHERE category = 'bar' AND price > 970.63", + "company": { + "name": "Lopez, Oneill and Brown", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "teacher", + "category": "bar", + "price": 970.63, + "stock_quantity": 561 + }, + "customer": { + "name": "Antonio Miller", + "age": 33, + "country": "Samoa" + } + }, + { + "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'", + "company": { + "name": "Turner PLC", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "in", + "category": "send", + "price": 565.48, + "stock_quantity": 457 + }, + "customer": { + "name": "Ashley Hurst", + "age": 74, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Thompson-Long", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "job", + "category": "too", + "price": 532.62, + "stock_quantity": 901 + }, + "customer": { + "name": "Eric Weiss", + "age": 76, + "country": "Belize" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Edwards-Brooks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Edwards-Brooks", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "sound", + "category": "pass", + "price": 12.97, + "stock_quantity": 293 + }, + "customer": { + "name": "Debra Harding", + "age": 70, + "country": "Belarus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green, Santiago and Hall'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green, Santiago and Hall", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "government", + "category": "action", + "price": 955.36, + "stock_quantity": 53 + }, + "customer": { + "name": "Dr. Kara Williams", + "age": 80, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Lee, French and Lawson", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "traditional", + "category": "kid", + "price": 83.38, + "stock_quantity": 758 + }, + "customer": { + "name": "Trevor Lee", + "age": 19, + "country": "Turkmenistan" + } + }, + { + "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'", + "company": { + "name": "Hunter Group", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "call", + "category": "plant", + "price": 343.36, + "stock_quantity": 226 + }, + "customer": { + "name": "Allen Rodriguez", + "age": 78, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Garcia-Butler", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "new", + "category": "director", + "price": 171.26, + "stock_quantity": 957 + }, + "customer": { + "name": "Alexander Green", + "age": 68, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Barker, Brown and Miller", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "get", + "category": "determine", + "price": 604.61, + "stock_quantity": 39 + }, + "customer": { + "name": "Emily Rogers", + "age": 26, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Jensen, Vargas and Garrett", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "admit", + "category": "prevent", + "price": 778.22, + "stock_quantity": 149 + }, + "customer": { + "name": "Mr. Walter Reyes", + "age": 58, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Snow Ltd", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "action", + "category": "culture", + "price": 496.48, + "stock_quantity": 476 + }, + "customer": { + "name": "Angela Leon", + "age": 39, + "country": "Argentina" + } + }, + { + "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'", + "company": { + "name": "Miller Inc", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "trip", + "category": "moment", + "price": 45.7, + "stock_quantity": 57 + }, + "customer": { + "name": "Heidi Carroll", + "age": 30, + "country": "Norfolk Island" + } + }, + { + "natural_query": "What is the average rating of all products for Robinson, Hughes and Brewer?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Robinson, Hughes and Brewer'", + "company": { + "name": "Robinson, Hughes and Brewer", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "next", + "category": "different", + "price": 892.09, + "stock_quantity": 885 + }, + "customer": { + "name": "Jeffrey Garcia", + "age": 68, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Hill, Rogers and Lee", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "skin", + "category": "field", + "price": 355.38, + "stock_quantity": 586 + }, + "customer": { + "name": "Leon Robles", + "age": 62, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Mccann-Stone", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "shoulder", + "category": "believe", + "price": 612.7, + "stock_quantity": 477 + }, + "customer": { + "name": "William Vaughn", + "age": 43, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Martinez, Cunningham and Forbes", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "might", + "category": "decide", + "price": 355.19, + "stock_quantity": 921 + }, + "customer": { + "name": "Christian Benjamin", + "age": 57, + "country": "Malta" + } + }, + { + "natural_query": "Show me all products in the in category with a price over $991.76.", + "sql_query": "SELECT * FROM products WHERE category = 'in' AND price > 991.76", + "company": { + "name": "Ellison Group", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "look", + "category": "in", + "price": 991.76, + "stock_quantity": 415 + }, + "customer": { + "name": "William Foster", + "age": 38, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Lewis LLC", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "hot", + "category": "now", + "price": 260.79, + "stock_quantity": 764 + }, + "customer": { + "name": "Kiara Stokes", + "age": 51, + "country": "New Zealand" + } + }, + { + "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'", + "company": { + "name": "Ayers and Sons", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "may", + "category": "case", + "price": 776.28, + "stock_quantity": 701 + }, + "customer": { + "name": "Cheryl Hanna", + "age": 37, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Patterson-Brown", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "tell", + "category": "painting", + "price": 912.19, + "stock_quantity": 243 + }, + "customer": { + "name": "Jocelyn Yu", + "age": 24, + "country": "Ethiopia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor-Gordon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor-Gordon", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "forward", + "category": "exist", + "price": 179.11, + "stock_quantity": 188 + }, + "customer": { + "name": "Alexandra Walker", + "age": 32, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Kim-Morris", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "green", + "category": "sea", + "price": 807.41, + "stock_quantity": 637 + }, + "customer": { + "name": "Kim Davis", + "age": 76, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Garcia Group", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "large", + "category": "operation", + "price": 130.2, + "stock_quantity": 21 + }, + "customer": { + "name": "Samantha Quinn", + "age": 42, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Quinn PLC", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "town", + "category": "traditional", + "price": 697.51, + "stock_quantity": 931 + }, + "customer": { + "name": "Teresa Douglas", + "age": 51, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Castillo Ltd", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "able", + "category": "somebody", + "price": 290.68, + "stock_quantity": 677 + }, + "customer": { + "name": "Katherine Brown", + "age": 57, + "country": "Netherlands Antilles" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Crawford-Carter for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Crawford-Carter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Crawford-Carter", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "study", + "category": "view", + "price": 349.88, + "stock_quantity": 712 + }, + "customer": { + "name": "Gloria Garza", + "age": 48, + "country": "Micronesia" + } + }, + { + "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'", + "company": { + "name": "Sandoval and Sons", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "trade", + "category": "participant", + "price": 40.19, + "stock_quantity": 980 + }, + "customer": { + "name": "Maria Brown", + "age": 29, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Peterson PLC", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "can", + "category": "after", + "price": 172.38, + "stock_quantity": 872 + }, + "customer": { + "name": "Sean Bailey", + "age": 73, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Peterson, Sims and Hill", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "man", + "category": "management", + "price": 420.67, + "stock_quantity": 991 + }, + "customer": { + "name": "Daniel Knight", + "age": 56, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Faulkner, Graham and Rodriguez", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "many", + "category": "science", + "price": 870.21, + "stock_quantity": 824 + }, + "customer": { + "name": "Abigail Johnson", + "age": 35, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Adams Ltd", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "throughout", + "category": "some", + "price": 423.81, + "stock_quantity": 748 + }, + "customer": { + "name": "Monica Gaines", + "age": 29, + "country": "United Kingdom" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roth PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roth PLC", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "decision", + "category": "be", + "price": 333.17, + "stock_quantity": 373 + }, + "customer": { + "name": "Tammy Hall", + "age": 72, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Martinez, Lewis and Young", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "pretty", + "category": "nothing", + "price": 796.65, + "stock_quantity": 886 + }, + "customer": { + "name": "Brian Brady", + "age": 23, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Robertson-Owen", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "individual", + "category": "agreement", + "price": 955.38, + "stock_quantity": 799 + }, + "customer": { + "name": "Amy Johnson", + "age": 58, + "country": "French Guiana" + } + }, + { + "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'", + "company": { + "name": "Faulkner and Sons", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "other", + "category": "stock", + "price": 252.8, + "stock_quantity": 425 + }, + "customer": { + "name": "Christopher Mitchell", + "age": 74, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Watkins-Fletcher", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "let", + "category": "let", + "price": 199.85, + "stock_quantity": 302 + }, + "customer": { + "name": "David Eaton", + "age": 78, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Hampton, Hood and Bryant", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "use", + "category": "tough", + "price": 729.33, + "stock_quantity": 809 + }, + "customer": { + "name": "Tiffany Harding", + "age": 29, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Chen PLC", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "speak", + "category": "fire", + "price": 547.06, + "stock_quantity": 758 + }, + "customer": { + "name": "Nicole Powell", + "age": 76, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Ayala-Ray", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "office", + "category": "fly", + "price": 738.11, + "stock_quantity": 109 + }, + "customer": { + "name": "Brenda Hanson", + "age": 68, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Hayden-Austin", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "drop", + "category": "instead", + "price": 854.53, + "stock_quantity": 882 + }, + "customer": { + "name": "Margaret Martin", + "age": 63, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Lamb, Fox and Wu", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "here", + "category": "program", + "price": 617.17, + "stock_quantity": 601 + }, + "customer": { + "name": "Jeffery Kennedy", + "age": 52, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Thomas Group", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "quickly", + "category": "speak", + "price": 848.44, + "stock_quantity": 87 + }, + "customer": { + "name": "Sarah Morris", + "age": 62, + "country": "Christmas Island" + } + }, + { + "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'", + "company": { + "name": "Carroll Inc", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "in", + "category": "office", + "price": 960.84, + "stock_quantity": 568 + }, + "customer": { + "name": "Victor Rodriguez", + "age": 26, + "country": "Nigeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Young, Villa and Hicks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Young, Villa and Hicks", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "economy", + "category": "large", + "price": 400.58, + "stock_quantity": 972 + }, + "customer": { + "name": "Edward Hamilton", + "age": 58, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Martin, Kelly and Mayer", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "marriage", + "category": "determine", + "price": 135.09, + "stock_quantity": 883 + }, + "customer": { + "name": "Robert Olson", + "age": 66, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Casey, Flores and Buck", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "low", + "category": "discuss", + "price": 148.14, + "stock_quantity": 521 + }, + "customer": { + "name": "Bruce Long", + "age": 35, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Young-Johnson", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "fine", + "category": "according", + "price": 346.78, + "stock_quantity": 575 + }, + "customer": { + "name": "William Sanders", + "age": 45, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Miller, Oconnell and Scott", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "we", + "category": "give", + "price": 824.02, + "stock_quantity": 490 + }, + "customer": { + "name": "Lisa Moran", + "age": 25, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Butler, Richardson and Delacruz", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "involve", + "category": "ok", + "price": 845.38, + "stock_quantity": 348 + }, + "customer": { + "name": "Dr. Amanda Riddle", + "age": 57, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Atkins-Salinas", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "try", + "category": "foot", + "price": 91.72, + "stock_quantity": 329 + }, + "customer": { + "name": "Rebecca Hopkins", + "age": 40, + "country": "Croatia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Molina-Webster for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Molina-Webster'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Molina-Webster", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "create", + "category": "which", + "price": 915.79, + "stock_quantity": 671 + }, + "customer": { + "name": "Brandon Barnes", + "age": 24, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Holland-Rocha", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "stage", + "category": "fall", + "price": 568.86, + "stock_quantity": 146 + }, + "customer": { + "name": "Judith Ruiz", + "age": 24, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Duncan and Sons", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "pull", + "category": "realize", + "price": 569.39, + "stock_quantity": 560 + }, + "customer": { + "name": "Brian Briggs", + "age": 35, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Guzman LLC", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "none", + "category": "poor", + "price": 668.28, + "stock_quantity": 257 + }, + "customer": { + "name": "Ricardo Cruz", + "age": 65, + "country": "Niger" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pitts-Mullen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pitts-Mullen", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "long", + "category": "this", + "price": 505.69, + "stock_quantity": 483 + }, + "customer": { + "name": "Justin Stein", + "age": 41, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Perry, Beck and Coleman", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "receive", + "category": "produce", + "price": 606.27, + "stock_quantity": 327 + }, + "customer": { + "name": "Whitney King", + "age": 46, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Atkinson, Davidson and Lawson", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "management", + "category": "fight", + "price": 138.99, + "stock_quantity": 605 + }, + "customer": { + "name": "Ms. Wendy Cole DDS", + "age": 34, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Jackson-Hill", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "street", + "category": "catch", + "price": 804.01, + "stock_quantity": 329 + }, + "customer": { + "name": "Lauren Carpenter", + "age": 64, + "country": "Namibia" + } + }, + { + "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'", + "company": { + "name": "Moore-Little", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "hope", + "category": "degree", + "price": 300.24, + "stock_quantity": 63 + }, + "customer": { + "name": "Cynthia Kim", + "age": 50, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Williams, Campbell and Chandler", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "serve", + "category": "information", + "price": 564.95, + "stock_quantity": 162 + }, + "customer": { + "name": "Anthony Graves", + "age": 45, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Young, Elliott and Thompson", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "drive", + "category": "quite", + "price": 498.3, + "stock_quantity": 735 + }, + "customer": { + "name": "Donna Payne", + "age": 75, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Bird Group", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "investment", + "category": "high", + "price": 995.25, + "stock_quantity": 665 + }, + "customer": { + "name": "Mary Phillips", + "age": 34, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Gould PLC", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "cup", + "category": "scene", + "price": 697.88, + "stock_quantity": 704 + }, + "customer": { + "name": "Jennifer Hernandez", + "age": 19, + "country": "Lao People's Democratic Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Zavala, Porter and Cruz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Zavala, Porter and Cruz", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "among", + "category": "door", + "price": 800.5, + "stock_quantity": 58 + }, + "customer": { + "name": "Sarah Moon", + "age": 41, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Silva-Atkinson", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "mission", + "category": "show", + "price": 433.85, + "stock_quantity": 222 + }, + "customer": { + "name": "Taylor Joseph", + "age": 38, + "country": "Thailand" + } + }, + { + "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'", + "company": { + "name": "Cline, Dyer and James", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "history", + "category": "often", + "price": 425.72, + "stock_quantity": 611 + }, + "customer": { + "name": "Emily Fox", + "age": 57, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "chair", + "category": "and", + "price": 386.93, + "stock_quantity": 152 + }, + "customer": { + "name": "Nicole Manning", + "age": 80, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Jones-Atkinson", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "education", + "category": "her", + "price": 301.39, + "stock_quantity": 227 + }, + "customer": { + "name": "Brian Gutierrez", + "age": 33, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Fox, Kaiser and Day", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "simple", + "category": "father", + "price": 935.8, + "stock_quantity": 946 + }, + "customer": { + "name": "Amy Tucker", + "age": 25, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Gardner-Taylor", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "worker", + "category": "section", + "price": 887.06, + "stock_quantity": 787 + }, + "customer": { + "name": "Christopher Liu", + "age": 61, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Brown, Barnes and Schmidt", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "line", + "category": "get", + "price": 909.51, + "stock_quantity": 291 + }, + "customer": { + "name": "Anthony Schneider", + "age": 52, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Simmons and Sons", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "network", + "category": "continue", + "price": 988.22, + "stock_quantity": 385 + }, + "customer": { + "name": "Natalie Flores", + "age": 44, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Johnson, Roberson and Jensen", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "often", + "category": "quality", + "price": 930.88, + "stock_quantity": 623 + }, + "customer": { + "name": "Jeffrey Morris", + "age": 40, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Butler LLC", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "goal", + "category": "recognize", + "price": 383.04, + "stock_quantity": 120 + }, + "customer": { + "name": "Leonard Cummings", + "age": 73, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Hanson-Doyle", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "room", + "category": "million", + "price": 64.99, + "stock_quantity": 95 + }, + "customer": { + "name": "Andrew Phillips", + "age": 45, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Levine, Davis and Alvarez", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "manager", + "category": "along", + "price": 982.94, + "stock_quantity": 686 + }, + "customer": { + "name": "Chelsea Simmons", + "age": 62, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Kerr, Santos and Davis", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "board", + "category": "give", + "price": 340.16, + "stock_quantity": 833 + }, + "customer": { + "name": "Jennifer Campbell", + "age": 57, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Cole-Reynolds", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "health", + "category": "whole", + "price": 127.95, + "stock_quantity": 90 + }, + "customer": { + "name": "Thomas Myers", + "age": 24, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Kaufman, Davis and Meadows", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "however", + "category": "offer", + "price": 120.89, + "stock_quantity": 677 + }, + "customer": { + "name": "David Robinson", + "age": 48, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Roach PLC", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "add", + "category": "letter", + "price": 232.4, + "stock_quantity": 241 + }, + "customer": { + "name": "Corey Franklin", + "age": 57, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Ho-Garcia", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "on", + "category": "require", + "price": 588.76, + "stock_quantity": 56 + }, + "customer": { + "name": "Lisa Howe", + "age": 30, + "country": "Algeria" + } + }, + { + "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'", + "company": { + "name": "Horn, Smith and Baker", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "course", + "category": "very", + "price": 30.79, + "stock_quantity": 632 + }, + "customer": { + "name": "Emily Peters", + "age": 55, + "country": "Hong Kong" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cooper-Morgan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cooper-Morgan", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "government", + "category": "Democrat", + "price": 635.69, + "stock_quantity": 74 + }, + "customer": { + "name": "Robert Thompson", + "age": 29, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Ramsey and Sons", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "player", + "category": "last", + "price": 116.32, + "stock_quantity": 563 + }, + "customer": { + "name": "Deanna Miller", + "age": 60, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Gardner-Henderson", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "cut", + "category": "law", + "price": 73.13, + "stock_quantity": 337 + }, + "customer": { + "name": "Peggy Donaldson", + "age": 75, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "King, Stephens and Clark", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "serious", + "category": "place", + "price": 855.58, + "stock_quantity": 128 + }, + "customer": { + "name": "Heidi Lamb", + "age": 50, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Miller LLC", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "fill", + "category": "behavior", + "price": 26.94, + "stock_quantity": 552 + }, + "customer": { + "name": "Mathew Thornton", + "age": 71, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Jacobs-Beck", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "son", + "category": "everybody", + "price": 169.24, + "stock_quantity": 331 + }, + "customer": { + "name": "Patrick Holmes", + "age": 65, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Garcia-Marshall", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "history", + "category": "guy", + "price": 721.08, + "stock_quantity": 222 + }, + "customer": { + "name": "Yvonne Vasquez", + "age": 47, + "country": "Angola" + } + }, + { + "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'", + "company": { + "name": "Mills, Murphy and Turner", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "worry", + "category": "government", + "price": 975.56, + "stock_quantity": 104 + }, + "customer": { + "name": "Kayla Myers", + "age": 65, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Anderson LLC", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "series", + "category": "form", + "price": 329.04, + "stock_quantity": 74 + }, + "customer": { + "name": "Randy Carr", + "age": 34, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Anderson, Owens and Bishop", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "happen", + "category": "production", + "price": 815.58, + "stock_quantity": 471 + }, + "customer": { + "name": "Susan Phillips", + "age": 72, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Douglas, Caldwell and Williams", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "think", + "category": "least", + "price": 486.03, + "stock_quantity": 740 + }, + "customer": { + "name": "Grace Saunders DVM", + "age": 61, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Thomas-Davis", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "research", + "category": "hope", + "price": 570.88, + "stock_quantity": 612 + }, + "customer": { + "name": "Joyce Howard MD", + "age": 66, + "country": "Tunisia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor-Sweeney'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor-Sweeney", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "south", + "category": "improve", + "price": 911.69, + "stock_quantity": 14 + }, + "customer": { + "name": "Justin Jackson", + "age": 23, + "country": "Bosnia and Herzegovina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frey-Lang'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frey-Lang", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "catch", + "category": "thought", + "price": 842.47, + "stock_quantity": 130 + }, + "customer": { + "name": "Michael Blankenship", + "age": 78, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Armstrong Group", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "impact", + "category": "every", + "price": 235.29, + "stock_quantity": 382 + }, + "customer": { + "name": "Cristina Gilmore", + "age": 48, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Jones, Ortega and Wiley", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "science", + "category": "state", + "price": 390.02, + "stock_quantity": 440 + }, + "customer": { + "name": "Laurie Hanna", + "age": 37, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Huff, Anderson and Grimes", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "water", + "category": "shoulder", + "price": 104.72, + "stock_quantity": 639 + }, + "customer": { + "name": "Teresa Bradley", + "age": 78, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Gibson-Braun", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "although", + "category": "son", + "price": 702.47, + "stock_quantity": 346 + }, + "customer": { + "name": "Mary Payne", + "age": 54, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Campbell-Palmer", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "value", + "category": "action", + "price": 792.5, + "stock_quantity": 863 + }, + "customer": { + "name": "Patricia Mclaughlin", + "age": 39, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Golden-Ellis", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "human", + "category": "fire", + "price": 14.17, + "stock_quantity": 565 + }, + "customer": { + "name": "David Mayer", + "age": 60, + "country": "French Polynesia" + } + }, + { + "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'", + "company": { + "name": "Hamilton-Perez", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "a", + "category": "visit", + "price": 842.81, + "stock_quantity": 15 + }, + "customer": { + "name": "Sean Gill", + "age": 43, + "country": "Malaysia" + } + }, + { + "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'", + "company": { + "name": "Wang, Nicholson and Boyd", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "important", + "category": "police", + "price": 201.16, + "stock_quantity": 392 + }, + "customer": { + "name": "Jonathan Smith", + "age": 41, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Padilla Group", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "seek", + "category": "share", + "price": 346.03, + "stock_quantity": 349 + }, + "customer": { + "name": "Mary Williams", + "age": 69, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Morgan Group", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "together", + "category": "push", + "price": 433.85, + "stock_quantity": 173 + }, + "customer": { + "name": "Sydney Keller", + "age": 18, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Morrison-Montes", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "college", + "category": "expert", + "price": 69.44, + "stock_quantity": 849 + }, + "customer": { + "name": "William Carter", + "age": 32, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Hancock LLC", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "candidate", + "category": "through", + "price": 924.97, + "stock_quantity": 994 + }, + "customer": { + "name": "Linda Underwood", + "age": 75, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Alvarez PLC", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "theory", + "category": "subject", + "price": 52.29, + "stock_quantity": 318 + }, + "customer": { + "name": "Ryan Rollins", + "age": 27, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Phillips, Rodriguez and Jones", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "million", + "category": "above", + "price": 190.91, + "stock_quantity": 365 + }, + "customer": { + "name": "Sharon Green", + "age": 32, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Simmons Ltd", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "he", + "category": "present", + "price": 151.85, + "stock_quantity": 747 + }, + "customer": { + "name": "Amanda Blevins", + "age": 22, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Randall-Cunningham", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "open", + "category": "significant", + "price": 477.48, + "stock_quantity": 246 + }, + "customer": { + "name": "Madeline Downs", + "age": 34, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Case and Sons", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "that", + "category": "personal", + "price": 347.36, + "stock_quantity": 319 + }, + "customer": { + "name": "Kylie Jackson", + "age": 20, + "country": "Chile" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Goodwin Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Goodwin Ltd", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "now", + "category": "imagine", + "price": 275.82, + "stock_quantity": 833 + }, + "customer": { + "name": "Crystal Daniels", + "age": 37, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Price and Sons", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "set", + "category": "product", + "price": 678.13, + "stock_quantity": 969 + }, + "customer": { + "name": "Jonathan Barr", + "age": 25, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Stewart-Escobar", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "half", + "category": "why", + "price": 203.61, + "stock_quantity": 861 + }, + "customer": { + "name": "Jessica Scott DVM", + "age": 48, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Richardson LLC", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "address", + "category": "create", + "price": 11.58, + "stock_quantity": 550 + }, + "customer": { + "name": "Tracey Allen", + "age": 18, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Murphy Group", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "arrive", + "category": "require", + "price": 36.28, + "stock_quantity": 736 + }, + "customer": { + "name": "Rhonda Taylor", + "age": 54, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Powers Inc", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "century", + "category": "way", + "price": 779.16, + "stock_quantity": 943 + }, + "customer": { + "name": "Angela Stevens", + "age": 46, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Miller-Acevedo", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "he", + "category": "professor", + "price": 849.14, + "stock_quantity": 119 + }, + "customer": { + "name": "Eric Nichols", + "age": 35, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Sims-Thomas", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "girl", + "category": "rest", + "price": 501.39, + "stock_quantity": 187 + }, + "customer": { + "name": "Jamie Diaz", + "age": 33, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Johnson Inc", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "investment", + "category": "possible", + "price": 468.27, + "stock_quantity": 256 + }, + "customer": { + "name": "Andrew Owen", + "age": 46, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Thomas-Nunez", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "million", + "category": "information", + "price": 745.74, + "stock_quantity": 155 + }, + "customer": { + "name": "Alexa Day", + "age": 34, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Smith, Smith and Thomas", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "child", + "category": "return", + "price": 496.5, + "stock_quantity": 44 + }, + "customer": { + "name": "Kristen Brown", + "age": 20, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Gross, Powell and Ward", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "west", + "category": "site", + "price": 917.39, + "stock_quantity": 569 + }, + "customer": { + "name": "Andrew Blackwell", + "age": 39, + "country": "French Southern Territories" + } + }, + { + "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'", + "company": { + "name": "Phillips PLC", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "four", + "category": "score", + "price": 784.33, + "stock_quantity": 865 + }, + "customer": { + "name": "Patrick Hughes", + "age": 74, + "country": "Nicaragua" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Strickland, Miller and Bowen?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Strickland, Miller and Bowen'", + "company": { + "name": "Strickland, Miller and Bowen", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "game", + "category": "drive", + "price": 491.97, + "stock_quantity": 232 + }, + "customer": { + "name": "David Scott", + "age": 37, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Willis LLC", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "window", + "category": "pressure", + "price": 643.16, + "stock_quantity": 199 + }, + "customer": { + "name": "Jennifer White", + "age": 24, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Williams-Lynch", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "expert", + "category": "character", + "price": 563.32, + "stock_quantity": 176 + }, + "customer": { + "name": "David Cooper", + "age": 20, + "country": "Lesotho" + } + }, + { + "natural_query": "How many orders were placed for Estrada, Lopez and Dawson between 2023-12-03 and 2024-04-08?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Estrada, Lopez and Dawson' AND order_date BETWEEN '2023-12-03' AND '2024-04-08'", + "company": { + "name": "Estrada, Lopez and Dawson", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "successful", + "category": "air", + "price": 74.98, + "stock_quantity": 486 + }, + "customer": { + "name": "Ryan Adams", + "age": 24, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Lawson-Clark", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "his", + "category": "who", + "price": 573.88, + "stock_quantity": 877 + }, + "customer": { + "name": "Timothy Foster MD", + "age": 45, + "country": "Myanmar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Heath, Powers and Houston'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Heath, Powers and Houston", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "newspaper", + "category": "security", + "price": 538.38, + "stock_quantity": 572 + }, + "customer": { + "name": "Marissa Cunningham", + "age": 43, + "country": "Vietnam" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Weeks Inc for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Weeks Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Weeks Inc", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "responsibility", + "category": "theory", + "price": 619.16, + "stock_quantity": 965 + }, + "customer": { + "name": "Joshua Jones", + "age": 39, + "country": "Kazakhstan" + } + }, + { + "natural_query": "What is the average quantity of all products for Brown, Barron and Wright?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Brown, Barron and Wright'", + "company": { + "name": "Brown, Barron and Wright", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "scene", + "category": "high", + "price": 632.37, + "stock_quantity": 520 + }, + "customer": { + "name": "Kevin Walker", + "age": 53, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Hill, Lee and Wright", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "begin", + "category": "local", + "price": 343.23, + "stock_quantity": 883 + }, + "customer": { + "name": "Teresa Villegas", + "age": 67, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Kim-Thomas", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "kid", + "category": "very", + "price": 37.57, + "stock_quantity": 865 + }, + "customer": { + "name": "Kenneth Valdez", + "age": 35, + "country": "Andorra" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Tate, Miller and Andrade'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Tate, Miller and Andrade", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "professor", + "category": "group", + "price": 840.37, + "stock_quantity": 838 + }, + "customer": { + "name": "Makayla Rivera", + "age": 63, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Armstrong-Williams", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "cell", + "category": "trial", + "price": 738.62, + "stock_quantity": 605 + }, + "customer": { + "name": "Sarah Singh", + "age": 76, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Brown-Davis", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "book", + "category": "process", + "price": 395.5, + "stock_quantity": 239 + }, + "customer": { + "name": "Lauren Shaw", + "age": 69, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Mendez-Quinn", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "song", + "category": "attorney", + "price": 804.26, + "stock_quantity": 130 + }, + "customer": { + "name": "Lance Oneill", + "age": 63, + "country": "Russian Federation" + } + }, + { + "natural_query": "Show me all products in the city category with a price over $576.2.", + "sql_query": "SELECT * FROM products WHERE category = 'city' AND price > 576.2", + "company": { + "name": "Patel PLC", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "still", + "category": "city", + "price": 576.2, + "stock_quantity": 848 + }, + "customer": { + "name": "Connie Kelly", + "age": 41, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Brown, Guerra and Ruiz", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "enjoy", + "category": "name", + "price": 134.49, + "stock_quantity": 208 + }, + "customer": { + "name": "Kristina Lowe", + "age": 74, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Fuller, Silva and Sullivan", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "son", + "category": "range", + "price": 786.03, + "stock_quantity": 847 + }, + "customer": { + "name": "Brandon Harmon", + "age": 79, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Bowman-Hunter", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "central", + "category": "claim", + "price": 566.83, + "stock_quantity": 862 + }, + "customer": { + "name": "Christine Rogers", + "age": 52, + "country": "Martinique" + } + }, + { + "natural_query": "List all customers and their total order value for Ross, Johnson and Woods.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Ross, Johnson and Woods' GROUP BY c.customer_id", + "company": { + "name": "Ross, Johnson and Woods", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "performance", + "category": "clear", + "price": 680.14, + "stock_quantity": 414 + }, + "customer": { + "name": "Barry Myers", + "age": 75, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Mcmahon, Boyd and Smith", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "animal", + "category": "billion", + "price": 863.16, + "stock_quantity": 596 + }, + "customer": { + "name": "Scott Burke", + "age": 51, + "country": "Lithuania" + } + }, + { + "natural_query": "List all customers and their total order value for Evans, Herrera and Bailey.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Evans, Herrera and Bailey' GROUP BY c.customer_id", + "company": { + "name": "Evans, Herrera and Bailey", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "exist", + "category": "what", + "price": 268.79, + "stock_quantity": 39 + }, + "customer": { + "name": "Katrina Gaines", + "age": 69, + "country": "Guinea-Bissau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Parker, Cooper and Reed'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Parker, Cooper and Reed", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "TV", + "category": "front", + "price": 747.26, + "stock_quantity": 506 + }, + "customer": { + "name": "Melinda Garcia", + "age": 52, + "country": "Guinea-Bissau" + } + }, + { + "natural_query": "List all products of Diaz-Wall ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Diaz-Wall' ORDER BY rating DESC", + "company": { + "name": "Diaz-Wall", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "college", + "category": "among", + "price": 890.34, + "stock_quantity": 813 + }, + "customer": { + "name": "Alex Welch", + "age": 68, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Collins Ltd", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "magazine", + "category": "executive", + "price": 561.36, + "stock_quantity": 67 + }, + "customer": { + "name": "Edward King", + "age": 62, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Mckinney-Fuentes", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "agreement", + "category": "science", + "price": 363.92, + "stock_quantity": 746 + }, + "customer": { + "name": "Marc Sawyer", + "age": 50, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Boyd, Anthony and Smith", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "behind", + "category": "appear", + "price": 919.83, + "stock_quantity": 235 + }, + "customer": { + "name": "Michelle Bentley", + "age": 37, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Lee Group", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "husband", + "category": "new", + "price": 333.04, + "stock_quantity": 954 + }, + "customer": { + "name": "Amy Forbes", + "age": 48, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Ellison LLC", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "concern", + "category": "loss", + "price": 810.47, + "stock_quantity": 462 + }, + "customer": { + "name": "Carrie Zhang MD", + "age": 31, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Johnson, Gonzalez and Alvarez", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "nature", + "category": "traditional", + "price": 747.42, + "stock_quantity": 518 + }, + "customer": { + "name": "Edward Perry", + "age": 54, + "country": "Netherlands" + } + }, + { + "natural_query": "List all customers and their total order value for Richardson, Sandoval and James.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Richardson, Sandoval and James' GROUP BY c.customer_id", + "company": { + "name": "Richardson, Sandoval and James", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "fear", + "category": "trade", + "price": 759.53, + "stock_quantity": 601 + }, + "customer": { + "name": "Craig Harmon", + "age": 68, + "country": "Sierra Leone" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Guerrero Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Guerrero Ltd", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "wear", + "category": "throw", + "price": 458.83, + "stock_quantity": 931 + }, + "customer": { + "name": "Tammy Morgan", + "age": 66, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Curtis-English", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "choose", + "category": "movement", + "price": 745.94, + "stock_quantity": 633 + }, + "customer": { + "name": "Sarah Yu", + "age": 37, + "country": "Australia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Combs Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Combs Inc", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "wish", + "category": "national", + "price": 750.05, + "stock_quantity": 20 + }, + "customer": { + "name": "Tiffany Wheeler", + "age": 59, + "country": "Ethiopia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Anderson, Ramirez and Jackson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Anderson, Ramirez and Jackson", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "then", + "category": "we", + "price": 933.46, + "stock_quantity": 296 + }, + "customer": { + "name": "Robert Torres", + "age": 19, + "country": "Uruguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thomas Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thomas Ltd", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "different", + "category": "light", + "price": 488.31, + "stock_quantity": 826 + }, + "customer": { + "name": "Jessica Washington", + "age": 56, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Young, Pugh and White", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "purpose", + "category": "face", + "price": 883.43, + "stock_quantity": 579 + }, + "customer": { + "name": "Michelle Duran", + "age": 55, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Roy, Garcia and Tyler", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "general", + "category": "position", + "price": 829.06, + "stock_quantity": 872 + }, + "customer": { + "name": "Erica Ochoa", + "age": 21, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Moore, Gonzalez and Williams", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "hear", + "category": "would", + "price": 366.58, + "stock_quantity": 960 + }, + "customer": { + "name": "Christine Long", + "age": 67, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Brown-Houston", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "main", + "category": "million", + "price": 626.73, + "stock_quantity": 991 + }, + "customer": { + "name": "Mr. Marvin Johnson", + "age": 58, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Anderson, Gomez and Gordon", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "be", + "category": "final", + "price": 584.73, + "stock_quantity": 68 + }, + "customer": { + "name": "Shirley Matthews", + "age": 76, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Beard Inc", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "exist", + "category": "people", + "price": 893.1, + "stock_quantity": 917 + }, + "customer": { + "name": "Shawn Briggs", + "age": 68, + "country": "Lesotho" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Chapman and Sons for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chapman and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chapman and Sons", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "security", + "category": "tax", + "price": 374.58, + "stock_quantity": 35 + }, + "customer": { + "name": "Matthew Burns", + "age": 33, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Weiss, Wolf and Fry", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "move", + "category": "military", + "price": 984.63, + "stock_quantity": 415 + }, + "customer": { + "name": "Michael Johnson", + "age": 45, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Frederick Inc", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "eat", + "category": "throughout", + "price": 944.56, + "stock_quantity": 568 + }, + "customer": { + "name": "Martin Graves", + "age": 36, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Davis-Keith", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "clear", + "category": "foreign", + "price": 985.8, + "stock_quantity": 652 + }, + "customer": { + "name": "Timothy Middleton", + "age": 57, + "country": "Croatia" + } + }, + { + "natural_query": "What is the total sales for each supplier in Olson LLC?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Olson LLC' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Olson LLC", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "decide", + "category": "plant", + "price": 397.72, + "stock_quantity": 298 + }, + "customer": { + "name": "Becky Contreras", + "age": 67, + "country": "Kenya" + } + }, + { + "natural_query": "Show me all products in the plan category with a price over $251.55.", + "sql_query": "SELECT * FROM products WHERE category = 'plan' AND price > 251.55", + "company": { + "name": "Palmer Ltd", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "someone", + "category": "plan", + "price": 251.55, + "stock_quantity": 730 + }, + "customer": { + "name": "Ashley Ellis", + "age": 49, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Petty, Watson and Bartlett", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "interesting", + "category": "number", + "price": 885.17, + "stock_quantity": 988 + }, + "customer": { + "name": "Ann Mitchell", + "age": 26, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Daniels-May", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "start", + "category": "television", + "price": 890.41, + "stock_quantity": 777 + }, + "customer": { + "name": "Michelle Kramer", + "age": 18, + "country": "Albania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gallagher, Burke and Powers'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gallagher, Burke and Powers", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "help", + "category": "process", + "price": 748.03, + "stock_quantity": 690 + }, + "customer": { + "name": "Jennifer Nichols", + "age": 25, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Petersen LLC", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "her", + "category": "most", + "price": 419.83, + "stock_quantity": 746 + }, + "customer": { + "name": "Andrew Armstrong", + "age": 79, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Zavala LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Zavala LLC", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "couple", + "category": "with", + "price": 473.74, + "stock_quantity": 406 + }, + "customer": { + "name": "Christopher Brown", + "age": 60, + "country": "Netherlands Antilles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Phillips LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Phillips LLC", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "with", + "category": "rest", + "price": 154.6, + "stock_quantity": 162 + }, + "customer": { + "name": "Michael Rodriguez", + "age": 68, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Austin and Sons", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "war", + "category": "stop", + "price": 487.98, + "stock_quantity": 347 + }, + "customer": { + "name": "Sarah Bell", + "age": 20, + "country": "Kuwait" + } + }, + { + "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'", + "company": { + "name": "Short, Anderson and Williams", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "life", + "category": "operation", + "price": 129.03, + "stock_quantity": 59 + }, + "customer": { + "name": "Thomas Lopez", + "age": 29, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Sweeney LLC", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "hope", + "category": "others", + "price": 590.59, + "stock_quantity": 843 + }, + "customer": { + "name": "Joseph Boone", + "age": 67, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Shaffer, Barrett and Sullivan", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "security", + "category": "green", + "price": 798.43, + "stock_quantity": 46 + }, + "customer": { + "name": "Sharon Gibson", + "age": 23, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Harrison Inc", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "few", + "category": "special", + "price": 548.81, + "stock_quantity": 935 + }, + "customer": { + "name": "Tamara Brown", + "age": 77, + "country": "Namibia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Keller Group for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Keller Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Keller Group", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "really", + "category": "half", + "price": 615.07, + "stock_quantity": 549 + }, + "customer": { + "name": "Richard Briggs DVM", + "age": 64, + "country": "Senegal" + } + }, + { + "natural_query": "What is the total quantity for each category in Parrish, Yang and Zimmerman?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Parrish, Yang and Zimmerman' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Parrish, Yang and Zimmerman", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "state", + "category": "central", + "price": 458.02, + "stock_quantity": 876 + }, + "customer": { + "name": "Nathan Kramer", + "age": 18, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Morgan LLC", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "example", + "category": "way", + "price": 730.47, + "stock_quantity": 630 + }, + "customer": { + "name": "Anthony Hernandez", + "age": 80, + "country": "Dominica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson and Sons", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "strategy", + "category": "carry", + "price": 652.05, + "stock_quantity": 646 + }, + "customer": { + "name": "Karen Jones", + "age": 21, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Case-Becker", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "cause", + "category": "behind", + "price": 184.27, + "stock_quantity": 20 + }, + "customer": { + "name": "Kenneth Obrien", + "age": 29, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Jones Group", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "peace", + "category": "put", + "price": 184.87, + "stock_quantity": 177 + }, + "customer": { + "name": "Carolyn Rose", + "age": 18, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Rodriguez Group", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "family", + "category": "Democrat", + "price": 864.23, + "stock_quantity": 895 + }, + "customer": { + "name": "Shane Hicks", + "age": 28, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Martinez-Howell", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "news", + "category": "generation", + "price": 771.04, + "stock_quantity": 313 + }, + "customer": { + "name": "Deborah Peters", + "age": 63, + "country": "Cayman Islands" + } + }, + { + "natural_query": "How many orders were placed for Cooke Ltd between 2023-09-19 and 2023-10-16?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cooke Ltd' AND order_date BETWEEN '2023-09-19' AND '2023-10-16'", + "company": { + "name": "Cooke Ltd", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "various", + "category": "hard", + "price": 200.03, + "stock_quantity": 40 + }, + "customer": { + "name": "Miguel Garcia", + "age": 30, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Stephens-Anderson", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "suggest", + "category": "receive", + "price": 116.08, + "stock_quantity": 731 + }, + "customer": { + "name": "Carolyn Stewart", + "age": 66, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Choi PLC", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "professional", + "category": "seat", + "price": 761.62, + "stock_quantity": 644 + }, + "customer": { + "name": "Monique Garcia", + "age": 41, + "country": "Montenegro" + } + }, + { + "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'", + "company": { + "name": "Anderson-Hernandez", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "home", + "category": "floor", + "price": 714.89, + "stock_quantity": 23 + }, + "customer": { + "name": "Marc Beck", + "age": 72, + "country": "Mayotte" + } + }, + { + "natural_query": "What are the top 4 products by customers for Jones-Rodriguez last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Jones-Rodriguez' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4", + "company": { + "name": "Jones-Rodriguez", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "appear", + "category": "approach", + "price": 119.18, + "stock_quantity": 800 + }, + "customer": { + "name": "Madison Mcdonald", + "age": 51, + "country": "Cape Verde" + } + }, + { + "natural_query": "Show me all products in the leg category with a price over $994.78.", + "sql_query": "SELECT * FROM products WHERE category = 'leg' AND price > 994.78", + "company": { + "name": "Woods-Thomas", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "play", + "category": "leg", + "price": 994.78, + "stock_quantity": 80 + }, + "customer": { + "name": "Kirsten Goodwin", + "age": 42, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Pham-Watts", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "also", + "category": "enjoy", + "price": 426.75, + "stock_quantity": 254 + }, + "customer": { + "name": "Marcus Gonzalez", + "age": 59, + "country": "Cocos (Keeling) Islands" + } + }, + { + "natural_query": "Show me all products in the change category with a price over $396.48.", + "sql_query": "SELECT * FROM products WHERE category = 'change' AND price > 396.48", + "company": { + "name": "Frazier LLC", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "from", + "category": "change", + "price": 396.48, + "stock_quantity": 123 + }, + "customer": { + "name": "Mr. Leonard Morgan", + "age": 48, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Hendricks-Lee", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "memory", + "category": "sound", + "price": 663.84, + "stock_quantity": 463 + }, + "customer": { + "name": "Bradley Wright", + "age": 71, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Glover and Sons", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "remain", + "category": "chair", + "price": 902.19, + "stock_quantity": 907 + }, + "customer": { + "name": "Eric Bryan", + "age": 65, + "country": "Equatorial Guinea" + } + }, + { + "natural_query": "List all customers and their total order value for Ray-Ritter.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Ray-Ritter' GROUP BY c.customer_id", + "company": { + "name": "Ray-Ritter", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "whose", + "category": "food", + "price": 646.63, + "stock_quantity": 90 + }, + "customer": { + "name": "Emily Thomas", + "age": 67, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Christian, Becker and Silva", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "hand", + "category": "station", + "price": 230.18, + "stock_quantity": 107 + }, + "customer": { + "name": "Tammy Davis", + "age": 50, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Turner-Mills", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "write", + "category": "operation", + "price": 192.61, + "stock_quantity": 536 + }, + "customer": { + "name": "Elizabeth Phillips", + "age": 67, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Caldwell-Ford", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "especially", + "category": "message", + "price": 931.19, + "stock_quantity": 926 + }, + "customer": { + "name": "Daniel Martin", + "age": 62, + "country": "Seychelles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Padilla LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Padilla LLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "nature", + "category": "group", + "price": 732.99, + "stock_quantity": 995 + }, + "customer": { + "name": "Dr. Tina Romero MD", + "age": 34, + "country": "Peru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Horn LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Horn LLC", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "dream", + "category": "information", + "price": 397.33, + "stock_quantity": 967 + }, + "customer": { + "name": "Abigail Gonzales", + "age": 63, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Wilson, Johnson and Ferguson", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "someone", + "category": "nature", + "price": 991.3, + "stock_quantity": 429 + }, + "customer": { + "name": "Willie Elliott", + "age": 56, + "country": "Micronesia" + } + }, + { + "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'", + "company": { + "name": "Williams, Leblanc and Perez", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "assume", + "category": "government", + "price": 470.6, + "stock_quantity": 989 + }, + "customer": { + "name": "Mathew Kaiser", + "age": 54, + "country": "Uganda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson-Hensley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson-Hensley", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "why", + "category": "season", + "price": 302.36, + "stock_quantity": 416 + }, + "customer": { + "name": "Spencer Johnson", + "age": 51, + "country": "Panama" + } + }, + { + "natural_query": "How many orders were placed for Wolfe-Higgins between 2024-01-21 and 2024-01-23?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wolfe-Higgins' AND order_date BETWEEN '2024-01-21' AND '2024-01-23'", + "company": { + "name": "Wolfe-Higgins", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "claim", + "category": "fund", + "price": 339.97, + "stock_quantity": 839 + }, + "customer": { + "name": "Nicholas Nicholson", + "age": 49, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Ramirez-Taylor", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "none", + "category": "clearly", + "price": 134.65, + "stock_quantity": 101 + }, + "customer": { + "name": "Cynthia Pearson", + "age": 70, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Williams, Walsh and Rojas", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "day", + "category": "history", + "price": 821.33, + "stock_quantity": 913 + }, + "customer": { + "name": "Shawna Hernandez", + "age": 58, + "country": "Micronesia" + } + }, + { + "natural_query": "What is the minimum rating of all products for Saunders Ltd?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Saunders Ltd'", + "company": { + "name": "Saunders Ltd", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "radio", + "category": "late", + "price": 242.15, + "stock_quantity": 604 + }, + "customer": { + "name": "Dawn Wall", + "age": 29, + "country": "Tuvalu" + } + }, + { + "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'", + "company": { + "name": "Reynolds-Smith", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "early", + "category": "water", + "price": 926.66, + "stock_quantity": 392 + }, + "customer": { + "name": "Louis Potts", + "age": 36, + "country": "Bermuda" + } + }, + { + "natural_query": "What is the minimum price of all products for Bruce, Sellers and Taylor?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Bruce, Sellers and Taylor'", + "company": { + "name": "Bruce, Sellers and Taylor", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "already", + "category": "order", + "price": 387.43, + "stock_quantity": 954 + }, + "customer": { + "name": "Judy Nolan", + "age": 62, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Baker PLC", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "interview", + "category": "event", + "price": 570.29, + "stock_quantity": 983 + }, + "customer": { + "name": "Amber Martin", + "age": 31, + "country": "Mauritius" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chen, Cox and Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chen, Cox and Smith", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "example", + "category": "test", + "price": 466.14, + "stock_quantity": 16 + }, + "customer": { + "name": "Stephanie Obrien", + "age": 28, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "House and Sons", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "fear", + "category": "form", + "price": 373.22, + "stock_quantity": 429 + }, + "customer": { + "name": "Erin Pittman", + "age": 21, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Sexton Ltd", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "just", + "category": "again", + "price": 933.45, + "stock_quantity": 379 + }, + "customer": { + "name": "George Gibbs", + "age": 37, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Navarro Ltd", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "community", + "category": "world", + "price": 355.98, + "stock_quantity": 877 + }, + "customer": { + "name": "Brian Murray", + "age": 77, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Nelson, Johnson and Yu", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "should", + "category": "skin", + "price": 529.12, + "stock_quantity": 907 + }, + "customer": { + "name": "Calvin Shaw", + "age": 31, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Lopez Group", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "anyone", + "category": "hope", + "price": 349.05, + "stock_quantity": 44 + }, + "customer": { + "name": "Xavier Carlson", + "age": 29, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Savage-Carter", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "main", + "category": "of", + "price": 717.59, + "stock_quantity": 715 + }, + "customer": { + "name": "Alicia Hunter", + "age": 79, + "country": "Uganda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Anderson-Trujillo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Anderson-Trujillo", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "prove", + "category": "open", + "price": 62.84, + "stock_quantity": 791 + }, + "customer": { + "name": "Aaron Gardner", + "age": 66, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Phillips Group", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "alone", + "category": "probably", + "price": 948.59, + "stock_quantity": 947 + }, + "customer": { + "name": "Derrick Schultz", + "age": 80, + "country": "Papua New Guinea" + } + }, + { + "natural_query": "Show me all products in the common category with a price over $942.9.", + "sql_query": "SELECT * FROM products WHERE category = 'common' AND price > 942.9", + "company": { + "name": "Campos-Mccarthy", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "resource", + "category": "common", + "price": 942.9, + "stock_quantity": 998 + }, + "customer": { + "name": "Robin Martinez", + "age": 35, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Scott, Davis and Rivera", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "include", + "category": "animal", + "price": 600.24, + "stock_quantity": 27 + }, + "customer": { + "name": "John Gonzales", + "age": 50, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Mercado, Wagner and Miller", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "our", + "category": "less", + "price": 693.94, + "stock_quantity": 80 + }, + "customer": { + "name": "David Mckee", + "age": 65, + "country": "India" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Beard Group for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Beard Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Beard Group", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "week", + "category": "teach", + "price": 268.97, + "stock_quantity": 789 + }, + "customer": { + "name": "Matthew Cooley", + "age": 59, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Sanders, Hernandez and Frank", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "others", + "category": "way", + "price": 225.4, + "stock_quantity": 51 + }, + "customer": { + "name": "Charles Wright", + "age": 36, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Richards LLC", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "task", + "category": "responsibility", + "price": 565.04, + "stock_quantity": 875 + }, + "customer": { + "name": "Monica Thompson", + "age": 75, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Garza Ltd", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "keep", + "category": "Democrat", + "price": 246.67, + "stock_quantity": 167 + }, + "customer": { + "name": "Kelly Swanson", + "age": 77, + "country": "Chile" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morrow-Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morrow-Campbell", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "dark", + "category": "despite", + "price": 219.14, + "stock_quantity": 438 + }, + "customer": { + "name": "Derek Cunningham", + "age": 58, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Williams, Kirk and George", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "safe", + "category": "turn", + "price": 921.17, + "stock_quantity": 681 + }, + "customer": { + "name": "Mrs. Ruth Howard", + "age": 43, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Castillo-Harper", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "century", + "category": "begin", + "price": 321.41, + "stock_quantity": 411 + }, + "customer": { + "name": "Teresa Valencia", + "age": 27, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Gonzalez Inc", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "tell", + "category": "attorney", + "price": 802.45, + "stock_quantity": 207 + }, + "customer": { + "name": "Robert Mcneil", + "age": 50, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Roberts and Sons", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "meeting", + "category": "medical", + "price": 626.39, + "stock_quantity": 452 + }, + "customer": { + "name": "Raymond Johnson", + "age": 19, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Crawford-Barrera", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "catch", + "category": "just", + "price": 690.97, + "stock_quantity": 95 + }, + "customer": { + "name": "Christopher Kim", + "age": 63, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Guzman-Kelly", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "summer", + "category": "social", + "price": 82.67, + "stock_quantity": 230 + }, + "customer": { + "name": "Haley Kirby", + "age": 79, + "country": "El Salvador" + } + }, + { + "natural_query": "List all customers and their total order value for Walker, Welch and Soto.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Walker, Welch and Soto' GROUP BY c.customer_id", + "company": { + "name": "Walker, Welch and Soto", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "place", + "category": "writer", + "price": 279.94, + "stock_quantity": 699 + }, + "customer": { + "name": "David Yates", + "age": 57, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Lewis-Booker", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "any", + "category": "study", + "price": 424.87, + "stock_quantity": 405 + }, + "customer": { + "name": "Robert Navarro", + "age": 73, + "country": "Austria" + } + }, + { + "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'", + "company": { + "name": "Mercado, Williams and Robinson", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "teacher", + "category": "deep", + "price": 726.37, + "stock_quantity": 337 + }, + "customer": { + "name": "Angel Singleton", + "age": 62, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Craig, Chandler and Hill", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "dinner", + "category": "child", + "price": 465.38, + "stock_quantity": 893 + }, + "customer": { + "name": "Benjamin Wright", + "age": 58, + "country": "Isle of Man" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Meyer-Lee'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Meyer-Lee", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "letter", + "category": "boy", + "price": 534.2, + "stock_quantity": 505 + }, + "customer": { + "name": "Daniel Wall", + "age": 59, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Mcdaniel LLC", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "discuss", + "category": "approach", + "price": 498.86, + "stock_quantity": 911 + }, + "customer": { + "name": "Jeanette Mendoza", + "age": 18, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Morales Inc", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "forget", + "category": "community", + "price": 919.5, + "stock_quantity": 700 + }, + "customer": { + "name": "Deanna Nichols", + "age": 78, + "country": "Jordan" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Rivera-Hurley?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Rivera-Hurley'", + "company": { + "name": "Rivera-Hurley", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "white", + "category": "financial", + "price": 145.01, + "stock_quantity": 108 + }, + "customer": { + "name": "Joseph Fletcher", + "age": 68, + "country": "Mauritania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Santiago Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Santiago Group", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "also", + "category": "fact", + "price": 815.2, + "stock_quantity": 249 + }, + "customer": { + "name": "Audrey Coffey", + "age": 62, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Butler Inc", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "give", + "category": "buy", + "price": 405.3, + "stock_quantity": 512 + }, + "customer": { + "name": "Jeffrey Gutierrez", + "age": 56, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Henry-Martin", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "great", + "category": "dog", + "price": 304.6, + "stock_quantity": 89 + }, + "customer": { + "name": "Anthony Perkins", + "age": 20, + "country": "Afghanistan" + } + }, + { + "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'", + "company": { + "name": "Coffey, Wise and Kelly", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "television", + "category": "situation", + "price": 152.18, + "stock_quantity": 902 + }, + "customer": { + "name": "David Kelly", + "age": 47, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Henderson-Owen", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "or", + "category": "why", + "price": 203.96, + "stock_quantity": 630 + }, + "customer": { + "name": "Lauren Washington", + "age": 22, + "country": "Liberia" + } + }, + { + "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'", + "company": { + "name": "Oliver, Smith and Hunt", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "network", + "category": "popular", + "price": 936.94, + "stock_quantity": 268 + }, + "customer": { + "name": "Patrick Stevenson", + "age": 33, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Wagner, Lopez and Pruitt", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "some", + "category": "center", + "price": 25.05, + "stock_quantity": 59 + }, + "customer": { + "name": "Alexis Wood", + "age": 75, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Franklin Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Franklin Group", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "important", + "category": "easy", + "price": 905.33, + "stock_quantity": 97 + }, + "customer": { + "name": "Laura Cruz", + "age": 44, + "country": "Mexico" + } + }, + { + "natural_query": "List all products of Martinez, Nelson and Gomez ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Martinez, Nelson and Gomez' ORDER BY price DESC", + "company": { + "name": "Martinez, Nelson and Gomez", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "gun", + "category": "food", + "price": 119.79, + "stock_quantity": 244 + }, + "customer": { + "name": "Brandon Parsons", + "age": 62, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Sanchez, Walker and Sullivan", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "others", + "category": "lot", + "price": 54.22, + "stock_quantity": 28 + }, + "customer": { + "name": "Michael Baker", + "age": 42, + "country": "Nepal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown, Brock and Bailey'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown, Brock and Bailey", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "mission", + "category": "modern", + "price": 551.46, + "stock_quantity": 533 + }, + "customer": { + "name": "Megan Adams", + "age": 28, + "country": "Poland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bell-Perez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bell-Perez", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "available", + "category": "including", + "price": 439.84, + "stock_quantity": 250 + }, + "customer": { + "name": "Wendy Castro", + "age": 48, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Logan-Ball", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "across", + "category": "do", + "price": 108.48, + "stock_quantity": 514 + }, + "customer": { + "name": "Jesus Andrews", + "age": 63, + "country": "Oman" + } + }, + { + "natural_query": "List all products of Morales, Gutierrez and Taylor ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Morales, Gutierrez and Taylor' ORDER BY price ASC", + "company": { + "name": "Morales, Gutierrez and Taylor", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "fact", + "category": "agent", + "price": 337.37, + "stock_quantity": 291 + }, + "customer": { + "name": "Aaron Myers", + "age": 75, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Fox Ltd", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "face", + "category": "member", + "price": 349.41, + "stock_quantity": 79 + }, + "customer": { + "name": "Caleb Johnson", + "age": 72, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Lewis-Guerra", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "picture", + "category": "west", + "price": 581.47, + "stock_quantity": 385 + }, + "customer": { + "name": "Tracy Ali", + "age": 48, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "West-Thomas", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "morning", + "category": "report", + "price": 330.73, + "stock_quantity": 79 + }, + "customer": { + "name": "Daniel Reed", + "age": 80, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Patton and Snyder", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "common", + "category": "benefit", + "price": 260.57, + "stock_quantity": 647 + }, + "customer": { + "name": "John Curry", + "age": 61, + "country": "Japan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Woodard Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Woodard Inc", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "really", + "category": "forward", + "price": 719.25, + "stock_quantity": 309 + }, + "customer": { + "name": "Joshua Williams", + "age": 71, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Hall-Freeman", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "to", + "category": "learn", + "price": 142.17, + "stock_quantity": 674 + }, + "customer": { + "name": "Darrell Allen", + "age": 58, + "country": "France" + } + }, + { + "natural_query": "List all products of Reid-Webb ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Reid-Webb' ORDER BY stock_quantity ASC", + "company": { + "name": "Reid-Webb", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "forget", + "category": "foreign", + "price": 262.86, + "stock_quantity": 63 + }, + "customer": { + "name": "Gabriel Vega", + "age": 23, + "country": "Greenland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hurley-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hurley-Anderson", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "development", + "category": "focus", + "price": 632.19, + "stock_quantity": 622 + }, + "customer": { + "name": "Sarah Brewer", + "age": 56, + "country": "Christmas Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murray-Edwards'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murray-Edwards", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "soldier", + "category": "reality", + "price": 269.08, + "stock_quantity": 479 + }, + "customer": { + "name": "Austin Murphy", + "age": 18, + "country": "Georgia" + } + }, + { + "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'", + "company": { + "name": "Welch LLC", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "important", + "category": "door", + "price": 351.2, + "stock_quantity": 123 + }, + "customer": { + "name": "Kenneth Martin", + "age": 71, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Shea, Jones and Rogers", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "minute", + "category": "will", + "price": 765.83, + "stock_quantity": 100 + }, + "customer": { + "name": "Brian Flores", + "age": 22, + "country": "Malaysia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Young, Jones and Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Young, Jones and Smith", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "it", + "category": "financial", + "price": 510.17, + "stock_quantity": 253 + }, + "customer": { + "name": "Brooke Contreras", + "age": 54, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Ballard-Wood", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "beyond", + "category": "heart", + "price": 231.46, + "stock_quantity": 527 + }, + "customer": { + "name": "Christopher Nguyen", + "age": 54, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Vaughn-Wilson", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "citizen", + "category": "involve", + "price": 197.9, + "stock_quantity": 18 + }, + "customer": { + "name": "Kimberly Williams", + "age": 56, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Martin-Mendoza", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "notice", + "category": "talk", + "price": 273.99, + "stock_quantity": 489 + }, + "customer": { + "name": "Morgan Kramer", + "age": 47, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Webb Group", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "member", + "category": "world", + "price": 736.2, + "stock_quantity": 696 + }, + "customer": { + "name": "Vanessa Williams", + "age": 40, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "again", + "category": "rate", + "price": 186.87, + "stock_quantity": 137 + }, + "customer": { + "name": "Kenneth Russell", + "age": 63, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Jefferson, Brooks and Jones", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "our", + "category": "sport", + "price": 834.73, + "stock_quantity": 502 + }, + "customer": { + "name": "David Lee", + "age": 22, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Chavez, Wang and Hernandez", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "face", + "category": "leave", + "price": 482.09, + "stock_quantity": 917 + }, + "customer": { + "name": "Jennifer Carlson", + "age": 60, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Shelton-Baker", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "charge", + "category": "possible", + "price": 742.93, + "stock_quantity": 874 + }, + "customer": { + "name": "Chase Hernandez", + "age": 73, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Yates-Haas", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "month", + "category": "walk", + "price": 770.27, + "stock_quantity": 423 + }, + "customer": { + "name": "Andrew Jones", + "age": 55, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Kane, Simmons and Daniels", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "hot", + "category": "all", + "price": 379.4, + "stock_quantity": 243 + }, + "customer": { + "name": "Emily Miller", + "age": 51, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Garcia Inc", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "trouble", + "category": "possible", + "price": 103.7, + "stock_quantity": 545 + }, + "customer": { + "name": "Victoria Carter", + "age": 47, + "country": "Oman" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cruz, Hernandez and Cook'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cruz, Hernandez and Cook", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "young", + "category": "hope", + "price": 616.01, + "stock_quantity": 699 + }, + "customer": { + "name": "Carmen Wallace", + "age": 63, + "country": "France" + } + }, + { + "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'", + "company": { + "name": "Adams-Bailey", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "population", + "category": "lose", + "price": 146.08, + "stock_quantity": 277 + }, + "customer": { + "name": "Kaitlyn Barrett", + "age": 37, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Thomas, Trujillo and Smith", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "police", + "category": "board", + "price": 546.27, + "stock_quantity": 185 + }, + "customer": { + "name": "Henry Ward", + "age": 62, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Thomas-Aguilar", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "international", + "category": "modern", + "price": 76.37, + "stock_quantity": 291 + }, + "customer": { + "name": "Thomas Shelton", + "age": 66, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Evans and Sons", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "remain", + "category": "green", + "price": 958.71, + "stock_quantity": 787 + }, + "customer": { + "name": "Susan Perez", + "age": 79, + "country": "Uzbekistan" + } + }, + { + "natural_query": "What are the top 5 products by sales for Valdez LLC all time?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Valdez LLC' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5", + "company": { + "name": "Valdez LLC", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "leader", + "category": "door", + "price": 488.94, + "stock_quantity": 565 + }, + "customer": { + "name": "William Calderon", + "age": 34, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Jackson PLC", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "decade", + "category": "college", + "price": 664.31, + "stock_quantity": 310 + }, + "customer": { + "name": "Jill Lee", + "age": 32, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Ortiz-Marsh", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "painting", + "category": "experience", + "price": 825.23, + "stock_quantity": 913 + }, + "customer": { + "name": "Richard Robinson", + "age": 61, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Newman-Nguyen", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "investment", + "category": "career", + "price": 52.07, + "stock_quantity": 975 + }, + "customer": { + "name": "Mrs. Linda Mason", + "age": 21, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Jones Inc", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "stay", + "category": "third", + "price": 366.56, + "stock_quantity": 19 + }, + "customer": { + "name": "James Black", + "age": 39, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Williams LLC", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "race", + "category": "manage", + "price": 957.84, + "stock_quantity": 620 + }, + "customer": { + "name": "Sarah Marshall", + "age": 79, + "country": "Lebanon" + } + }, + { + "natural_query": "How many orders were placed for Byrd, Sawyer and Nicholson between 2023-12-20 and 2024-02-11?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Byrd, Sawyer and Nicholson' AND order_date BETWEEN '2023-12-20' AND '2024-02-11'", + "company": { + "name": "Byrd, Sawyer and Nicholson", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "ok", + "category": "between", + "price": 237.74, + "stock_quantity": 477 + }, + "customer": { + "name": "Olivia Little", + "age": 35, + "country": "France" + } + }, + { + "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'", + "company": { + "name": "Ferguson-Farmer", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "catch", + "category": "simply", + "price": 541.54, + "stock_quantity": 61 + }, + "customer": { + "name": "Tara Harrington", + "age": 25, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Maldonado Group", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "main", + "category": "listen", + "price": 89.4, + "stock_quantity": 330 + }, + "customer": { + "name": "Mr. Douglas Hunter PhD", + "age": 21, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Orr-Clarke", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "daughter", + "category": "run", + "price": 90.46, + "stock_quantity": 567 + }, + "customer": { + "name": "Donald Castillo", + "age": 64, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Conner, Torres and Williams", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "fund", + "category": "hotel", + "price": 569.05, + "stock_quantity": 463 + }, + "customer": { + "name": "Rachel Norman", + "age": 70, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Lee and Sons", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "prevent", + "category": "produce", + "price": 494.42, + "stock_quantity": 352 + }, + "customer": { + "name": "John Smith", + "age": 75, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Willis Group", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "son", + "category": "visit", + "price": 572.15, + "stock_quantity": 523 + }, + "customer": { + "name": "Andres Curtis", + "age": 58, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Graham PLC", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "mouth", + "category": "though", + "price": 766.68, + "stock_quantity": 367 + }, + "customer": { + "name": "Fernando Griffin", + "age": 20, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Mahoney Group", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "campaign", + "category": "institution", + "price": 643.47, + "stock_quantity": 413 + }, + "customer": { + "name": "Emily Davis", + "age": 29, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Serrano-Lawson", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "onto", + "category": "probably", + "price": 162.41, + "stock_quantity": 475 + }, + "customer": { + "name": "Sarah Knight", + "age": 42, + "country": "Thailand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia, Frank and Molina'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia, Frank and Molina", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "music", + "category": "collection", + "price": 95.6, + "stock_quantity": 191 + }, + "customer": { + "name": "Jonathan Sherman", + "age": 57, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Chan-Keith", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "consumer", + "category": "sea", + "price": 652.18, + "stock_quantity": 698 + }, + "customer": { + "name": "Patrick Nguyen", + "age": 38, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "Bradshaw Ltd", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "list", + "category": "range", + "price": 732.91, + "stock_quantity": 297 + }, + "customer": { + "name": "Steve Downs", + "age": 21, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Walsh-Smith", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "people", + "category": "fly", + "price": 789.5, + "stock_quantity": 197 + }, + "customer": { + "name": "Emily Lowe", + "age": 40, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Reyes Ltd", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "owner", + "category": "growth", + "price": 475.24, + "stock_quantity": 23 + }, + "customer": { + "name": "Bruce Thompson", + "age": 39, + "country": "Ghana" + } + }, + { + "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'", + "company": { + "name": "Calderon Inc", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "yourself", + "category": "thus", + "price": 519.44, + "stock_quantity": 507 + }, + "customer": { + "name": "Adam Pittman", + "age": 32, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Marsh Group", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "seat", + "category": "kind", + "price": 934.44, + "stock_quantity": 406 + }, + "customer": { + "name": "Joseph Trevino", + "age": 56, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Pruitt-Kennedy", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "him", + "category": "role", + "price": 573.43, + "stock_quantity": 26 + }, + "customer": { + "name": "Vanessa Roberts", + "age": 32, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Gray-Wilson", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "talk", + "category": "policy", + "price": 646.53, + "stock_quantity": 206 + }, + "customer": { + "name": "Emily White", + "age": 74, + "country": "Algeria" + } + }, + { + "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'", + "company": { + "name": "Simmons, Turner and Martinez", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "class", + "category": "serve", + "price": 451.85, + "stock_quantity": 746 + }, + "customer": { + "name": "Sheri Murray", + "age": 65, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Coleman Inc", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "thing", + "category": "human", + "price": 506.33, + "stock_quantity": 651 + }, + "customer": { + "name": "Amanda Henson", + "age": 21, + "country": "Greece" + } + }, + { + "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'", + "company": { + "name": "Ellis-Miller", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "industry", + "category": "interview", + "price": 191.53, + "stock_quantity": 492 + }, + "customer": { + "name": "Kristina Larsen", + "age": 27, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Scott Inc", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "likely", + "category": "everything", + "price": 247.96, + "stock_quantity": 925 + }, + "customer": { + "name": "Tony Garcia", + "age": 55, + "country": "Venezuela" + } + }, + { + "natural_query": "What is the total sales for each supplier in Jones Ltd?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones Ltd' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Jones Ltd", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "computer", + "category": "effect", + "price": 639.78, + "stock_quantity": 604 + }, + "customer": { + "name": "Marisa Rice", + "age": 26, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "James-Cox", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "feeling", + "category": "yourself", + "price": 825.2, + "stock_quantity": 611 + }, + "customer": { + "name": "Monique Hunt", + "age": 23, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Coleman-Green", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "discussion", + "category": "unit", + "price": 329.77, + "stock_quantity": 296 + }, + "customer": { + "name": "Tiffany Watkins", + "age": 27, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Ray, Miles and Acosta", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "stuff", + "category": "important", + "price": 173.15, + "stock_quantity": 150 + }, + "customer": { + "name": "Erika Davis", + "age": 70, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Vasquez, Conley and Callahan", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "worry", + "category": "scene", + "price": 656.95, + "stock_quantity": 68 + }, + "customer": { + "name": "Jennifer Little", + "age": 61, + "country": "Christmas Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barnett LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barnett LLC", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "also", + "category": "foot", + "price": 56.65, + "stock_quantity": 776 + }, + "customer": { + "name": "Michael Ellis", + "age": 18, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Rosales LLC", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "health", + "category": "thing", + "price": 542.28, + "stock_quantity": 712 + }, + "customer": { + "name": "Robert Watkins", + "age": 42, + "country": "Marshall Islands" + } + }, + { + "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'", + "company": { + "name": "Williams, Stevens and Davis", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "at", + "category": "event", + "price": 453.62, + "stock_quantity": 134 + }, + "customer": { + "name": "Erika Carter", + "age": 52, + "country": "Northern Mariana Islands" + } + }, + { + "natural_query": "What is the total rating of all products for Neal, Cooper and Vazquez?", + "sql_query": "SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Neal, Cooper and Vazquez'", + "company": { + "name": "Neal, Cooper and Vazquez", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "son", + "category": "long", + "price": 799.08, + "stock_quantity": 908 + }, + "customer": { + "name": "Jason Smith", + "age": 62, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Brown Inc", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "body", + "category": "which", + "price": 217.11, + "stock_quantity": 465 + }, + "customer": { + "name": "Dean Quinn", + "age": 33, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Maynard Ltd", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "challenge", + "category": "term", + "price": 523.48, + "stock_quantity": 831 + }, + "customer": { + "name": "Lucas Foster", + "age": 35, + "country": "Sudan" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Haley and Sons?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Haley and Sons' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Haley and Sons", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "professional", + "category": "short", + "price": 251.0, + "stock_quantity": 631 + }, + "customer": { + "name": "Tony Drake", + "age": 33, + "country": "Mayotte" + } + }, + { + "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'", + "company": { + "name": "Stark-Davis", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "especially", + "category": "information", + "price": 99.1, + "stock_quantity": 485 + }, + "customer": { + "name": "Chelsea Lewis", + "age": 44, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Carrillo, Brown and Noble", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "partner", + "category": "but", + "price": 121.39, + "stock_quantity": 282 + }, + "customer": { + "name": "Shannon Shaw", + "age": 37, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Morgan-Moore", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "rest", + "category": "team", + "price": 552.42, + "stock_quantity": 889 + }, + "customer": { + "name": "James Tran", + "age": 45, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Newman Inc", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "recognize", + "category": "computer", + "price": 887.45, + "stock_quantity": 709 + }, + "customer": { + "name": "Heather Lawson", + "age": 41, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Mullen, Johnson and Brennan", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "could", + "category": "hospital", + "price": 507.93, + "stock_quantity": 883 + }, + "customer": { + "name": "Scott Chapman", + "age": 58, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Steele and Sons", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "car", + "category": "agent", + "price": 466.81, + "stock_quantity": 51 + }, + "customer": { + "name": "Anthony Gutierrez", + "age": 70, + "country": "Zambia" + } + }, + { + "natural_query": "What is the average rating of all products for Medina-Brown?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Medina-Brown'", + "company": { + "name": "Medina-Brown", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "newspaper", + "category": "month", + "price": 897.63, + "stock_quantity": 931 + }, + "customer": { + "name": "Kristi Ruiz", + "age": 40, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Stewart Inc", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "middle", + "category": "program", + "price": 869.52, + "stock_quantity": 149 + }, + "customer": { + "name": "Ashley Reilly", + "age": 47, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Adams-Phillips", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "card", + "category": "cut", + "price": 563.95, + "stock_quantity": 552 + }, + "customer": { + "name": "Michael Villegas", + "age": 69, + "country": "Netherlands Antilles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Porter Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Porter Inc", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "despite", + "category": "company", + "price": 576.89, + "stock_quantity": 924 + }, + "customer": { + "name": "Michelle Thomas", + "age": 66, + "country": "Mozambique" + } + }, + { + "natural_query": "List all products of Alexander-Wells ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Alexander-Wells' ORDER BY price DESC", + "company": { + "name": "Alexander-Wells", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "capital", + "category": "fight", + "price": 249.03, + "stock_quantity": 412 + }, + "customer": { + "name": "Jodi Johnson", + "age": 67, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harrington-Hart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harrington-Hart", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "turn", + "category": "blood", + "price": 854.99, + "stock_quantity": 821 + }, + "customer": { + "name": "Ronald Grant", + "age": 31, + "country": "Ethiopia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barker and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barker and Sons", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "soldier", + "category": "century", + "price": 147.36, + "stock_quantity": 448 + }, + "customer": { + "name": "Juan Adams", + "age": 66, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Banks-Houston", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "good", + "category": "air", + "price": 18.31, + "stock_quantity": 681 + }, + "customer": { + "name": "Molly Davis", + "age": 75, + "country": "Korea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez-Franco'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez-Franco", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "computer", + "category": "recognize", + "price": 57.36, + "stock_quantity": 749 + }, + "customer": { + "name": "Tammy Thomas", + "age": 62, + "country": "Puerto Rico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hughes LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hughes LLC", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "happy", + "category": "attention", + "price": 237.54, + "stock_quantity": 835 + }, + "customer": { + "name": "Jimmy Villa", + "age": 48, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Valentine, Jensen and Moore", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "high", + "category": "hold", + "price": 900.06, + "stock_quantity": 11 + }, + "customer": { + "name": "Ryan Thompson", + "age": 71, + "country": "Barbados" + } + }, + { + "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'", + "company": { + "name": "Schneider, Kelly and Ellis", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "site", + "category": "cause", + "price": 107.74, + "stock_quantity": 321 + }, + "customer": { + "name": "Glen Sheppard", + "age": 32, + "country": "Colombia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Castro-Sims'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Castro-Sims", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "peace", + "category": "character", + "price": 991.67, + "stock_quantity": 601 + }, + "customer": { + "name": "Patricia Johnson", + "age": 59, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Reid, Salazar and Hopkins", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "must", + "category": "today", + "price": 176.44, + "stock_quantity": 346 + }, + "customer": { + "name": "Dawn Lopez", + "age": 73, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Turner-Carpenter", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "let", + "category": "glass", + "price": 902.94, + "stock_quantity": 334 + }, + "customer": { + "name": "John Peterson", + "age": 72, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Harris-Costa", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "health", + "category": "just", + "price": 492.23, + "stock_quantity": 996 + }, + "customer": { + "name": "Gregory Stephens", + "age": 20, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Gonzalez-Martin", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "leave", + "category": "whom", + "price": 766.64, + "stock_quantity": 176 + }, + "customer": { + "name": "Laura Harrison", + "age": 53, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Turner-Nielsen", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "he", + "category": "for", + "price": 379.18, + "stock_quantity": 263 + }, + "customer": { + "name": "Tyler Williams", + "age": 51, + "country": "Haiti" + } + }, + { + "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'", + "company": { + "name": "Holt, Ayers and Ford", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "commercial", + "category": "month", + "price": 270.5, + "stock_quantity": 594 + }, + "customer": { + "name": "James Tucker", + "age": 61, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Johnson, Harmon and Weiss", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "break", + "category": "everybody", + "price": 673.58, + "stock_quantity": 990 + }, + "customer": { + "name": "Nicholas Mitchell", + "age": 61, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Singh, Anderson and Webb", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "management", + "category": "small", + "price": 766.63, + "stock_quantity": 556 + }, + "customer": { + "name": "Ryan Smith", + "age": 39, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Walker-Terry", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "or", + "category": "receive", + "price": 424.32, + "stock_quantity": 49 + }, + "customer": { + "name": "Lisa Gonzalez", + "age": 57, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Banks and Sons", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "notice", + "category": "keep", + "price": 980.23, + "stock_quantity": 184 + }, + "customer": { + "name": "George Collins", + "age": 34, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Lyons, Watts and Roman", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "teach", + "category": "as", + "price": 908.17, + "stock_quantity": 370 + }, + "customer": { + "name": "Travis Miller", + "age": 23, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Young LLC", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "risk", + "category": "prevent", + "price": 696.78, + "stock_quantity": 942 + }, + "customer": { + "name": "Katherine James", + "age": 73, + "country": "Ireland" + } + }, + { + "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'", + "company": { + "name": "Gallagher, Roach and Murray", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "just", + "category": "able", + "price": 762.42, + "stock_quantity": 552 + }, + "customer": { + "name": "Walter Murphy", + "age": 62, + "country": "Macao" + } + }, + { + "natural_query": "What is the total profit for each supplier in Blackburn, Richardson and Bailey?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Blackburn, Richardson and Bailey' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Blackburn, Richardson and Bailey", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "wrong", + "category": "record", + "price": 393.93, + "stock_quantity": 543 + }, + "customer": { + "name": "Lisa Martinez", + "age": 29, + "country": "Zambia" + } + }, + { + "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'", + "company": { + "name": "Cox, Guerra and Wolfe", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "something", + "category": "choose", + "price": 895.13, + "stock_quantity": 775 + }, + "customer": { + "name": "Don Fisher MD", + "age": 38, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Guerra-Knox", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "exactly", + "category": "push", + "price": 876.77, + "stock_quantity": 346 + }, + "customer": { + "name": "Michael Figueroa", + "age": 76, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Duncan, Ballard and Miller", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "room", + "category": "blood", + "price": 403.36, + "stock_quantity": 200 + }, + "customer": { + "name": "Lori Garcia", + "age": 28, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "natural_query": "Show me all products in the than category with a price over $147.16.", + "sql_query": "SELECT * FROM products WHERE category = 'than' AND price > 147.16", + "company": { + "name": "Bailey, Wade and Douglas", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "should", + "category": "than", + "price": 147.16, + "stock_quantity": 649 + }, + "customer": { + "name": "Wendy Rivera", + "age": 53, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Robertson Group", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "early", + "category": "whole", + "price": 955.42, + "stock_quantity": 703 + }, + "customer": { + "name": "Scott Garcia", + "age": 30, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Gregory-Williams", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "whatever", + "category": "buy", + "price": 985.47, + "stock_quantity": 350 + }, + "customer": { + "name": "Kathryn Hawkins", + "age": 27, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Poole-Johnson", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "company", + "category": "major", + "price": 876.26, + "stock_quantity": 60 + }, + "customer": { + "name": "Mr. Alexander Martinez DVM", + "age": 71, + "country": "Guatemala" + } + }, + { + "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'", + "company": { + "name": "Avila and Sons", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "style", + "category": "measure", + "price": 764.75, + "stock_quantity": 424 + }, + "customer": { + "name": "David Bryant", + "age": 54, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Bailey, Valdez and Lyons", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "energy", + "category": "year", + "price": 143.44, + "stock_quantity": 607 + }, + "customer": { + "name": "Samantha Tucker", + "age": 50, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Dennis-Hill", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "shoulder", + "category": "thank", + "price": 697.62, + "stock_quantity": 206 + }, + "customer": { + "name": "Stephanie Duke MD", + "age": 77, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Woodard LLC", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "in", + "category": "maybe", + "price": 398.39, + "stock_quantity": 312 + }, + "customer": { + "name": "Jason Fuller", + "age": 78, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Meyer-Wilson", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "radio", + "category": "necessary", + "price": 56.13, + "stock_quantity": 56 + }, + "customer": { + "name": "Carol Price", + "age": 26, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Cook, Watkins and Soto", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "still", + "category": "indicate", + "price": 995.85, + "stock_quantity": 571 + }, + "customer": { + "name": "Rebecca Henry DDS", + "age": 62, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Lawson Group", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "bit", + "category": "work", + "price": 775.55, + "stock_quantity": 894 + }, + "customer": { + "name": "Mark Figueroa", + "age": 21, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Webster Group", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "focus", + "category": "night", + "price": 501.4, + "stock_quantity": 404 + }, + "customer": { + "name": "Shelly Macias", + "age": 54, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "George LLC", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "hit", + "category": "national", + "price": 728.04, + "stock_quantity": 212 + }, + "customer": { + "name": "Alec Morris", + "age": 68, + "country": "Heard Island and McDonald Islands" + } + }, + { + "natural_query": "What is the minimum price of all products for Berry PLC?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Berry PLC'", + "company": { + "name": "Berry PLC", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "pattern", + "category": "east", + "price": 674.29, + "stock_quantity": 316 + }, + "customer": { + "name": "Susan Fischer", + "age": 53, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Bass-Cox", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "box", + "category": "word", + "price": 40.58, + "stock_quantity": 467 + }, + "customer": { + "name": "Todd Gamble", + "age": 72, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Buckley, Parker and Skinner", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "start", + "category": "wife", + "price": 852.07, + "stock_quantity": 572 + }, + "customer": { + "name": "Sean Allen", + "age": 51, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Wilson, Kent and Wright", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "check", + "category": "cup", + "price": 799.87, + "stock_quantity": 485 + }, + "customer": { + "name": "Stephanie Macias", + "age": 54, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "James, Lewis and Briggs", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "call", + "category": "environmental", + "price": 227.46, + "stock_quantity": 383 + }, + "customer": { + "name": "Michael Jackson", + "age": 59, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Cook-Garrett", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "relationship", + "category": "leader", + "price": 848.44, + "stock_quantity": 780 + }, + "customer": { + "name": "Anthony Chang", + "age": 49, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Duke-James", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "degree", + "category": "Mr", + "price": 23.27, + "stock_quantity": 820 + }, + "customer": { + "name": "Stephanie Steele", + "age": 61, + "country": "Marshall Islands" + } + }, + { + "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'", + "company": { + "name": "Rodriguez-Wolf", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "late", + "category": "next", + "price": 945.35, + "stock_quantity": 899 + }, + "customer": { + "name": "Jasmine Johnson", + "age": 31, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Moore-Wilson", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "significant", + "category": "as", + "price": 806.98, + "stock_quantity": 223 + }, + "customer": { + "name": "Cheyenne Lyons", + "age": 44, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Cook Inc", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "road", + "category": "source", + "price": 181.41, + "stock_quantity": 415 + }, + "customer": { + "name": "Jesse Schneider", + "age": 55, + "country": "Uzbekistan" + } + }, + { + "natural_query": "Show me all products in the still category with a price over $873.71.", + "sql_query": "SELECT * FROM products WHERE category = 'still' AND price > 873.71", + "company": { + "name": "Jones-Koch", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "building", + "category": "still", + "price": 873.71, + "stock_quantity": 580 + }, + "customer": { + "name": "Travis Dudley", + "age": 24, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Burns, Russell and Miller", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "modern", + "category": "everything", + "price": 806.81, + "stock_quantity": 91 + }, + "customer": { + "name": "Alec Graham", + "age": 63, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Ford, Fisher and Woodard", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "thank", + "category": "light", + "price": 826.11, + "stock_quantity": 855 + }, + "customer": { + "name": "Michael Sherman", + "age": 80, + "country": "Honduras" + } + }, + { + "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'", + "company": { + "name": "Flores PLC", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "begin", + "category": "class", + "price": 176.83, + "stock_quantity": 132 + }, + "customer": { + "name": "Stanley Thornton", + "age": 47, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Andrews-Buckley", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "food", + "category": "government", + "price": 260.87, + "stock_quantity": 530 + }, + "customer": { + "name": "Andrew Sullivan", + "age": 60, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Rivas, Campbell and Moore", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "worker", + "category": "fear", + "price": 525.46, + "stock_quantity": 104 + }, + "customer": { + "name": "Ryan Lindsey", + "age": 64, + "country": "Tuvalu" + } + }, + { + "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'", + "company": { + "name": "Bailey-Montoya", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "one", + "category": "soon", + "price": 472.9, + "stock_quantity": 301 + }, + "customer": { + "name": "Desiree Mitchell", + "age": 78, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Johnson Group", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "oil", + "category": "all", + "price": 575.16, + "stock_quantity": 655 + }, + "customer": { + "name": "Michael Mckinney", + "age": 20, + "country": "United Arab Emirates" + } + }, + { + "natural_query": "List all products of Salazar-Perry ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Salazar-Perry' ORDER BY price DESC", + "company": { + "name": "Salazar-Perry", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "any", + "category": "serious", + "price": 836.14, + "stock_quantity": 179 + }, + "customer": { + "name": "Emma Warren", + "age": 50, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Williams-Long", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "magazine", + "category": "plan", + "price": 454.71, + "stock_quantity": 721 + }, + "customer": { + "name": "Mrs. Donna Benitez", + "age": 44, + "country": "Bulgaria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Travis-Little'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Travis-Little", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "set", + "category": "decade", + "price": 998.19, + "stock_quantity": 575 + }, + "customer": { + "name": "Brad Allison", + "age": 52, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Brown, Knight and Mitchell", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "data", + "category": "many", + "price": 696.0, + "stock_quantity": 409 + }, + "customer": { + "name": "Denise Sloan", + "age": 55, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Warren, Lopez and Banks", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "right", + "category": "improve", + "price": 502.72, + "stock_quantity": 667 + }, + "customer": { + "name": "Scott Buck", + "age": 77, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Cervantes Inc", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "kitchen", + "category": "security", + "price": 208.61, + "stock_quantity": 37 + }, + "customer": { + "name": "Cynthia Crawford", + "age": 30, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "sister", + "category": "concern", + "price": 432.14, + "stock_quantity": 557 + }, + "customer": { + "name": "Anna Conner", + "age": 49, + "country": "Syrian Arab Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rios-Parks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rios-Parks", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "money", + "category": "point", + "price": 703.7, + "stock_quantity": 136 + }, + "customer": { + "name": "Jeffrey Norris", + "age": 22, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Fuller, Miranda and Travis", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "situation", + "category": "yeah", + "price": 918.94, + "stock_quantity": 550 + }, + "customer": { + "name": "Donald Moore", + "age": 39, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Wall, Cameron and Strickland", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "either", + "category": "report", + "price": 860.98, + "stock_quantity": 260 + }, + "customer": { + "name": "Claudia Johnston", + "age": 36, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Colon LLC", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "that", + "category": "ahead", + "price": 961.08, + "stock_quantity": 199 + }, + "customer": { + "name": "Gail Gutierrez", + "age": 28, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Yang, Reynolds and Martinez", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "physical", + "category": "believe", + "price": 271.85, + "stock_quantity": 818 + }, + "customer": { + "name": "Matthew Perez", + "age": 38, + "country": "Mauritius" + } + }, + { + "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'", + "company": { + "name": "Kemp PLC", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "speech", + "category": "force", + "price": 970.14, + "stock_quantity": 109 + }, + "customer": { + "name": "Tiffany Reed", + "age": 22, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Scott, Nelson and Guzman", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "avoid", + "category": "such", + "price": 758.66, + "stock_quantity": 351 + }, + "customer": { + "name": "Patricia Schwartz", + "age": 23, + "country": "Croatia" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Mills Group?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Mills Group' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Mills Group", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "arm", + "category": "focus", + "price": 35.25, + "stock_quantity": 158 + }, + "customer": { + "name": "Christopher Oliver", + "age": 47, + "country": "Turks and Caicos Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gardner-Holt'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gardner-Holt", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "miss", + "category": "include", + "price": 397.23, + "stock_quantity": 888 + }, + "customer": { + "name": "Michael Todd", + "age": 72, + "country": "Turkey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Robertson, Stewart and Duncan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Robertson, Stewart and Duncan", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "leave", + "category": "run", + "price": 682.22, + "stock_quantity": 486 + }, + "customer": { + "name": "Tara Carson", + "age": 39, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Torres, Lopez and Velasquez", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "close", + "category": "again", + "price": 987.02, + "stock_quantity": 525 + }, + "customer": { + "name": "Angela Jones", + "age": 69, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Dunn Inc", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "she", + "category": "fast", + "price": 491.27, + "stock_quantity": 632 + }, + "customer": { + "name": "Dominic Rios", + "age": 59, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Reid, Johnson and Pena", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "human", + "category": "see", + "price": 134.54, + "stock_quantity": 374 + }, + "customer": { + "name": "Kimberly Wilkerson", + "age": 21, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Hunt, Baldwin and Mullins", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "carry", + "category": "easy", + "price": 234.54, + "stock_quantity": 14 + }, + "customer": { + "name": "Ivan Dixon", + "age": 51, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Smith-Turner", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "role", + "category": "agent", + "price": 96.65, + "stock_quantity": 341 + }, + "customer": { + "name": "Randy Hunter", + "age": 62, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Brady-Williams", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "our", + "category": "nature", + "price": 965.37, + "stock_quantity": 216 + }, + "customer": { + "name": "William Walker", + "age": 47, + "country": "French Guiana" + } + }, + { + "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'", + "company": { + "name": "Greene, Parks and Simmons", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "some", + "category": "send", + "price": 264.89, + "stock_quantity": 456 + }, + "customer": { + "name": "Barbara Johnson", + "age": 66, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Stanley-Richardson", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "stop", + "category": "area", + "price": 458.55, + "stock_quantity": 474 + }, + "customer": { + "name": "Mark Lyons", + "age": 36, + "country": "Malaysia" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Berger-Cox?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Berger-Cox' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Berger-Cox", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "sign", + "category": "use", + "price": 831.0, + "stock_quantity": 167 + }, + "customer": { + "name": "Jermaine Butler", + "age": 29, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Hooper, Rivera and Lopez", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "admit", + "category": "character", + "price": 534.44, + "stock_quantity": 159 + }, + "customer": { + "name": "Ryan Terry", + "age": 36, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Carter-Reed", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "power", + "category": "forget", + "price": 996.37, + "stock_quantity": 455 + }, + "customer": { + "name": "Benjamin Mitchell", + "age": 18, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Clark, Bernard and Skinner", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "technology", + "category": "himself", + "price": 603.49, + "stock_quantity": 113 + }, + "customer": { + "name": "Marcia Boyd", + "age": 18, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Taylor, Thompson and Hanson", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "sound", + "category": "throughout", + "price": 97.43, + "stock_quantity": 556 + }, + "customer": { + "name": "Anthony Clark", + "age": 37, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Olson, Robles and Jones", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "situation", + "category": "support", + "price": 661.48, + "stock_quantity": 997 + }, + "customer": { + "name": "Bruce Pratt", + "age": 60, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Wyatt Ltd", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "organization", + "category": "prevent", + "price": 63.24, + "stock_quantity": 857 + }, + "customer": { + "name": "Susan Johnson", + "age": 38, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Burns Inc", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "test", + "category": "arm", + "price": 644.7, + "stock_quantity": 480 + }, + "customer": { + "name": "Hailey Moore", + "age": 67, + "country": "Canada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Medina, Pierce and Gardner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Medina, Pierce and Gardner", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "family", + "category": "material", + "price": 238.56, + "stock_quantity": 212 + }, + "customer": { + "name": "Megan Orr", + "age": 70, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Pena, Williams and Gomez", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "cut", + "category": "recognize", + "price": 295.89, + "stock_quantity": 67 + }, + "customer": { + "name": "Samantha Rice", + "age": 22, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Schwartz-Hall", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "radio", + "category": "begin", + "price": 389.08, + "stock_quantity": 246 + }, + "customer": { + "name": "Patrick Mcgee", + "age": 48, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Jackson-Walter", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "able", + "category": "society", + "price": 961.52, + "stock_quantity": 758 + }, + "customer": { + "name": "Steve Campbell", + "age": 68, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Bush-Ruiz", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "guy", + "category": "paper", + "price": 681.27, + "stock_quantity": 712 + }, + "customer": { + "name": "Chelsea Thompson", + "age": 68, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Jones, Fields and Bolton", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "free", + "category": "star", + "price": 93.91, + "stock_quantity": 862 + }, + "customer": { + "name": "Morgan Johnson", + "age": 71, + "country": "Uganda" + } + }, + { + "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'", + "company": { + "name": "Garcia, Burnett and Bailey", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "gun", + "category": "relationship", + "price": 354.4, + "stock_quantity": 414 + }, + "customer": { + "name": "Jamie King", + "age": 43, + "country": "Kuwait" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson Inc", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "nice", + "category": "per", + "price": 981.56, + "stock_quantity": 601 + }, + "customer": { + "name": "Amy Humphrey", + "age": 38, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Stewart-Campbell", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "value", + "category": "range", + "price": 740.71, + "stock_quantity": 597 + }, + "customer": { + "name": "Kelli Riggs", + "age": 76, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Hoover-Bowen", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "pressure", + "category": "set", + "price": 164.95, + "stock_quantity": 822 + }, + "customer": { + "name": "Andrew Mullins", + "age": 57, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Luna, Smith and Herman", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "war", + "category": "future", + "price": 399.85, + "stock_quantity": 479 + }, + "customer": { + "name": "Katherine Allen", + "age": 73, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Bowman-Scott", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "front", + "category": "yeah", + "price": 520.48, + "stock_quantity": 302 + }, + "customer": { + "name": "Eric Carpenter", + "age": 58, + "country": "Guernsey" + } + }, + { + "natural_query": "List all customers and their total order value for Phillips-Johnson.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Phillips-Johnson' GROUP BY c.customer_id", + "company": { + "name": "Phillips-Johnson", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "return", + "category": "movie", + "price": 604.58, + "stock_quantity": 506 + }, + "customer": { + "name": "Peter Martinez", + "age": 80, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Strong, Ford and Holden", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "collection", + "category": "magazine", + "price": 554.84, + "stock_quantity": 270 + }, + "customer": { + "name": "Carrie Hernandez", + "age": 47, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Crawford, Love and Snyder", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "those", + "category": "build", + "price": 155.14, + "stock_quantity": 816 + }, + "customer": { + "name": "Jordan Rodriguez", + "age": 69, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Casey, Barnes and Knight", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "research", + "category": "pick", + "price": 376.11, + "stock_quantity": 32 + }, + "customer": { + "name": "James Garcia", + "age": 31, + "country": "Ghana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Houston PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Houston PLC", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "real", + "category": "center", + "price": 415.58, + "stock_quantity": 171 + }, + "customer": { + "name": "Robert Lewis", + "age": 25, + "country": "Pakistan" + } + }, + { + "natural_query": "What is the minimum price of all products for Mccullough-Rojas?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Mccullough-Rojas'", + "company": { + "name": "Mccullough-Rojas", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "myself", + "category": "read", + "price": 554.01, + "stock_quantity": 13 + }, + "customer": { + "name": "Michael Nguyen", + "age": 54, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Diaz-Jennings", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "population", + "category": "voice", + "price": 227.86, + "stock_quantity": 144 + }, + "customer": { + "name": "Kim Wood", + "age": 54, + "country": "Marshall Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cruz, Pierce and Strickland'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cruz, Pierce and Strickland", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "first", + "category": "any", + "price": 432.0, + "stock_quantity": 508 + }, + "customer": { + "name": "Daniel Jenkins", + "age": 78, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Newman-Williams", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "relationship", + "category": "rise", + "price": 383.79, + "stock_quantity": 419 + }, + "customer": { + "name": "Robin Riley", + "age": 67, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Mendoza, Roberts and Carpenter", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "three", + "category": "reality", + "price": 52.81, + "stock_quantity": 466 + }, + "customer": { + "name": "Tanya Evans", + "age": 52, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Jimenez, Thompson and Wells", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "necessary", + "category": "others", + "price": 565.21, + "stock_quantity": 162 + }, + "customer": { + "name": "Larry Santos", + "age": 50, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Cameron, Adams and Henderson", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "occur", + "category": "image", + "price": 932.24, + "stock_quantity": 496 + }, + "customer": { + "name": "Jack Clayton", + "age": 31, + "country": "Tuvalu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rowe, Rodriguez and Gonzales'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rowe, Rodriguez and Gonzales", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "pull", + "category": "hit", + "price": 40.5, + "stock_quantity": 852 + }, + "customer": { + "name": "Roger West", + "age": 66, + "country": "China" + } + }, + { + "natural_query": "List all customers and their total order value for Torres-Reed.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Torres-Reed' GROUP BY c.customer_id", + "company": { + "name": "Torres-Reed", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "scientist", + "category": "total", + "price": 753.48, + "stock_quantity": 47 + }, + "customer": { + "name": "David Johnson", + "age": 52, + "country": "Egypt" + } + }, + { + "natural_query": "How many orders were placed for Porter-Daniel between 2024-09-03 and 2024-09-15?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Porter-Daniel' AND order_date BETWEEN '2024-09-03' AND '2024-09-15'", + "company": { + "name": "Porter-Daniel", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "find", + "category": "talk", + "price": 945.86, + "stock_quantity": 17 + }, + "customer": { + "name": "Jasmine Petersen", + "age": 52, + "country": "El Salvador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hicks, Robinson and Harris'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hicks, Robinson and Harris", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "blood", + "category": "against", + "price": 869.37, + "stock_quantity": 790 + }, + "customer": { + "name": "David Krueger", + "age": 78, + "country": "American Samoa" + } + }, + { + "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'", + "company": { + "name": "Larson-Hernandez", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "growth", + "category": "become", + "price": 354.17, + "stock_quantity": 720 + }, + "customer": { + "name": "Garrett Rodriguez DVM", + "age": 22, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Lee, Myers and Ramsey", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "together", + "category": "cultural", + "price": 239.0, + "stock_quantity": 191 + }, + "customer": { + "name": "Wanda Webster", + "age": 23, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Ortiz, White and Davis", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "difference", + "category": "big", + "price": 275.07, + "stock_quantity": 295 + }, + "customer": { + "name": "Rebecca Cummings", + "age": 61, + "country": "Burkina Faso" + } + }, + { + "natural_query": "What is the total price of all products for Thompson, Lindsey and Marshall?", + "sql_query": "SELECT TOTAL(price) as result FROM products WHERE company_name = 'Thompson, Lindsey and Marshall'", + "company": { + "name": "Thompson, Lindsey and Marshall", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "accept", + "category": "describe", + "price": 520.0, + "stock_quantity": 481 + }, + "customer": { + "name": "Chad Hughes", + "age": 59, + "country": "Netherlands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Becker, Higgins and Cox'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Becker, Higgins and Cox", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "his", + "category": "structure", + "price": 584.91, + "stock_quantity": 565 + }, + "customer": { + "name": "Cheryl Spears", + "age": 52, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Maldonado-Rice", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "paper", + "category": "per", + "price": 161.58, + "stock_quantity": 294 + }, + "customer": { + "name": "David Clark", + "age": 38, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Ward-Gonzales", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "bill", + "category": "school", + "price": 827.02, + "stock_quantity": 389 + }, + "customer": { + "name": "Stacey Flores", + "age": 29, + "country": "Norway" + } + }, + { + "natural_query": "What is the total quantity for each country in Howell LLC?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Howell LLC' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Howell LLC", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "wall", + "category": "late", + "price": 634.76, + "stock_quantity": 288 + }, + "customer": { + "name": "Destiny Peterson", + "age": 28, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Alexander LLC", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "approach", + "category": "college", + "price": 809.52, + "stock_quantity": 392 + }, + "customer": { + "name": "Nicholas Young", + "age": 48, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Jones, Johnson and Kennedy", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "mean", + "category": "expert", + "price": 320.65, + "stock_quantity": 588 + }, + "customer": { + "name": "James Lewis", + "age": 40, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Stone-Baker", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "standard", + "category": "argue", + "price": 960.79, + "stock_quantity": 524 + }, + "customer": { + "name": "Candice Green", + "age": 27, + "country": "Namibia" + } + }, + { + "natural_query": "What are the top 6 products by revenue for Mitchell Ltd last quarter?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mitchell Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6", + "company": { + "name": "Mitchell Ltd", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "central", + "category": "generation", + "price": 811.21, + "stock_quantity": 887 + }, + "customer": { + "name": "Sarah Smith", + "age": 52, + "country": "Maldives" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Armstrong Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Armstrong Ltd", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "drop", + "category": "speak", + "price": 590.39, + "stock_quantity": 226 + }, + "customer": { + "name": "Christopher George", + "age": 42, + "country": "Haiti" + } + }, + { + "natural_query": "What is the total profit for each supplier in Harrison Ltd?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Harrison Ltd' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Harrison Ltd", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "shake", + "category": "Democrat", + "price": 472.14, + "stock_quantity": 883 + }, + "customer": { + "name": "Anita Powell", + "age": 69, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Johnson, Adams and Jordan", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "work", + "category": "thought", + "price": 752.28, + "stock_quantity": 438 + }, + "customer": { + "name": "Laura Moyer", + "age": 22, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Rodriguez LLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "knowledge", + "category": "town", + "price": 846.55, + "stock_quantity": 302 + }, + "customer": { + "name": "David Morgan", + "age": 55, + "country": "Angola" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ball and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ball and Sons", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "toward", + "category": "want", + "price": 137.45, + "stock_quantity": 585 + }, + "customer": { + "name": "Matthew Simon", + "age": 68, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Poole and Sons", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "professor", + "category": "standard", + "price": 866.9, + "stock_quantity": 314 + }, + "customer": { + "name": "Elizabeth Newman", + "age": 68, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Miller, Rogers and Burch", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "start", + "category": "must", + "price": 83.83, + "stock_quantity": 507 + }, + "customer": { + "name": "David Torres", + "age": 31, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Hinton Ltd", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "performance", + "category": "outside", + "price": 616.8, + "stock_quantity": 205 + }, + "customer": { + "name": "Russell Ross", + "age": 29, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Young, Richardson and Mata", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "tax", + "category": "poor", + "price": 50.05, + "stock_quantity": 537 + }, + "customer": { + "name": "Chris Williams", + "age": 28, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Ashley-Esparza", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "leave", + "category": "that", + "price": 48.65, + "stock_quantity": 668 + }, + "customer": { + "name": "Gary James", + "age": 35, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Murphy-Bryant", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "window", + "category": "exactly", + "price": 273.3, + "stock_quantity": 673 + }, + "customer": { + "name": "Michael Lynch", + "age": 50, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Lara and Sons", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "wonder", + "category": "wonder", + "price": 147.58, + "stock_quantity": 237 + }, + "customer": { + "name": "Steven Miller", + "age": 37, + "country": "Malaysia" + } + }, + { + "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'", + "company": { + "name": "Watkins, Andrews and Stewart", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "energy", + "category": "major", + "price": 974.5, + "stock_quantity": 100 + }, + "customer": { + "name": "Bryan Ramirez", + "age": 56, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Potter, Golden and Smith", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "allow", + "category": "just", + "price": 615.34, + "stock_quantity": 560 + }, + "customer": { + "name": "Joshua Sharp", + "age": 31, + "country": "San Marino" + } + }, + { + "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'", + "company": { + "name": "Crawford-Cardenas", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "show", + "category": "huge", + "price": 638.54, + "stock_quantity": 183 + }, + "customer": { + "name": "Cindy Martinez", + "age": 29, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Rojas-Johnson", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "shoulder", + "category": "dream", + "price": 759.85, + "stock_quantity": 7 + }, + "customer": { + "name": "Luis Phillips", + "age": 57, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Brown-Kennedy", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "involve", + "category": "bag", + "price": 879.96, + "stock_quantity": 726 + }, + "customer": { + "name": "Lindsey Nelson", + "age": 22, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Smith LLC", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "or", + "category": "they", + "price": 790.15, + "stock_quantity": 99 + }, + "customer": { + "name": "Isaiah Pena", + "age": 80, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Hendricks, Bullock and Parker", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "themselves", + "category": "hard", + "price": 843.12, + "stock_quantity": 382 + }, + "customer": { + "name": "Michael Walker", + "age": 37, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Browning Ltd", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "executive", + "category": "stay", + "price": 983.33, + "stock_quantity": 520 + }, + "customer": { + "name": "Ryan Rodriguez", + "age": 73, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Long-Hunter", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "ok", + "category": "material", + "price": 21.06, + "stock_quantity": 651 + }, + "customer": { + "name": "Joshua Delacruz", + "age": 46, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Kelley Inc", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "tree", + "category": "even", + "price": 612.84, + "stock_quantity": 523 + }, + "customer": { + "name": "Cynthia Watts", + "age": 69, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Johnson Group", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "police", + "category": "result", + "price": 193.52, + "stock_quantity": 912 + }, + "customer": { + "name": "Deborah Marsh", + "age": 65, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Price, Coffey and Dodson", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "research", + "category": "save", + "price": 695.93, + "stock_quantity": 316 + }, + "customer": { + "name": "James Smith", + "age": 21, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Calhoun-Mercado", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "father", + "category": "else", + "price": 880.27, + "stock_quantity": 692 + }, + "customer": { + "name": "Christopher Smith", + "age": 70, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Fischer-Bell", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "good", + "category": "my", + "price": 488.68, + "stock_quantity": 967 + }, + "customer": { + "name": "Christina Henson", + "age": 44, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Vargas Group", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "consumer", + "category": "doctor", + "price": 14.2, + "stock_quantity": 599 + }, + "customer": { + "name": "Cynthia Andrews", + "age": 33, + "country": "Nigeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Torres-Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Torres-Smith", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "success", + "category": "raise", + "price": 686.89, + "stock_quantity": 544 + }, + "customer": { + "name": "John Robertson", + "age": 56, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Wright, Townsend and Berger", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "process", + "category": "story", + "price": 796.59, + "stock_quantity": 88 + }, + "customer": { + "name": "Gregory Watson", + "age": 27, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Jenkins Inc", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "wear", + "category": "might", + "price": 275.7, + "stock_quantity": 727 + }, + "customer": { + "name": "Kelly Cunningham", + "age": 55, + "country": "New Caledonia" + } + }, + { + "natural_query": "Show me all products in the do category with a price over $423.81.", + "sql_query": "SELECT * FROM products WHERE category = 'do' AND price > 423.81", + "company": { + "name": "Reed Group", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "human", + "category": "do", + "price": 423.81, + "stock_quantity": 85 + }, + "customer": { + "name": "Charlene Montoya", + "age": 53, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Smith-Davis", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "season", + "category": "win", + "price": 372.18, + "stock_quantity": 718 + }, + "customer": { + "name": "James Green", + "age": 76, + "country": "Ethiopia" + } + }, + { + "natural_query": "What are the top 8 products by customers for Burns-Rhodes this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Burns-Rhodes' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8", + "company": { + "name": "Burns-Rhodes", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "cover", + "category": "detail", + "price": 58.95, + "stock_quantity": 562 + }, + "customer": { + "name": "Patricia Lane", + "age": 25, + "country": "Cocos (Keeling) Islands" + } + }, + { + "natural_query": "What is the total quantity for each country in Holloway-Perkins?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Holloway-Perkins' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Holloway-Perkins", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "information", + "category": "occur", + "price": 331.3, + "stock_quantity": 102 + }, + "customer": { + "name": "Amanda Lucas", + "age": 49, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Valdez Inc", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "budget", + "category": "property", + "price": 176.22, + "stock_quantity": 971 + }, + "customer": { + "name": "Richard Banks", + "age": 77, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Boone PLC", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "together", + "category": "base", + "price": 783.71, + "stock_quantity": 70 + }, + "customer": { + "name": "David Wood", + "age": 25, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Davidson, Wilson and Johnson", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "customer", + "category": "standard", + "price": 663.08, + "stock_quantity": 137 + }, + "customer": { + "name": "Christopher Wilson", + "age": 73, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Figueroa, Williams and Jordan", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "around", + "category": "direction", + "price": 776.92, + "stock_quantity": 333 + }, + "customer": { + "name": "Dr. Johnny Booth", + "age": 47, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Wiggins, Newman and Williams", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "at", + "category": "thank", + "price": 397.67, + "stock_quantity": 462 + }, + "customer": { + "name": "Stephanie Lawson", + "age": 42, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Michael Ltd", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "sound", + "category": "close", + "price": 993.53, + "stock_quantity": 247 + }, + "customer": { + "name": "Larry Hernandez", + "age": 62, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Becker LLC", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "peace", + "category": "best", + "price": 843.38, + "stock_quantity": 648 + }, + "customer": { + "name": "Kristina Farmer", + "age": 71, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Brown and Sons", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "through", + "category": "although", + "price": 574.96, + "stock_quantity": 872 + }, + "customer": { + "name": "Cassandra Love", + "age": 51, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Jones-Pope", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "may", + "category": "evidence", + "price": 658.7, + "stock_quantity": 125 + }, + "customer": { + "name": "Melissa Hunt", + "age": 43, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Maxwell, Clements and Gregory", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "later", + "category": "deep", + "price": 351.04, + "stock_quantity": 519 + }, + "customer": { + "name": "David Macdonald", + "age": 33, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Huang, Ray and Clark", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "able", + "category": "listen", + "price": 605.47, + "stock_quantity": 709 + }, + "customer": { + "name": "Kyle Holden", + "age": 42, + "country": "Mexico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Schneider, Robbins and Butler'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Schneider, Robbins and Butler", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "pull", + "category": "those", + "price": 153.01, + "stock_quantity": 797 + }, + "customer": { + "name": "Justin Morales", + "age": 26, + "country": "Indonesia" + } + }, + { + "natural_query": "List all customers and their total order value for Moore and Sons.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Moore and Sons' GROUP BY c.customer_id", + "company": { + "name": "Moore and Sons", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "collection", + "category": "attention", + "price": 656.77, + "stock_quantity": 484 + }, + "customer": { + "name": "Katelyn Lewis", + "age": 48, + "country": "Chile" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson and Sons", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "worker", + "category": "entire", + "price": 199.28, + "stock_quantity": 809 + }, + "customer": { + "name": "Shawn Costa", + "age": 68, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Harris LLC", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "operation", + "category": "two", + "price": 391.78, + "stock_quantity": 415 + }, + "customer": { + "name": "Philip Avila", + "age": 49, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Miller Group", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "series", + "category": "green", + "price": 731.72, + "stock_quantity": 282 + }, + "customer": { + "name": "Caleb Tucker", + "age": 46, + "country": "Guam" + } + }, + { + "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'", + "company": { + "name": "Maynard LLC", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "learn", + "category": "many", + "price": 763.02, + "stock_quantity": 756 + }, + "customer": { + "name": "Mary Chapman", + "age": 61, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "David Ltd", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "practice", + "category": "system", + "price": 847.74, + "stock_quantity": 5 + }, + "customer": { + "name": "Charles Wallace", + "age": 29, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Weaver and Sons", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "school", + "category": "Mrs", + "price": 694.69, + "stock_quantity": 560 + }, + "customer": { + "name": "Karen Lee", + "age": 52, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Bell-Fuentes", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "mention", + "category": "require", + "price": 31.79, + "stock_quantity": 411 + }, + "customer": { + "name": "Sandra Clark", + "age": 27, + "country": "Aruba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Coleman-Hall'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Coleman-Hall", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "many", + "category": "seven", + "price": 952.28, + "stock_quantity": 935 + }, + "customer": { + "name": "Joel Gregory II", + "age": 38, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Tran-Morgan", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "tough", + "category": "general", + "price": 116.56, + "stock_quantity": 381 + }, + "customer": { + "name": "Tara Rice", + "age": 70, + "country": "Mexico" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Mclaughlin-Henderson for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mclaughlin-Henderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mclaughlin-Henderson", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "offer", + "category": "shoulder", + "price": 180.9, + "stock_quantity": 967 + }, + "customer": { + "name": "Justin Freeman", + "age": 69, + "country": "Romania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia-Rodriguez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia-Rodriguez", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "simply", + "category": "second", + "price": 387.37, + "stock_quantity": 859 + }, + "customer": { + "name": "Aaron Clark MD", + "age": 57, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Peters-Goodwin", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "attorney", + "category": "describe", + "price": 951.84, + "stock_quantity": 93 + }, + "customer": { + "name": "Judy Ferguson", + "age": 33, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Williams and Sons", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "political", + "category": "indicate", + "price": 915.14, + "stock_quantity": 930 + }, + "customer": { + "name": "Megan Martinez", + "age": 23, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Schultz-Martinez", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "arrive", + "category": "four", + "price": 384.15, + "stock_quantity": 391 + }, + "customer": { + "name": "Kimberly Glover", + "age": 34, + "country": "France" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith-Drake'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith-Drake", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "movement", + "category": "onto", + "price": 578.35, + "stock_quantity": 270 + }, + "customer": { + "name": "Elizabeth Lopez", + "age": 61, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Garcia PLC", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "wonder", + "category": "theory", + "price": 593.75, + "stock_quantity": 43 + }, + "customer": { + "name": "Michelle Delgado", + "age": 45, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Andrade Inc", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "control", + "category": "because", + "price": 176.55, + "stock_quantity": 906 + }, + "customer": { + "name": "Drew Moses", + "age": 55, + "country": "Romania" + } + }, + { + "natural_query": "What is the total sales for each supplier in Schmitt, Adams and Barker?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Schmitt, Adams and Barker' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Schmitt, Adams and Barker", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "very", + "category": "long", + "price": 605.04, + "stock_quantity": 286 + }, + "customer": { + "name": "John Carpenter", + "age": 29, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Ramos, Diaz and Ramirez", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "respond", + "category": "build", + "price": 909.0, + "stock_quantity": 935 + }, + "customer": { + "name": "Julia Morris", + "age": 32, + "country": "Timor-Leste" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Acosta, Chung and Williams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Acosta, Chung and Williams", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "study", + "category": "course", + "price": 70.31, + "stock_quantity": 773 + }, + "customer": { + "name": "Theresa Cain", + "age": 61, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Ruiz, West and Evans", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "maintain", + "category": "admit", + "price": 683.78, + "stock_quantity": 920 + }, + "customer": { + "name": "Sabrina Coleman", + "age": 74, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Miranda, Ramirez and Zavala", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "price", + "category": "growth", + "price": 264.35, + "stock_quantity": 823 + }, + "customer": { + "name": "Elizabeth Carter", + "age": 71, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Howell, Moreno and Nguyen", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "cultural", + "category": "someone", + "price": 533.05, + "stock_quantity": 289 + }, + "customer": { + "name": "Paul Richards", + "age": 75, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Rodriguez LLC", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "citizen", + "category": "computer", + "price": 220.86, + "stock_quantity": 467 + }, + "customer": { + "name": "Earl Phillips", + "age": 78, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fischer Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fischer Ltd", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "report", + "category": "leave", + "price": 521.23, + "stock_quantity": 625 + }, + "customer": { + "name": "Becky Medina", + "age": 58, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Miller-Rogers", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "easy", + "category": "drive", + "price": 359.77, + "stock_quantity": 70 + }, + "customer": { + "name": "Sandra Briggs", + "age": 23, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Williams Inc", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "across", + "category": "else", + "price": 164.82, + "stock_quantity": 172 + }, + "customer": { + "name": "Sarah Miller", + "age": 30, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Barron-Casey", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "modern", + "category": "attack", + "price": 248.56, + "stock_quantity": 828 + }, + "customer": { + "name": "Nicole Murphy", + "age": 38, + "country": "New Zealand" + } + }, + { + "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'", + "company": { + "name": "Miller-Obrien", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "baby", + "category": "late", + "price": 503.63, + "stock_quantity": 26 + }, + "customer": { + "name": "Elizabeth Thomas", + "age": 73, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Lopez-Randolph", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "sit", + "category": "else", + "price": 673.98, + "stock_quantity": 409 + }, + "customer": { + "name": "Bradley Hernandez", + "age": 70, + "country": "Djibouti" + } + }, + { + "natural_query": "Show me all products in the choice category with a price over $317.91.", + "sql_query": "SELECT * FROM products WHERE category = 'choice' AND price > 317.91", + "company": { + "name": "Price-Nelson", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "feel", + "category": "choice", + "price": 317.91, + "stock_quantity": 517 + }, + "customer": { + "name": "Tiffany Smith", + "age": 24, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Benjamin, Rhodes and Campbell", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "loss", + "category": "drug", + "price": 338.24, + "stock_quantity": 400 + }, + "customer": { + "name": "William Love", + "age": 78, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Rice and Sons", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "such", + "category": "job", + "price": 458.39, + "stock_quantity": 787 + }, + "customer": { + "name": "Amanda Richardson", + "age": 34, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Fields, Hayes and Johnson", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "include", + "category": "administration", + "price": 77.61, + "stock_quantity": 234 + }, + "customer": { + "name": "David Benson", + "age": 62, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Evans-Whitehead", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "condition", + "category": "including", + "price": 90.28, + "stock_quantity": 94 + }, + "customer": { + "name": "Amy Pham", + "age": 74, + "country": "Norfolk Island" + } + }, + { + "natural_query": "List all products of Salinas, Davis and Matthews ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Salinas, Davis and Matthews' ORDER BY price ASC", + "company": { + "name": "Salinas, Davis and Matthews", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "billion", + "category": "good", + "price": 101.97, + "stock_quantity": 381 + }, + "customer": { + "name": "Garrett Hubbard", + "age": 73, + "country": "Gambia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baker, Gonzalez and Gray'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baker, Gonzalez and Gray", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "fall", + "category": "long", + "price": 822.34, + "stock_quantity": 287 + }, + "customer": { + "name": "David Smith", + "age": 68, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Williams-Newton", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "state", + "category": "simple", + "price": 268.26, + "stock_quantity": 399 + }, + "customer": { + "name": "David Cantu", + "age": 23, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "West, Thomas and Rodriguez", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "other", + "category": "fill", + "price": 450.18, + "stock_quantity": 919 + }, + "customer": { + "name": "Catherine Drake", + "age": 45, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Berry and Sons", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "subject", + "category": "claim", + "price": 258.68, + "stock_quantity": 596 + }, + "customer": { + "name": "Evelyn Morales", + "age": 47, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Clark Inc", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "argue", + "category": "among", + "price": 665.77, + "stock_quantity": 881 + }, + "customer": { + "name": "Jennifer Cohen", + "age": 35, + "country": "Poland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller-Wagner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller-Wagner", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "believe", + "category": "job", + "price": 443.83, + "stock_quantity": 883 + }, + "customer": { + "name": "Cheryl Wells", + "age": 45, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Franklin-Vazquez", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "teacher", + "category": "let", + "price": 224.17, + "stock_quantity": 772 + }, + "customer": { + "name": "Angela Bartlett", + "age": 67, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Lee-Mitchell", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "member", + "category": "event", + "price": 194.49, + "stock_quantity": 737 + }, + "customer": { + "name": "Mark Francis", + "age": 72, + "country": "Saudi Arabia" + } + }, + { + "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'", + "company": { + "name": "Benson, Hamilton and Macdonald", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "successful", + "category": "spring", + "price": 556.61, + "stock_quantity": 75 + }, + "customer": { + "name": "Kendra Serrano", + "age": 28, + "country": "Papua New Guinea" + } + }, + { + "natural_query": "What are the top 5 products by revenue for Vaughan, Daniels and Smith this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Vaughan, Daniels and Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5", + "company": { + "name": "Vaughan, Daniels and Smith", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "deep", + "category": "easy", + "price": 589.5, + "stock_quantity": 868 + }, + "customer": { + "name": "Nicolas Lynch", + "age": 19, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Beasley and Sons", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "baby", + "category": "human", + "price": 817.16, + "stock_quantity": 411 + }, + "customer": { + "name": "Robert Juarez", + "age": 38, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Dominguez PLC", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "level", + "category": "society", + "price": 217.0, + "stock_quantity": 616 + }, + "customer": { + "name": "Ryan Long", + "age": 36, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Moore LLC", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "note", + "category": "foot", + "price": 49.39, + "stock_quantity": 983 + }, + "customer": { + "name": "Christina Wilkins", + "age": 65, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Bennett-Murphy", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "style", + "category": "from", + "price": 536.17, + "stock_quantity": 409 + }, + "customer": { + "name": "David Miles", + "age": 57, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Miles, Washington and Fisher", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "you", + "category": "until", + "price": 869.02, + "stock_quantity": 670 + }, + "customer": { + "name": "Donald Andersen", + "age": 25, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Ross-Robinson", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "perhaps", + "category": "officer", + "price": 270.17, + "stock_quantity": 501 + }, + "customer": { + "name": "Diane Mcdonald", + "age": 37, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Taylor PLC", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "fine", + "category": "series", + "price": 209.84, + "stock_quantity": 663 + }, + "customer": { + "name": "Carla Lucero", + "age": 47, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "Democrat", + "category": "pass", + "price": 567.11, + "stock_quantity": 837 + }, + "customer": { + "name": "George Wong", + "age": 61, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bryan, Chaney and Bender'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bryan, Chaney and Bender", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "resource", + "category": "common", + "price": 943.43, + "stock_quantity": 904 + }, + "customer": { + "name": "Margaret Farley", + "age": 60, + "country": "Wallis and Futuna" + } + }, + { + "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'", + "company": { + "name": "Fritz PLC", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "hospital", + "category": "walk", + "price": 784.8, + "stock_quantity": 474 + }, + "customer": { + "name": "Anthony Stewart", + "age": 33, + "country": "French Southern Territories" + } + }, + { + "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'", + "company": { + "name": "Moore Ltd", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "gas", + "category": "public", + "price": 802.55, + "stock_quantity": 514 + }, + "customer": { + "name": "Heather Thomas", + "age": 55, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Thompson LLC", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "shake", + "category": "through", + "price": 352.9, + "stock_quantity": 200 + }, + "customer": { + "name": "Janice Melendez", + "age": 40, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Reynolds-Perry", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "true", + "category": "gas", + "price": 897.5, + "stock_quantity": 369 + }, + "customer": { + "name": "Bill Wilson", + "age": 38, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Underwood PLC", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "nice", + "category": "all", + "price": 460.99, + "stock_quantity": 596 + }, + "customer": { + "name": "Crystal Dominguez", + "age": 74, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Marshall, Wang and Williams", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "peace", + "category": "only", + "price": 71.13, + "stock_quantity": 517 + }, + "customer": { + "name": "Jeffrey Stephenson", + "age": 18, + "country": "Saint Kitts and Nevis" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Young, Farmer and Coleman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Young, Farmer and Coleman", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "health", + "category": "laugh", + "price": 628.31, + "stock_quantity": 102 + }, + "customer": { + "name": "Danielle Miller", + "age": 78, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Morgan and Sons", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "interesting", + "category": "try", + "price": 305.23, + "stock_quantity": 807 + }, + "customer": { + "name": "Tamara Daugherty", + "age": 76, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Castro Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Castro Group", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "seem", + "category": "resource", + "price": 761.93, + "stock_quantity": 478 + }, + "customer": { + "name": "Olivia Moreno", + "age": 61, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Chan-Medina", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "happen", + "category": "while", + "price": 159.35, + "stock_quantity": 777 + }, + "customer": { + "name": "Shawn Lara", + "age": 34, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Miller, Benjamin and Spence", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "beyond", + "category": "local", + "price": 775.74, + "stock_quantity": 918 + }, + "customer": { + "name": "Regina Pierce", + "age": 49, + "country": "Switzerland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Browning, Young and Thornton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Browning, Young and Thornton", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "benefit", + "category": "seem", + "price": 351.64, + "stock_quantity": 164 + }, + "customer": { + "name": "John Clayton", + "age": 76, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Gallegos and Sons", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "decade", + "category": "produce", + "price": 166.82, + "stock_quantity": 893 + }, + "customer": { + "name": "Mark Thompson", + "age": 72, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Allen-Lopez", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "ahead", + "category": "modern", + "price": 395.42, + "stock_quantity": 313 + }, + "customer": { + "name": "Cassandra Wade", + "age": 45, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Thompson PLC", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "decision", + "category": "peace", + "price": 763.9, + "stock_quantity": 39 + }, + "customer": { + "name": "Darius Lewis", + "age": 23, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Serrano-Rubio", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "animal", + "category": "discuss", + "price": 601.99, + "stock_quantity": 538 + }, + "customer": { + "name": "Michelle Smith", + "age": 45, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Gomez and Sons", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "for", + "category": "prove", + "price": 633.05, + "stock_quantity": 323 + }, + "customer": { + "name": "Sean Arnold", + "age": 30, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Brown, Porter and Hampton", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "family", + "category": "town", + "price": 366.82, + "stock_quantity": 334 + }, + "customer": { + "name": "Edward Castro", + "age": 74, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Wright, Wolf and Watson", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "national", + "category": "give", + "price": 800.9, + "stock_quantity": 39 + }, + "customer": { + "name": "Joshua Long", + "age": 26, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Brown, Mueller and Mclaughlin", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "black", + "category": "himself", + "price": 511.2, + "stock_quantity": 271 + }, + "customer": { + "name": "Aaron White", + "age": 77, + "country": "Philippines" + } + }, + { + "natural_query": "List all products of Baldwin-Rodriguez ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Baldwin-Rodriguez' ORDER BY rating DESC", + "company": { + "name": "Baldwin-Rodriguez", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "lose", + "category": "law", + "price": 624.89, + "stock_quantity": 53 + }, + "customer": { + "name": "Christie Willis", + "age": 55, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Hendricks-Estrada", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "force", + "category": "their", + "price": 666.88, + "stock_quantity": 885 + }, + "customer": { + "name": "Nicole Gray", + "age": 28, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Thompson-Hernandez", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "nice", + "category": "central", + "price": 610.38, + "stock_quantity": 98 + }, + "customer": { + "name": "Natalie Johnson", + "age": 37, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Day LLC", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "develop", + "category": "while", + "price": 918.76, + "stock_quantity": 908 + }, + "customer": { + "name": "Tina Murphy", + "age": 19, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Jones PLC", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "mouth", + "category": "medical", + "price": 510.72, + "stock_quantity": 340 + }, + "customer": { + "name": "Patrick Barrera", + "age": 47, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Taylor PLC", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "surface", + "category": "go", + "price": 179.01, + "stock_quantity": 958 + }, + "customer": { + "name": "Melissa Martin", + "age": 33, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Yang Group", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "away", + "category": "painting", + "price": 258.52, + "stock_quantity": 777 + }, + "customer": { + "name": "Matthew Brown", + "age": 47, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Hansen-Silva", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "well", + "category": "time", + "price": 556.59, + "stock_quantity": 950 + }, + "customer": { + "name": "Zachary Bryan", + "age": 25, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Martin, Porter and Miller", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "voice", + "category": "way", + "price": 412.46, + "stock_quantity": 699 + }, + "customer": { + "name": "Antonio Robles", + "age": 29, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Wagner Ltd", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "scene", + "category": "policy", + "price": 109.81, + "stock_quantity": 404 + }, + "customer": { + "name": "Corey Bowman", + "age": 79, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Stephenson, Crane and Smith", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "wife", + "category": "these", + "price": 708.75, + "stock_quantity": 806 + }, + "customer": { + "name": "Carmen Peterson", + "age": 80, + "country": "Canada" + } + }, + { + "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'", + "company": { + "name": "Johnson, Blanchard and Chambers", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "specific", + "category": "pull", + "price": 194.41, + "stock_quantity": 478 + }, + "customer": { + "name": "Mary Vazquez", + "age": 48, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Mcintyre-Richards", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "must", + "category": "policy", + "price": 541.47, + "stock_quantity": 601 + }, + "customer": { + "name": "Francisco Pena", + "age": 65, + "country": "Timor-Leste" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Phillips, Lewis and Strickland'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Phillips, Lewis and Strickland", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "support", + "category": "personal", + "price": 657.44, + "stock_quantity": 639 + }, + "customer": { + "name": "Todd Murray", + "age": 37, + "country": "San Marino" + } + }, + { + "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'", + "company": { + "name": "Hall, Riley and Anderson", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "after", + "category": "son", + "price": 355.67, + "stock_quantity": 928 + }, + "customer": { + "name": "Elizabeth Torres", + "age": 31, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Wilson, Mills and Donaldson", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "color", + "category": "rich", + "price": 155.78, + "stock_quantity": 68 + }, + "customer": { + "name": "Jason Stewart", + "age": 21, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Patel LLC", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "myself", + "category": "fight", + "price": 64.41, + "stock_quantity": 494 + }, + "customer": { + "name": "Julia Harrison", + "age": 41, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Johnston Group", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "one", + "category": "suggest", + "price": 757.17, + "stock_quantity": 708 + }, + "customer": { + "name": "Lisa Jenkins", + "age": 48, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Kemp and Sons", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "kitchen", + "category": "also", + "price": 336.88, + "stock_quantity": 388 + }, + "customer": { + "name": "Jared Jones", + "age": 58, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Wade, Burns and Doyle", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "contain", + "category": "offer", + "price": 290.11, + "stock_quantity": 359 + }, + "customer": { + "name": "Michael Reyes", + "age": 31, + "country": "Christmas Island" + } + }, + { + "natural_query": "What are the top 10 products by sales for Harris-Nelson this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Harris-Nelson' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10", + "company": { + "name": "Harris-Nelson", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "couple", + "category": "style", + "price": 773.89, + "stock_quantity": 70 + }, + "customer": { + "name": "Todd Clark", + "age": 39, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Alvarez-Myers", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "player", + "category": "picture", + "price": 239.4, + "stock_quantity": 179 + }, + "customer": { + "name": "Traci Morse", + "age": 56, + "country": "Albania" + } + }, + { + "natural_query": "List all customers and their total order value for Russell Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Russell Ltd' GROUP BY c.customer_id", + "company": { + "name": "Russell Ltd", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "great", + "category": "understand", + "price": 99.02, + "stock_quantity": 608 + }, + "customer": { + "name": "Miranda Johns", + "age": 77, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Hanson-Hill", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "seek", + "category": "Democrat", + "price": 983.0, + "stock_quantity": 341 + }, + "customer": { + "name": "Curtis Jones", + "age": 21, + "country": "Anguilla" + } + }, + { + "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'", + "company": { + "name": "Burns-Baker", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "property", + "category": "person", + "price": 320.33, + "stock_quantity": 780 + }, + "customer": { + "name": "Timothy Sanders", + "age": 63, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Guerrero Group", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "business", + "category": "fire", + "price": 775.16, + "stock_quantity": 150 + }, + "customer": { + "name": "Lisa Lucas", + "age": 74, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Reyes-Kline", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "standard", + "category": "would", + "price": 763.18, + "stock_quantity": 14 + }, + "customer": { + "name": "Cody Gilbert", + "age": 80, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Jones-Martin", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "machine", + "category": "future", + "price": 737.76, + "stock_quantity": 224 + }, + "customer": { + "name": "Mark Morris", + "age": 56, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Parker, Jones and Gillespie", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "item", + "category": "money", + "price": 458.13, + "stock_quantity": 278 + }, + "customer": { + "name": "Frank Castillo", + "age": 32, + "country": "China" + } + }, + { + "natural_query": "What is the average rating of all products for Wilkins, Holmes and Mitchell?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Wilkins, Holmes and Mitchell'", + "company": { + "name": "Wilkins, Holmes and Mitchell", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "exist", + "category": "time", + "price": 129.22, + "stock_quantity": 444 + }, + "customer": { + "name": "Jared Harris", + "age": 72, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Nelson-Stone", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "buy", + "category": "material", + "price": 166.56, + "stock_quantity": 791 + }, + "customer": { + "name": "Erica Middleton", + "age": 68, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Martin Ltd", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "else", + "category": "thus", + "price": 81.52, + "stock_quantity": 601 + }, + "customer": { + "name": "Thomas Solis", + "age": 36, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Mccormick-Gonzalez", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "soldier", + "category": "not", + "price": 430.16, + "stock_quantity": 816 + }, + "customer": { + "name": "Taylor Nicholson", + "age": 25, + "country": "Denmark" + } + }, + { + "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'", + "company": { + "name": "Ramirez, Lee and Calhoun", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "line", + "category": "increase", + "price": 301.91, + "stock_quantity": 716 + }, + "customer": { + "name": "Joseph Scott", + "age": 32, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Herrera-Evans", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "pressure", + "category": "decade", + "price": 787.14, + "stock_quantity": 399 + }, + "customer": { + "name": "James Hayden", + "age": 41, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Moore, Holt and Nelson", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "so", + "category": "coach", + "price": 37.97, + "stock_quantity": 656 + }, + "customer": { + "name": "Brandon Campbell", + "age": 64, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Jackson, Hall and Wise", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "what", + "category": "nearly", + "price": 297.31, + "stock_quantity": 745 + }, + "customer": { + "name": "Marie Simmons", + "age": 70, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Case, Kirby and Glenn", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "however", + "category": "contain", + "price": 950.87, + "stock_quantity": 135 + }, + "customer": { + "name": "Melinda Higgins", + "age": 30, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Lamb LLC", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "you", + "category": "another", + "price": 277.72, + "stock_quantity": 604 + }, + "customer": { + "name": "Katherine Morton", + "age": 45, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Dennis-Shelton", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "culture", + "category": "loss", + "price": 257.04, + "stock_quantity": 584 + }, + "customer": { + "name": "Dr. Mark Oconnell", + "age": 59, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Medina-Goodman", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "trial", + "category": "organization", + "price": 309.53, + "stock_quantity": 984 + }, + "customer": { + "name": "Angela Wu", + "age": 24, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Walsh LLC", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "medical", + "category": "college", + "price": 507.97, + "stock_quantity": 845 + }, + "customer": { + "name": "Shari Matthews", + "age": 29, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Ortiz, Powers and Black", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "eat", + "category": "join", + "price": 786.2, + "stock_quantity": 492 + }, + "customer": { + "name": "Jason Peck", + "age": 57, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Proctor-Cortez", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "Mr", + "category": "final", + "price": 558.91, + "stock_quantity": 973 + }, + "customer": { + "name": "Reginald Chavez", + "age": 80, + "country": "Swaziland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rush-Mcconnell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rush-Mcconnell", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "significant", + "category": "six", + "price": 327.6, + "stock_quantity": 358 + }, + "customer": { + "name": "Jason Rice", + "age": 71, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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'", + "company": { + "name": "Collins-Villa", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "interesting", + "category": "whole", + "price": 136.6, + "stock_quantity": 996 + }, + "customer": { + "name": "Kelly Hammond", + "age": 59, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Buck, Smith and Watts", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "international", + "category": "style", + "price": 83.01, + "stock_quantity": 739 + }, + "customer": { + "name": "Nathan Walton", + "age": 79, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Garcia, Morales and Campbell", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "foot", + "category": "according", + "price": 626.34, + "stock_quantity": 989 + }, + "customer": { + "name": "Jesus York", + "age": 41, + "country": "United States Virgin Islands" + } + }, + { + "natural_query": "List all products of Lopez Inc ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Lopez Inc' ORDER BY stock_quantity DESC", + "company": { + "name": "Lopez Inc", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "better", + "category": "between", + "price": 69.47, + "stock_quantity": 297 + }, + "customer": { + "name": "Paul Figueroa", + "age": 23, + "country": "Ukraine" + } + }, + { + "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'", + "company": { + "name": "Powers, Mitchell and Walker", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "soon", + "category": "drop", + "price": 27.78, + "stock_quantity": 64 + }, + "customer": { + "name": "Brian Allen", + "age": 37, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Mcmillan Ltd", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "morning", + "category": "good", + "price": 600.79, + "stock_quantity": 602 + }, + "customer": { + "name": "Andrea Jackson", + "age": 53, + "country": "Martinique" + } + }, + { + "natural_query": "Show me all products in the notice category with a price over $190.83.", + "sql_query": "SELECT * FROM products WHERE category = 'notice' AND price > 190.83", + "company": { + "name": "Zuniga Group", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "whom", + "category": "notice", + "price": 190.83, + "stock_quantity": 639 + }, + "customer": { + "name": "Kimberly Molina", + "age": 70, + "country": "Turkey" + } + }, + { + "natural_query": "What is the total sales for each country in Beard-Goodman?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Beard-Goodman' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Beard-Goodman", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "tree", + "category": "anything", + "price": 912.77, + "stock_quantity": 207 + }, + "customer": { + "name": "Kenneth Yates", + "age": 20, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Brown, Johnson and Parker", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "win", + "category": "save", + "price": 643.29, + "stock_quantity": 211 + }, + "customer": { + "name": "Michael Phillips", + "age": 73, + "country": "Papua New Guinea" + } + }, + { + "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'", + "company": { + "name": "Knox PLC", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "red", + "category": "forget", + "price": 480.33, + "stock_quantity": 89 + }, + "customer": { + "name": "Margaret Spears", + "age": 36, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Watkins, Taylor and York", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "party", + "category": "material", + "price": 628.06, + "stock_quantity": 57 + }, + "customer": { + "name": "Kristi Vaughn", + "age": 80, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "Thompson-Brown", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "reason", + "category": "finally", + "price": 996.21, + "stock_quantity": 1 + }, + "customer": { + "name": "Clayton Taylor", + "age": 78, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Nguyen-Wilkins", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "condition", + "category": "blood", + "price": 85.76, + "stock_quantity": 883 + }, + "customer": { + "name": "Amanda Hall", + "age": 38, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Sanders-Jackson", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "report", + "category": "concern", + "price": 876.46, + "stock_quantity": 475 + }, + "customer": { + "name": "Patricia Smith", + "age": 76, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Williams, Peterson and Brooks", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "vote", + "category": "the", + "price": 752.21, + "stock_quantity": 900 + }, + "customer": { + "name": "Dwayne Adams", + "age": 26, + "country": "Malta" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jackson, Ayers and Carpenter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jackson, Ayers and Carpenter", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "senior", + "category": "piece", + "price": 146.4, + "stock_quantity": 517 + }, + "customer": { + "name": "Stephen Mcneil", + "age": 59, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Hernandez, Herrera and Lewis", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "feeling", + "category": "will", + "price": 241.71, + "stock_quantity": 494 + }, + "customer": { + "name": "Mr. Ethan Hebert", + "age": 48, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Torres, Stafford and James", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "play", + "category": "center", + "price": 152.44, + "stock_quantity": 30 + }, + "customer": { + "name": "Melissa Rodriguez", + "age": 57, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Maldonado Group", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "read", + "category": "culture", + "price": 131.91, + "stock_quantity": 64 + }, + "customer": { + "name": "Linda Hill", + "age": 67, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Stewart-Young", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "yet", + "category": "generation", + "price": 744.35, + "stock_quantity": 37 + }, + "customer": { + "name": "Jorge Glass", + "age": 46, + "country": "Micronesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hurley-Williams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hurley-Williams", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "allow", + "category": "after", + "price": 937.47, + "stock_quantity": 779 + }, + "customer": { + "name": "Travis Miller", + "age": 38, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Huang-White", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "run", + "category": "admit", + "price": 966.45, + "stock_quantity": 980 + }, + "customer": { + "name": "Michael Moss", + "age": 69, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Kirby PLC", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "career", + "category": "stay", + "price": 896.72, + "stock_quantity": 340 + }, + "customer": { + "name": "Tamara Castro", + "age": 77, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Horne-Smith", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "school", + "category": "power", + "price": 64.49, + "stock_quantity": 701 + }, + "customer": { + "name": "Barry Sanders", + "age": 61, + "country": "Singapore" + } + }, + { + "natural_query": "How many orders were placed for Moreno, Adams and Garcia between 2024-06-15 and 2024-06-21?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moreno, Adams and Garcia' AND order_date BETWEEN '2024-06-15' AND '2024-06-21'", + "company": { + "name": "Moreno, Adams and Garcia", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "summer", + "category": "organization", + "price": 873.19, + "stock_quantity": 629 + }, + "customer": { + "name": "Gary Cook", + "age": 18, + "country": "Azerbaijan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Eaton-Chang'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Eaton-Chang", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "try", + "category": "road", + "price": 481.64, + "stock_quantity": 946 + }, + "customer": { + "name": "Martha Macias", + "age": 48, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Villanueva PLC", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "analysis", + "category": "game", + "price": 577.84, + "stock_quantity": 651 + }, + "customer": { + "name": "Christopher Miller", + "age": 57, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Barker Group", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "pull", + "category": "almost", + "price": 586.3, + "stock_quantity": 315 + }, + "customer": { + "name": "Natalie Wright", + "age": 33, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Macias Group", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "field", + "category": "class", + "price": 590.75, + "stock_quantity": 674 + }, + "customer": { + "name": "Jeffrey Frank", + "age": 50, + "country": "Mauritius" + } + }, + { + "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'", + "company": { + "name": "Rodriguez, Young and Benitez", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "government", + "category": "national", + "price": 789.25, + "stock_quantity": 896 + }, + "customer": { + "name": "Ashley Stewart", + "age": 80, + "country": "Sudan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis-Nguyen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis-Nguyen", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "recent", + "category": "treatment", + "price": 94.81, + "stock_quantity": 806 + }, + "customer": { + "name": "Jerry Bryant", + "age": 33, + "country": "Belize" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Bush, Weeks and Collins for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bush, Weeks and Collins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bush, Weeks and Collins", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "enjoy", + "category": "receive", + "price": 13.82, + "stock_quantity": 961 + }, + "customer": { + "name": "Derrick Nicholson", + "age": 73, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Jarvis, Washington and Galloway", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "always", + "category": "guy", + "price": 701.86, + "stock_quantity": 445 + }, + "customer": { + "name": "Mr. Michael Torres MD", + "age": 50, + "country": "Papua New Guinea" + } + }, + { + "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'", + "company": { + "name": "Anderson-Conway", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "picture", + "category": "suggest", + "price": 659.38, + "stock_quantity": 4 + }, + "customer": { + "name": "Nicole Brooks", + "age": 23, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Melendez LLC", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "year", + "category": "stage", + "price": 916.03, + "stock_quantity": 661 + }, + "customer": { + "name": "Kenneth Garcia", + "age": 65, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Smith, Ali and Reese", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "easy", + "category": "I", + "price": 31.01, + "stock_quantity": 346 + }, + "customer": { + "name": "Jacob Callahan", + "age": 27, + "country": "Lao People's Democratic Republic" + } + }, + { + "natural_query": "How many orders were placed for Norris-Wade between 2024-04-15 and 2024-06-03?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Norris-Wade' AND order_date BETWEEN '2024-04-15' AND '2024-06-03'", + "company": { + "name": "Norris-Wade", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "level", + "category": "your", + "price": 936.25, + "stock_quantity": 815 + }, + "customer": { + "name": "James Harris", + "age": 50, + "country": "Kiribati" + } + }, + { + "natural_query": "List all products of Alvarez, Mitchell and Perez ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Alvarez, Mitchell and Perez' ORDER BY rating DESC", + "company": { + "name": "Alvarez, Mitchell and Perez", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "thing", + "category": "occur", + "price": 152.55, + "stock_quantity": 560 + }, + "customer": { + "name": "Jeffrey Brown", + "age": 32, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Crosby, Cantrell and Brown", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "sit", + "category": "staff", + "price": 241.14, + "stock_quantity": 561 + }, + "customer": { + "name": "Willie Miller", + "age": 73, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Carlson-Brown", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "rise", + "category": "or", + "price": 553.49, + "stock_quantity": 672 + }, + "customer": { + "name": "Patricia Martinez", + "age": 53, + "country": "Reunion" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Weiss, Smith and Cook'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Weiss, Smith and Cook", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "team", + "category": "style", + "price": 691.93, + "stock_quantity": 811 + }, + "customer": { + "name": "Tina Gregory", + "age": 72, + "country": "Ecuador" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Price, Lee and Baker for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Price, Lee and Baker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Price, Lee and Baker", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "suggest", + "category": "enough", + "price": 898.46, + "stock_quantity": 682 + }, + "customer": { + "name": "Linda Berg", + "age": 59, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Hardy, Bailey and Solis", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "especially", + "category": "town", + "price": 292.52, + "stock_quantity": 714 + }, + "customer": { + "name": "Joshua Macdonald", + "age": 78, + "country": "Canada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Church Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Church Inc", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "include", + "category": "cause", + "price": 904.86, + "stock_quantity": 581 + }, + "customer": { + "name": "Wanda Bruce", + "age": 79, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Roberts Group", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "ok", + "category": "study", + "price": 856.13, + "stock_quantity": 126 + }, + "customer": { + "name": "Olivia Miller", + "age": 74, + "country": "Vanuatu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Odonnell-Thomas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Odonnell-Thomas", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "seek", + "category": "future", + "price": 225.73, + "stock_quantity": 640 + }, + "customer": { + "name": "Laura Sullivan", + "age": 79, + "country": "Japan" + } + }, + { + "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'", + "company": { + "name": "Wilson, Bell and Levy", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "expert", + "category": "whose", + "price": 988.48, + "stock_quantity": 405 + }, + "customer": { + "name": "Suzanne Weaver", + "age": 59, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Cohen LLC", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "yet", + "category": "personal", + "price": 85.66, + "stock_quantity": 473 + }, + "customer": { + "name": "Amanda King", + "age": 56, + "country": "British Virgin Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson, Rice and Hickman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson, Rice and Hickman", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "film", + "category": "director", + "price": 563.73, + "stock_quantity": 305 + }, + "customer": { + "name": "Melissa Oneill", + "age": 56, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Johnson-Santiago", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "over", + "category": "customer", + "price": 782.51, + "stock_quantity": 225 + }, + "customer": { + "name": "Michael Snyder", + "age": 66, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Johnson Ltd", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "admit", + "category": "quality", + "price": 186.4, + "stock_quantity": 532 + }, + "customer": { + "name": "Christine Roberts", + "age": 46, + "country": "Taiwan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith Inc", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "sign", + "category": "recently", + "price": 919.16, + "stock_quantity": 618 + }, + "customer": { + "name": "Cynthia Melendez", + "age": 75, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Hall PLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "law", + "category": "draw", + "price": 816.7, + "stock_quantity": 219 + }, + "customer": { + "name": "Michael Harris", + "age": 64, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Velasquez Ltd", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "artist", + "category": "adult", + "price": 839.46, + "stock_quantity": 608 + }, + "customer": { + "name": "Jacob Smith", + "age": 25, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Olsen, Matthews and Rodriguez", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "almost", + "category": "thank", + "price": 239.06, + "stock_quantity": 139 + }, + "customer": { + "name": "Wanda Schmidt", + "age": 43, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Taylor-Hines", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "also", + "category": "receive", + "price": 513.3, + "stock_quantity": 311 + }, + "customer": { + "name": "Dr. Allison Kramer", + "age": 19, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wiley, Johnson and Erickson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wiley, Johnson and Erickson", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "role", + "category": "explain", + "price": 302.84, + "stock_quantity": 97 + }, + "customer": { + "name": "Dakota Sanders", + "age": 38, + "country": "Antigua and Barbuda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Andrews-Carter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Andrews-Carter", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "apply", + "category": "would", + "price": 788.49, + "stock_quantity": 861 + }, + "customer": { + "name": "Timothy Whitaker", + "age": 53, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Williams LLC", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "education", + "category": "wide", + "price": 695.18, + "stock_quantity": 224 + }, + "customer": { + "name": "George Smith", + "age": 64, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Craig-Vasquez", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "write", + "category": "eye", + "price": 669.53, + "stock_quantity": 130 + }, + "customer": { + "name": "Thomas Carroll", + "age": 66, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Duncan, King and Pacheco", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "nothing", + "category": "strategy", + "price": 721.33, + "stock_quantity": 533 + }, + "customer": { + "name": "Ryan Hebert", + "age": 72, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Guerra Ltd", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "deep", + "category": "avoid", + "price": 742.13, + "stock_quantity": 869 + }, + "customer": { + "name": "Amy Salazar", + "age": 60, + "country": "Turkmenistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Olson-Roman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Olson-Roman", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "two", + "category": "strong", + "price": 870.13, + "stock_quantity": 172 + }, + "customer": { + "name": "Alexander Johnson", + "age": 57, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Lee PLC", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "energy", + "category": "risk", + "price": 910.03, + "stock_quantity": 659 + }, + "customer": { + "name": "Jon Miller", + "age": 45, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Green, Gallegos and Curtis", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "change", + "category": "you", + "price": 921.28, + "stock_quantity": 88 + }, + "customer": { + "name": "Adam Johnson", + "age": 24, + "country": "South Africa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dean, Rodriguez and Moss'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dean, Rodriguez and Moss", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "mean", + "category": "network", + "price": 807.25, + "stock_quantity": 695 + }, + "customer": { + "name": "Mark Brown", + "age": 53, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Holder, Adams and Ali", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "physical", + "category": "two", + "price": 791.61, + "stock_quantity": 761 + }, + "customer": { + "name": "Kyle Foster Jr.", + "age": 28, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Sharp-Gardner", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "ten", + "category": "tend", + "price": 661.19, + "stock_quantity": 656 + }, + "customer": { + "name": "Luis Hernandez", + "age": 54, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Chavez, Franklin and Middleton", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "spend", + "category": "player", + "price": 50.23, + "stock_quantity": 707 + }, + "customer": { + "name": "Christine Garcia", + "age": 67, + "country": "Germany" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones, Reed and Berry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones, Reed and Berry", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "store", + "category": "improve", + "price": 823.04, + "stock_quantity": 42 + }, + "customer": { + "name": "Christopher Evans", + "age": 46, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Tucker Ltd", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "enter", + "category": "bit", + "price": 347.21, + "stock_quantity": 841 + }, + "customer": { + "name": "Stephanie Gordon", + "age": 46, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Robinson, Kelley and Fox", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "suggest", + "category": "spring", + "price": 470.81, + "stock_quantity": 722 + }, + "customer": { + "name": "Jeffery Cooper", + "age": 21, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Farrell-Mueller", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "president", + "category": "enjoy", + "price": 395.26, + "stock_quantity": 94 + }, + "customer": { + "name": "Troy Poole", + "age": 18, + "country": "Turks and Caicos Islands" + } + }, + { + "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'", + "company": { + "name": "Jones LLC", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "its", + "category": "find", + "price": 256.8, + "stock_quantity": 918 + }, + "customer": { + "name": "Lynn Jackson", + "age": 76, + "country": "Jordan" + } + }, + { + "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'", + "company": { + "name": "Armstrong-Yang", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "event", + "category": "be", + "price": 444.21, + "stock_quantity": 461 + }, + "customer": { + "name": "Amber Kirby", + "age": 49, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Green and Sons", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "model", + "category": "sea", + "price": 690.66, + "stock_quantity": 242 + }, + "customer": { + "name": "Ryan Cooper", + "age": 48, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Young, Mckenzie and Ballard", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "agency", + "category": "education", + "price": 259.44, + "stock_quantity": 663 + }, + "customer": { + "name": "Antonio Rivera", + "age": 49, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Soto, Delgado and Ward", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "detail", + "category": "agreement", + "price": 702.16, + "stock_quantity": 531 + }, + "customer": { + "name": "Ryan Gomez DVM", + "age": 63, + "country": "Portugal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lynch, Barrett and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lynch, Barrett and Brown", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "spend", + "category": "sign", + "price": 603.33, + "stock_quantity": 141 + }, + "customer": { + "name": "Monica Nelson", + "age": 69, + "country": "Panama" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Schultz-Kennedy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Schultz-Kennedy", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "may", + "category": "dark", + "price": 494.26, + "stock_quantity": 403 + }, + "customer": { + "name": "William Padilla", + "age": 27, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Shepherd LLC", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "some", + "category": "successful", + "price": 407.7, + "stock_quantity": 158 + }, + "customer": { + "name": "Shawn Rice", + "age": 19, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Warner, Gutierrez and Martin", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "shoulder", + "category": "power", + "price": 597.74, + "stock_quantity": 731 + }, + "customer": { + "name": "Gina Collier", + "age": 53, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Rodgers, Cole and White", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "apply", + "category": "section", + "price": 654.99, + "stock_quantity": 573 + }, + "customer": { + "name": "Peter Henry", + "age": 38, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Scott, Smith and Miller", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "draw", + "category": "shake", + "price": 772.39, + "stock_quantity": 72 + }, + "customer": { + "name": "Paige Mccall", + "age": 46, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Crosby PLC", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "woman", + "category": "draw", + "price": 818.43, + "stock_quantity": 154 + }, + "customer": { + "name": "Margaret Leonard", + "age": 23, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Berry-Bennett", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "rest", + "category": "space", + "price": 65.09, + "stock_quantity": 315 + }, + "customer": { + "name": "Nichole Potts", + "age": 74, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Wilson-Watkins", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "again", + "category": "management", + "price": 877.4, + "stock_quantity": 960 + }, + "customer": { + "name": "Tammie Brown", + "age": 78, + "country": "Central African Republic" + } + }, + { + "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'", + "company": { + "name": "Vega, Wilson and Davis", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "sell", + "category": "foreign", + "price": 356.84, + "stock_quantity": 877 + }, + "customer": { + "name": "Marissa Owens", + "age": 33, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Lopez-Jackson", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "body", + "category": "go", + "price": 889.36, + "stock_quantity": 376 + }, + "customer": { + "name": "Nicholas Taylor", + "age": 28, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Lara, Smith and Burnett", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "citizen", + "category": "around", + "price": 130.35, + "stock_quantity": 283 + }, + "customer": { + "name": "Gregory Brewer", + "age": 71, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Hall PLC", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "else", + "category": "education", + "price": 593.57, + "stock_quantity": 537 + }, + "customer": { + "name": "Madeline Smith", + "age": 29, + "country": "Botswana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'White-Reed'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "White-Reed", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "she", + "category": "consider", + "price": 65.39, + "stock_quantity": 661 + }, + "customer": { + "name": "Theodore Johnston", + "age": 49, + "country": "Zimbabwe" + } + }, + { + "natural_query": "Show me all products in the why category with a price over $839.0.", + "sql_query": "SELECT * FROM products WHERE category = 'why' AND price > 839.0", + "company": { + "name": "Johnson Inc", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "decade", + "category": "why", + "price": 839.0, + "stock_quantity": 908 + }, + "customer": { + "name": "Thomas Jones", + "age": 45, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Lucas, Baker and Lewis", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "support", + "category": "should", + "price": 602.42, + "stock_quantity": 876 + }, + "customer": { + "name": "Michael Smith", + "age": 52, + "country": "Netherlands Antilles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Golden Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Golden Ltd", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "run", + "category": "power", + "price": 502.51, + "stock_quantity": 308 + }, + "customer": { + "name": "Brianna Hays", + "age": 77, + "country": "Saudi Arabia" + } + }, + { + "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'", + "company": { + "name": "Walker, Anderson and Hoffman", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "bed", + "category": "produce", + "price": 224.75, + "stock_quantity": 887 + }, + "customer": { + "name": "Luke Solomon", + "age": 26, + "country": "Papua New Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chapman-Martinez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chapman-Martinez", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "activity", + "category": "how", + "price": 135.72, + "stock_quantity": 56 + }, + "customer": { + "name": "Brad Romero", + "age": 72, + "country": "Canada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stewart, Yang and Mcneil'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stewart, Yang and Mcneil", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "wrong", + "category": "decide", + "price": 627.51, + "stock_quantity": 222 + }, + "customer": { + "name": "Dylan Hester", + "age": 40, + "country": "Saint Barthelemy" + } + }, + { + "natural_query": "What is the total quantity for each category in Conway, Baldwin and Taylor?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Conway, Baldwin and Taylor' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Conway, Baldwin and Taylor", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "control", + "category": "usually", + "price": 696.85, + "stock_quantity": 459 + }, + "customer": { + "name": "Ryan Hammond", + "age": 40, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Riley and Sons", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "ago", + "category": "including", + "price": 750.71, + "stock_quantity": 615 + }, + "customer": { + "name": "Michael Beard", + "age": 36, + "country": "Saudi Arabia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Perry Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Perry Ltd", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "school", + "category": "fear", + "price": 149.29, + "stock_quantity": 414 + }, + "customer": { + "name": "Michael Espinoza", + "age": 55, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Hayes and Sons", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "sell", + "category": "baby", + "price": 205.31, + "stock_quantity": 22 + }, + "customer": { + "name": "Michael Macdonald", + "age": 62, + "country": "Jordan" + } + }, + { + "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'", + "company": { + "name": "Burnett PLC", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "thousand", + "category": "laugh", + "price": 506.16, + "stock_quantity": 641 + }, + "customer": { + "name": "Ashley Walker", + "age": 37, + "country": "Greenland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rivera Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rivera Inc", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "church", + "category": "doctor", + "price": 280.69, + "stock_quantity": 85 + }, + "customer": { + "name": "Glenn Carter", + "age": 63, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Doyle, Ryan and Curtis", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "meeting", + "category": "total", + "price": 299.67, + "stock_quantity": 656 + }, + "customer": { + "name": "Kathleen Gardner", + "age": 50, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Taylor-Horton", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "want", + "category": "situation", + "price": 632.1, + "stock_quantity": 914 + }, + "customer": { + "name": "Richard Bell", + "age": 59, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Fitzpatrick, King and Charles", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "whose", + "category": "thing", + "price": 620.28, + "stock_quantity": 742 + }, + "customer": { + "name": "Candice David", + "age": 55, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Fritz-Dunn", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "right", + "category": "media", + "price": 284.03, + "stock_quantity": 243 + }, + "customer": { + "name": "Danielle Robinson", + "age": 20, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Wilson, Huffman and Stout", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "later", + "category": "suffer", + "price": 481.76, + "stock_quantity": 478 + }, + "customer": { + "name": "David Collins", + "age": 60, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Golden-Rodriguez", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "especially", + "category": "little", + "price": 759.11, + "stock_quantity": 58 + }, + "customer": { + "name": "Lauren Murray", + "age": 28, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "James and Sons", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "young", + "category": "significant", + "price": 731.97, + "stock_quantity": 937 + }, + "customer": { + "name": "Donald Hess", + "age": 33, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Golden-Villanueva", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "include", + "category": "card", + "price": 647.16, + "stock_quantity": 359 + }, + "customer": { + "name": "Denise Mcknight", + "age": 69, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Kelly Ltd", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "perhaps", + "category": "action", + "price": 156.32, + "stock_quantity": 424 + }, + "customer": { + "name": "Maria Sanders", + "age": 52, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Holt-Elliott", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "prevent", + "category": "unit", + "price": 576.85, + "stock_quantity": 400 + }, + "customer": { + "name": "Kelsey Romero", + "age": 28, + "country": "Tajikistan" + } + }, + { + "natural_query": "Show me all products in the read category with a price over $909.44.", + "sql_query": "SELECT * FROM products WHERE category = 'read' AND price > 909.44", + "company": { + "name": "Allen, Anderson and Mercer", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "environment", + "category": "read", + "price": 909.44, + "stock_quantity": 420 + }, + "customer": { + "name": "Brandon Howell", + "age": 31, + "country": "Tokelau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cruz, Brown and Pearson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cruz, Brown and Pearson", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "now", + "category": "half", + "price": 127.65, + "stock_quantity": 17 + }, + "customer": { + "name": "Elizabeth Miller", + "age": 45, + "country": "Congo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cook, Mason and Ross'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cook, Mason and Ross", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "relate", + "category": "assume", + "price": 601.79, + "stock_quantity": 358 + }, + "customer": { + "name": "Latasha Faulkner", + "age": 33, + "country": "Myanmar" + } + }, + { + "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'", + "company": { + "name": "Roman LLC", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "break", + "category": "where", + "price": 251.9, + "stock_quantity": 50 + }, + "customer": { + "name": "Melissa Weber", + "age": 68, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Armstrong, Serrano and Howard'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Armstrong, Serrano and Howard", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "else", + "category": "herself", + "price": 170.35, + "stock_quantity": 91 + }, + "customer": { + "name": "Carly Wilkinson", + "age": 70, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Byrd-Johnson", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "section", + "category": "feeling", + "price": 760.33, + "stock_quantity": 664 + }, + "customer": { + "name": "Krystal Ramirez", + "age": 56, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Brown Inc", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "seem", + "category": "lawyer", + "price": 96.88, + "stock_quantity": 61 + }, + "customer": { + "name": "Laura Flores", + "age": 54, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Mcdaniel Group", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "bag", + "category": "traditional", + "price": 597.88, + "stock_quantity": 977 + }, + "customer": { + "name": "Savannah Brown", + "age": 77, + "country": "Palestinian Territory" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Meza Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Meza Inc", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "yard", + "category": "recently", + "price": 297.2, + "stock_quantity": 802 + }, + "customer": { + "name": "Kristina Thompson", + "age": 51, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Brown LLC", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "consumer", + "category": "hotel", + "price": 525.74, + "stock_quantity": 265 + }, + "customer": { + "name": "Dennis Pham", + "age": 27, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Keller Ltd", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "movement", + "category": "main", + "price": 165.36, + "stock_quantity": 889 + }, + "customer": { + "name": "Joseph Wheeler", + "age": 66, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Harris, Norton and Price", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "tonight", + "category": "him", + "price": 170.95, + "stock_quantity": 976 + }, + "customer": { + "name": "Edward Walsh", + "age": 41, + "country": "Tanzania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nguyen-Allen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nguyen-Allen", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "fill", + "category": "by", + "price": 986.2, + "stock_quantity": 792 + }, + "customer": { + "name": "Robert Nelson", + "age": 24, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Price and Sons", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "food", + "category": "accept", + "price": 878.59, + "stock_quantity": 60 + }, + "customer": { + "name": "Michael Elliott", + "age": 18, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Galvan PLC", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "explain", + "category": "detail", + "price": 553.71, + "stock_quantity": 699 + }, + "customer": { + "name": "Christina Dunlap", + "age": 67, + "country": "Belarus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davies Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davies Inc", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "protect", + "category": "ball", + "price": 196.55, + "stock_quantity": 901 + }, + "customer": { + "name": "Bobby Conner", + "age": 46, + "country": "Montenegro" + } + }, + { + "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'", + "company": { + "name": "Rivera, Stevenson and Harding", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "move", + "category": "visit", + "price": 875.23, + "stock_quantity": 451 + }, + "customer": { + "name": "Mary Brown", + "age": 77, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Murray-Avery", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "become", + "category": "employee", + "price": 658.85, + "stock_quantity": 829 + }, + "customer": { + "name": "Matthew Freeman", + "age": 77, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Thomas-Fields", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "activity", + "category": "table", + "price": 760.9, + "stock_quantity": 200 + }, + "customer": { + "name": "Tony Moore", + "age": 32, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Chambers, Morgan and Mitchell", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "seek", + "category": "chair", + "price": 443.82, + "stock_quantity": 415 + }, + "customer": { + "name": "George Cox", + "age": 52, + "country": "Mauritius" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Olson LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Olson LLC", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "mouth", + "category": "hold", + "price": 629.03, + "stock_quantity": 1000 + }, + "customer": { + "name": "Erika Flores", + "age": 45, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Young-Vasquez", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "today", + "category": "staff", + "price": 123.76, + "stock_quantity": 824 + }, + "customer": { + "name": "Joseph Mills", + "age": 33, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Cole Group", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "generation", + "category": "happen", + "price": 158.09, + "stock_quantity": 479 + }, + "customer": { + "name": "Cheryl Bradford", + "age": 42, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Johnson, White and Ward", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "senior", + "category": "point", + "price": 340.25, + "stock_quantity": 216 + }, + "customer": { + "name": "Adam Wallace", + "age": 62, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Cruz-Pierce", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "wrong", + "category": "consumer", + "price": 872.64, + "stock_quantity": 575 + }, + "customer": { + "name": "John Murillo", + "age": 50, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Anderson Inc", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "start", + "category": "election", + "price": 548.55, + "stock_quantity": 398 + }, + "customer": { + "name": "John Arnold", + "age": 32, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Fischer-Carroll", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "here", + "category": "return", + "price": 981.14, + "stock_quantity": 411 + }, + "customer": { + "name": "Laura Bullock", + "age": 37, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Chambers-Barker", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "shoulder", + "category": "cost", + "price": 926.5, + "stock_quantity": 73 + }, + "customer": { + "name": "Kevin Clark", + "age": 31, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Parker, Mitchell and Thomas", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "game", + "category": "physical", + "price": 500.19, + "stock_quantity": 938 + }, + "customer": { + "name": "Patrick Duffy", + "age": 30, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Baker-Mcknight", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "common", + "category": "television", + "price": 779.71, + "stock_quantity": 751 + }, + "customer": { + "name": "Eric Brennan", + "age": 33, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Fletcher, Richards and Carter", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "table", + "category": "ever", + "price": 163.99, + "stock_quantity": 59 + }, + "customer": { + "name": "Stephanie Russell", + "age": 27, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "Davis and Sons", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "stay", + "category": "budget", + "price": 52.65, + "stock_quantity": 364 + }, + "customer": { + "name": "Michelle Levine", + "age": 45, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Ross Group", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "better", + "category": "art", + "price": 89.76, + "stock_quantity": 274 + }, + "customer": { + "name": "David Burton", + "age": 79, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Richards-Collins", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "collection", + "category": "our", + "price": 730.8, + "stock_quantity": 904 + }, + "customer": { + "name": "Natalie Aguilar", + "age": 22, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Johnson-Wagner", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "stay", + "category": "interest", + "price": 37.72, + "stock_quantity": 858 + }, + "customer": { + "name": "Justin Williams", + "age": 32, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Fowler, Owen and Mendoza", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "rule", + "category": "wrong", + "price": 143.44, + "stock_quantity": 854 + }, + "customer": { + "name": "Deborah Mccarthy", + "age": 33, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Christensen-Ingram", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "occur", + "category": "opportunity", + "price": 683.37, + "stock_quantity": 464 + }, + "customer": { + "name": "Leslie Bell", + "age": 52, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Nichols-Mcdonald", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "group", + "category": "truth", + "price": 63.52, + "stock_quantity": 182 + }, + "customer": { + "name": "Amber Frey", + "age": 64, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Pena, Thomas and Cohen", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "story", + "category": "explain", + "price": 120.63, + "stock_quantity": 520 + }, + "customer": { + "name": "Veronica Bond", + "age": 36, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Smith-Mcconnell", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "notice", + "category": "opportunity", + "price": 579.28, + "stock_quantity": 937 + }, + "customer": { + "name": "Melissa Frank", + "age": 52, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Gonzales, Nielsen and Terrell", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "recognize", + "category": "law", + "price": 308.57, + "stock_quantity": 10 + }, + "customer": { + "name": "David Chang", + "age": 69, + "country": "Turks and Caicos Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Raymond-Dean'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Raymond-Dean", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "teacher", + "category": "sure", + "price": 474.97, + "stock_quantity": 130 + }, + "customer": { + "name": "Nancy Sandoval", + "age": 37, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Floyd, Wilson and Taylor", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "foot", + "category": "suffer", + "price": 687.54, + "stock_quantity": 242 + }, + "customer": { + "name": "Scott Butler", + "age": 67, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Wood-Murray", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "build", + "category": "score", + "price": 455.23, + "stock_quantity": 646 + }, + "customer": { + "name": "Daniel Davila", + "age": 49, + "country": "Pitcairn Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Matthews and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Matthews and Sons", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "service", + "category": "oil", + "price": 798.37, + "stock_quantity": 973 + }, + "customer": { + "name": "Victoria Mitchell", + "age": 51, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Lopez, Gutierrez and Sutton", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "physical", + "category": "either", + "price": 351.29, + "stock_quantity": 682 + }, + "customer": { + "name": "Nathan Collins", + "age": 73, + "country": "Myanmar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moss, Fields and Hurley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moss, Fields and Hurley", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "bring", + "category": "the", + "price": 378.89, + "stock_quantity": 139 + }, + "customer": { + "name": "Gabriel Kelley", + "age": 39, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Ford-Gates", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "suggest", + "category": "eat", + "price": 730.84, + "stock_quantity": 412 + }, + "customer": { + "name": "David Robbins", + "age": 73, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Jones, Colon and Mills", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "product", + "category": "task", + "price": 607.33, + "stock_quantity": 165 + }, + "customer": { + "name": "Kevin Mayer", + "age": 56, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Hernandez Ltd", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "property", + "category": "sure", + "price": 899.5, + "stock_quantity": 682 + }, + "customer": { + "name": "Elizabeth Blair", + "age": 59, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Nixon-Parker", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "bit", + "category": "whether", + "price": 366.88, + "stock_quantity": 505 + }, + "customer": { + "name": "Victoria Stewart", + "age": 28, + "country": "Greece" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shelton, Wright and Thompson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shelton, Wright and Thompson", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "receive", + "category": "woman", + "price": 786.27, + "stock_quantity": 623 + }, + "customer": { + "name": "James Holloway", + "age": 26, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Warren Inc", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "modern", + "category": "national", + "price": 511.81, + "stock_quantity": 602 + }, + "customer": { + "name": "Julie Mcdonald", + "age": 30, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Lewis Ltd", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "stay", + "category": "five", + "price": 97.7, + "stock_quantity": 569 + }, + "customer": { + "name": "Lisa Cohen", + "age": 69, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Miller, Simpson and Brown", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "agreement", + "category": "full", + "price": 36.51, + "stock_quantity": 628 + }, + "customer": { + "name": "Abigail Rodriguez", + "age": 51, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Patton-Krueger", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "indeed", + "category": "might", + "price": 416.29, + "stock_quantity": 166 + }, + "customer": { + "name": "Rachel Jordan", + "age": 36, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Carpenter-Coleman", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "town", + "category": "southern", + "price": 719.52, + "stock_quantity": 935 + }, + "customer": { + "name": "Stephen Roberts", + "age": 67, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Medina PLC", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "trial", + "category": "card", + "price": 386.2, + "stock_quantity": 301 + }, + "customer": { + "name": "Charles Pacheco", + "age": 64, + "country": "Cameroon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cole, Mitchell and Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cole, Mitchell and Campbell", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "quality", + "category": "crime", + "price": 350.01, + "stock_quantity": 295 + }, + "customer": { + "name": "Keith Riley", + "age": 74, + "country": "Guam" + } + }, + { + "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'", + "company": { + "name": "Hill Ltd", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "a", + "category": "him", + "price": 94.04, + "stock_quantity": 753 + }, + "customer": { + "name": "Jessica Moore", + "age": 47, + "country": "Sudan" + } + }, + { + "natural_query": "List all customers and their total order value for Hernandez, Scott and Obrien.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Hernandez, Scott and Obrien' GROUP BY c.customer_id", + "company": { + "name": "Hernandez, Scott and Obrien", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "anyone", + "category": "mean", + "price": 749.22, + "stock_quantity": 382 + }, + "customer": { + "name": "Paula Coleman", + "age": 26, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Pierce, Brock and Boyd", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "knowledge", + "category": "no", + "price": 331.65, + "stock_quantity": 624 + }, + "customer": { + "name": "Joel Mcdonald", + "age": 25, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Lane, Molina and Adams", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "game", + "category": "option", + "price": 151.7, + "stock_quantity": 887 + }, + "customer": { + "name": "Heather Meyer", + "age": 60, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "Miller Inc", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "education", + "category": "senior", + "price": 449.22, + "stock_quantity": 735 + }, + "customer": { + "name": "Terry Acevedo", + "age": 67, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Cline and Sons", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "end", + "category": "PM", + "price": 906.36, + "stock_quantity": 677 + }, + "customer": { + "name": "Amanda Newton DVM", + "age": 64, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Kramer-Jones", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "less", + "category": "place", + "price": 430.07, + "stock_quantity": 411 + }, + "customer": { + "name": "Ellen Dorsey", + "age": 51, + "country": "Greece" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Tran Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Tran Inc", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "particularly", + "category": "pressure", + "price": 862.86, + "stock_quantity": 422 + }, + "customer": { + "name": "Richard Townsend", + "age": 65, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Bradley PLC", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "campaign", + "category": "west", + "price": 137.57, + "stock_quantity": 586 + }, + "customer": { + "name": "Terry Barrett", + "age": 35, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Turner, Griffin and Bishop", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "month", + "category": "worker", + "price": 166.81, + "stock_quantity": 540 + }, + "customer": { + "name": "Matthew Hansen", + "age": 77, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Cox PLC", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "there", + "category": "hundred", + "price": 442.99, + "stock_quantity": 158 + }, + "customer": { + "name": "David Williams", + "age": 65, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Morris-Frost", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "any", + "category": "knowledge", + "price": 988.07, + "stock_quantity": 995 + }, + "customer": { + "name": "Christopher Hess", + "age": 18, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Garza-Williams", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "despite", + "category": "threat", + "price": 260.09, + "stock_quantity": 213 + }, + "customer": { + "name": "Jamie Castro", + "age": 56, + "country": "Ecuador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hanson-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hanson-Anderson", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "people", + "category": "pay", + "price": 980.79, + "stock_quantity": 886 + }, + "customer": { + "name": "Danielle Carter", + "age": 71, + "country": "Luxembourg" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Black Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Black Inc", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "everyone", + "category": "safe", + "price": 477.3, + "stock_quantity": 511 + }, + "customer": { + "name": "Sharon Moore", + "age": 26, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Hood, Snyder and May", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "soon", + "category": "produce", + "price": 785.46, + "stock_quantity": 471 + }, + "customer": { + "name": "Michael Rice", + "age": 72, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Odom-Copeland", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "direction", + "category": "blue", + "price": 871.3, + "stock_quantity": 378 + }, + "customer": { + "name": "Jason Atkins", + "age": 41, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Clark, Sanchez and Burke", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "security", + "category": "class", + "price": 574.38, + "stock_quantity": 225 + }, + "customer": { + "name": "Larry Lynch", + "age": 50, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Young-Wallace'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Young-Wallace", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "throw", + "category": "stock", + "price": 729.52, + "stock_quantity": 528 + }, + "customer": { + "name": "Michelle Taylor", + "age": 68, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Rivera, Anderson and Clark", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "which", + "category": "or", + "price": 687.32, + "stock_quantity": 140 + }, + "customer": { + "name": "Hannah Thompson", + "age": 20, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Foster-Lane", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "pretty", + "category": "lawyer", + "price": 292.93, + "stock_quantity": 204 + }, + "customer": { + "name": "Joshua Davidson", + "age": 20, + "country": "Czech Republic" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Williams, Russell and Davenport for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams, Russell and Davenport'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams, Russell and Davenport", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "hit", + "category": "weight", + "price": 351.76, + "stock_quantity": 271 + }, + "customer": { + "name": "Thomas Serrano", + "age": 40, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Smith, Perry and Pena", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "particularly", + "category": "democratic", + "price": 479.36, + "stock_quantity": 209 + }, + "customer": { + "name": "Patricia Quinn", + "age": 45, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Santos Group", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "nor", + "category": "can", + "price": 880.82, + "stock_quantity": 948 + }, + "customer": { + "name": "Jeffrey Carroll", + "age": 54, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Phelps-Roberts", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "process", + "category": "effort", + "price": 243.09, + "stock_quantity": 558 + }, + "customer": { + "name": "Angela Reynolds", + "age": 38, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Pope-Riddle", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "age", + "category": "sea", + "price": 970.69, + "stock_quantity": 358 + }, + "customer": { + "name": "Christopher Allen", + "age": 68, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Smith-Crosby", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "news", + "category": "including", + "price": 345.7, + "stock_quantity": 49 + }, + "customer": { + "name": "Tony Hernandez", + "age": 23, + "country": "Guyana" + } + }, + { + "natural_query": "What is the total profit for each category in Kane-Hendrix?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Kane-Hendrix' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Kane-Hendrix", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "beyond", + "category": "affect", + "price": 389.62, + "stock_quantity": 838 + }, + "customer": { + "name": "Roberto Hill", + "age": 27, + "country": "French Polynesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bowen, Taylor and Valenzuela'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bowen, Taylor and Valenzuela", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "so", + "category": "politics", + "price": 951.26, + "stock_quantity": 967 + }, + "customer": { + "name": "Deborah Walker", + "age": 42, + "country": "Bhutan" + } + }, + { + "natural_query": "List all products of Aguilar, Williams and Garcia ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Aguilar, Williams and Garcia' ORDER BY stock_quantity DESC", + "company": { + "name": "Aguilar, Williams and Garcia", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "before", + "category": "place", + "price": 582.24, + "stock_quantity": 602 + }, + "customer": { + "name": "Jason Ellison", + "age": 60, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Barton Ltd", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "best", + "category": "do", + "price": 555.03, + "stock_quantity": 593 + }, + "customer": { + "name": "Jessica Hubbard", + "age": 18, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Haynes and Sons", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "property", + "category": "herself", + "price": 247.36, + "stock_quantity": 225 + }, + "customer": { + "name": "Stephanie Suarez", + "age": 31, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Dodson-Donaldson", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "father", + "category": "impact", + "price": 633.41, + "stock_quantity": 46 + }, + "customer": { + "name": "Krystal Hughes", + "age": 37, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Gaines-Nunez", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "such", + "category": "bit", + "price": 704.48, + "stock_quantity": 53 + }, + "customer": { + "name": "Stacey Benton", + "age": 52, + "country": "French Polynesia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Baker-Romero for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baker-Romero'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baker-Romero", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "boy", + "category": "great", + "price": 602.41, + "stock_quantity": 956 + }, + "customer": { + "name": "Tracy Mendoza", + "age": 71, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Sanchez Group", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "enter", + "category": "information", + "price": 505.06, + "stock_quantity": 444 + }, + "customer": { + "name": "Lisa Howard", + "age": 34, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Wells, Hunt and Evans", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "computer", + "category": "can", + "price": 749.06, + "stock_quantity": 662 + }, + "customer": { + "name": "Laura Contreras", + "age": 74, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Briggs, Williams and Ruiz", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "either", + "category": "no", + "price": 373.78, + "stock_quantity": 722 + }, + "customer": { + "name": "Martha Watson", + "age": 46, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller, Cox and Dunlap'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller, Cox and Dunlap", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "base", + "category": "anyone", + "price": 34.06, + "stock_quantity": 307 + }, + "customer": { + "name": "Bryan Murphy", + "age": 40, + "country": "Ecuador" + } + }, + { + "natural_query": "List all customers and their total order value for Woods-Williams.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Woods-Williams' GROUP BY c.customer_id", + "company": { + "name": "Woods-Williams", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "black", + "category": "every", + "price": 36.16, + "stock_quantity": 90 + }, + "customer": { + "name": "Katie Perez", + "age": 73, + "country": "Dominican Republic" + } + }, + { + "natural_query": "List all customers and their total order value for Fischer, Ortega and Fox.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Fischer, Ortega and Fox' GROUP BY c.customer_id", + "company": { + "name": "Fischer, Ortega and Fox", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "everything", + "category": "see", + "price": 70.36, + "stock_quantity": 474 + }, + "customer": { + "name": "Richard Smith", + "age": 67, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Williams, Larsen and Murphy", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "put", + "category": "toward", + "price": 536.34, + "stock_quantity": 547 + }, + "customer": { + "name": "Christian Elliott Jr.", + "age": 25, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "White-Griffin", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "across", + "category": "similar", + "price": 773.37, + "stock_quantity": 585 + }, + "customer": { + "name": "Brandy Hoffman", + "age": 50, + "country": "Suriname" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Keller-Estrada'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Keller-Estrada", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "door", + "category": "manager", + "price": 440.02, + "stock_quantity": 597 + }, + "customer": { + "name": "Ruth Miller", + "age": 26, + "country": "Djibouti" + } + }, + { + "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'", + "company": { + "name": "Morris, Mitchell and Banks", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "everything", + "category": "identify", + "price": 828.37, + "stock_quantity": 758 + }, + "customer": { + "name": "Sandra Barnett", + "age": 34, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Banks-Tran", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "end", + "category": "seat", + "price": 652.64, + "stock_quantity": 364 + }, + "customer": { + "name": "Darren Norman", + "age": 19, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Curry LLC", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "life", + "category": "dinner", + "price": 234.05, + "stock_quantity": 592 + }, + "customer": { + "name": "Mr. Patrick Gallagher", + "age": 52, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Freeman-Barber", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "culture", + "category": "look", + "price": 32.02, + "stock_quantity": 854 + }, + "customer": { + "name": "Karen Thomas", + "age": 68, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Baldwin, Santiago and Edwards", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "citizen", + "category": "appear", + "price": 53.76, + "stock_quantity": 519 + }, + "customer": { + "name": "John Mitchell", + "age": 67, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Melton, Gallagher and Andrade", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "couple", + "category": "four", + "price": 645.3, + "stock_quantity": 634 + }, + "customer": { + "name": "Melanie Daniels", + "age": 55, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Norton-Duncan", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "husband", + "category": "rise", + "price": 966.65, + "stock_quantity": 293 + }, + "customer": { + "name": "Michael Armstrong", + "age": 30, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Marshall, Harris and West", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "eight", + "category": "old", + "price": 751.52, + "stock_quantity": 594 + }, + "customer": { + "name": "Curtis Martinez", + "age": 57, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Schroeder, Dominguez and Fleming", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "statement", + "category": "project", + "price": 631.2, + "stock_quantity": 390 + }, + "customer": { + "name": "Joseph Campos", + "age": 76, + "country": "Martinique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Myers-Young'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Myers-Young", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "five", + "category": "worker", + "price": 501.2, + "stock_quantity": 32 + }, + "customer": { + "name": "Micheal Conley", + "age": 72, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Baker-Cortez", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "ready", + "category": "mouth", + "price": 143.17, + "stock_quantity": 319 + }, + "customer": { + "name": "Timothy Hansen", + "age": 26, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Wilson Group", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "series", + "category": "rest", + "price": 557.54, + "stock_quantity": 695 + }, + "customer": { + "name": "Dennis Rodriguez", + "age": 58, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Smith-Moses", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "fund", + "category": "wish", + "price": 996.89, + "stock_quantity": 208 + }, + "customer": { + "name": "Willie Miller", + "age": 23, + "country": "Guadeloupe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez and Sons", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "quite", + "category": "how", + "price": 908.1, + "stock_quantity": 989 + }, + "customer": { + "name": "Mrs. Sharon Villanueva", + "age": 79, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Sosa LLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "manager", + "category": "whether", + "price": 382.61, + "stock_quantity": 415 + }, + "customer": { + "name": "Lynn Dickerson", + "age": 73, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Church-Lane", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "above", + "category": "own", + "price": 285.7, + "stock_quantity": 842 + }, + "customer": { + "name": "Sarah Perkins", + "age": 43, + "country": "Marshall Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cooper, Robbins and Lynch'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cooper, Robbins and Lynch", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "example", + "category": "difficult", + "price": 52.7, + "stock_quantity": 769 + }, + "customer": { + "name": "John Lopez", + "age": 21, + "country": "Norway" + } + }, + { + "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'", + "company": { + "name": "Smith, Nelson and Ruiz", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "collection", + "category": "young", + "price": 468.08, + "stock_quantity": 475 + }, + "customer": { + "name": "Paula Burns", + "age": 40, + "country": "Puerto Rico" + } + }, + { + "natural_query": "What are the top 3 products by orders for Rodriguez, Morgan and Smith this year?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Rodriguez, Morgan and Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3", + "company": { + "name": "Rodriguez, Morgan and Smith", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "knowledge", + "category": "ball", + "price": 306.24, + "stock_quantity": 704 + }, + "customer": { + "name": "Spencer White", + "age": 77, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Ramsey, Martinez and Hampton", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "yes", + "category": "game", + "price": 930.77, + "stock_quantity": 205 + }, + "customer": { + "name": "Felicia Poole", + "age": 30, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Noble-Lamb", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "well", + "category": "industry", + "price": 670.55, + "stock_quantity": 452 + }, + "customer": { + "name": "Kristen Crosby", + "age": 63, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Pearson-Newton", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "job", + "category": "with", + "price": 101.35, + "stock_quantity": 628 + }, + "customer": { + "name": "Timothy Cooper", + "age": 49, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Anthony-Shields", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "age", + "category": "leave", + "price": 371.35, + "stock_quantity": 634 + }, + "customer": { + "name": "Sara Lee", + "age": 42, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Sanchez, Frank and Banks", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "statement", + "category": "turn", + "price": 404.14, + "stock_quantity": 684 + }, + "customer": { + "name": "Autumn Miller", + "age": 65, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Robinson-Davis", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "create", + "category": "religious", + "price": 485.2, + "stock_quantity": 838 + }, + "customer": { + "name": "Jennifer Carpenter", + "age": 74, + "country": "Zimbabwe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barnes-White'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barnes-White", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "style", + "category": "executive", + "price": 657.58, + "stock_quantity": 59 + }, + "customer": { + "name": "Heather Goodman", + "age": 27, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Meyers-Young", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "himself", + "category": "describe", + "price": 644.44, + "stock_quantity": 337 + }, + "customer": { + "name": "James Villa", + "age": 78, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "White, Martinez and Moore", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "answer", + "category": "represent", + "price": 63.38, + "stock_quantity": 34 + }, + "customer": { + "name": "Philip Doyle", + "age": 80, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Webster, Kelly and Bailey", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "but", + "category": "teach", + "price": 780.98, + "stock_quantity": 621 + }, + "customer": { + "name": "Peter Vang", + "age": 55, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Brown LLC", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "take", + "category": "simply", + "price": 597.24, + "stock_quantity": 95 + }, + "customer": { + "name": "Tammy Curtis", + "age": 70, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Oneal and Sons", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "face", + "category": "several", + "price": 94.65, + "stock_quantity": 791 + }, + "customer": { + "name": "Christopher Cummings", + "age": 72, + "country": "Indonesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hull Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hull Ltd", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "food", + "category": "politics", + "price": 260.22, + "stock_quantity": 142 + }, + "customer": { + "name": "Zachary Williamson", + "age": 30, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Short, Morton and Jimenez", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "very", + "category": "open", + "price": 725.65, + "stock_quantity": 138 + }, + "customer": { + "name": "Renee Reynolds", + "age": 72, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Warner Ltd", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "similar", + "category": "natural", + "price": 596.14, + "stock_quantity": 935 + }, + "customer": { + "name": "Tony Ferguson", + "age": 25, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Lin, Sanchez and Morgan", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "back", + "category": "such", + "price": 127.17, + "stock_quantity": 360 + }, + "customer": { + "name": "Jason Moore", + "age": 46, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Taylor-Burton", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "situation", + "category": "stage", + "price": 103.67, + "stock_quantity": 282 + }, + "customer": { + "name": "Allison Wilson", + "age": 18, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Foster-Houston", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "real", + "category": "national", + "price": 676.09, + "stock_quantity": 754 + }, + "customer": { + "name": "Susan Johnston", + "age": 73, + "country": "Dominican Republic" + } + }, + { + "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'", + "company": { + "name": "Rosales, Williams and Alvarado", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "a", + "category": "sister", + "price": 590.75, + "stock_quantity": 924 + }, + "customer": { + "name": "John Rivas", + "age": 22, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Murphy, Howell and Hodges", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "page", + "category": "respond", + "price": 446.23, + "stock_quantity": 344 + }, + "customer": { + "name": "Julie Hamilton", + "age": 35, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Monroe-Watts", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "help", + "category": "table", + "price": 973.76, + "stock_quantity": 968 + }, + "customer": { + "name": "Michelle Lewis", + "age": 70, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Perez and Sons", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "local", + "category": "his", + "price": 615.86, + "stock_quantity": 725 + }, + "customer": { + "name": "Omar Garcia", + "age": 39, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Yang PLC", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "meet", + "category": "security", + "price": 195.75, + "stock_quantity": 288 + }, + "customer": { + "name": "Kenneth Hudson", + "age": 53, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Bates and Sons", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "bring", + "category": "out", + "price": 594.28, + "stock_quantity": 915 + }, + "customer": { + "name": "Timothy Moore", + "age": 80, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Baird-Brown", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "senior", + "category": "small", + "price": 223.31, + "stock_quantity": 743 + }, + "customer": { + "name": "Rachel Wells", + "age": 38, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Hamilton, Lara and Turner", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "beautiful", + "category": "today", + "price": 894.3, + "stock_quantity": 105 + }, + "customer": { + "name": "Megan Hart", + "age": 42, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Stevenson LLC", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "figure", + "category": "group", + "price": 539.89, + "stock_quantity": 588 + }, + "customer": { + "name": "Andrea Mitchell", + "age": 62, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Webb, Johnston and Leonard", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "card", + "category": "record", + "price": 203.32, + "stock_quantity": 396 + }, + "customer": { + "name": "Alexandra Smith", + "age": 49, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Brady, Simmons and Sweeney", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "debate", + "category": "writer", + "price": 72.95, + "stock_quantity": 409 + }, + "customer": { + "name": "Claudia Buck", + "age": 20, + "country": "Martinique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Torres, Owen and Wilcox'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Torres, Owen and Wilcox", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "tend", + "category": "go", + "price": 801.54, + "stock_quantity": 281 + }, + "customer": { + "name": "Brian Diaz", + "age": 38, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "George-Perez", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "trip", + "category": "herself", + "price": 191.03, + "stock_quantity": 151 + }, + "customer": { + "name": "James King", + "age": 34, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Hughes and Sons", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "sing", + "category": "various", + "price": 165.35, + "stock_quantity": 101 + }, + "customer": { + "name": "Jonathan Stanley", + "age": 33, + "country": "Sierra Leone" + } + }, + { + "natural_query": "How many orders were placed for Baker Ltd between 2023-10-23 and 2024-07-13?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Baker Ltd' AND order_date BETWEEN '2023-10-23' AND '2024-07-13'", + "company": { + "name": "Baker Ltd", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "hope", + "category": "behavior", + "price": 182.14, + "stock_quantity": 778 + }, + "customer": { + "name": "Anthony Richardson", + "age": 37, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Lloyd, Le and Rice", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "inside", + "category": "Republican", + "price": 180.93, + "stock_quantity": 60 + }, + "customer": { + "name": "Molly Mendoza", + "age": 24, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Leon Group", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "job", + "category": "daughter", + "price": 168.9, + "stock_quantity": 518 + }, + "customer": { + "name": "Jeanette Maldonado", + "age": 31, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Neal, Smith and Walter", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "allow", + "category": "air", + "price": 987.33, + "stock_quantity": 211 + }, + "customer": { + "name": "Ronald Farley", + "age": 44, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "amount", + "category": "go", + "price": 801.55, + "stock_quantity": 319 + }, + "customer": { + "name": "Ryan Brown", + "age": 43, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Ochoa-Hernandez", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "side", + "category": "past", + "price": 86.99, + "stock_quantity": 175 + }, + "customer": { + "name": "Michael Ross", + "age": 55, + "country": "Barbados" + } + }, + { + "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'", + "company": { + "name": "Montoya, Collins and Lopez", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "determine", + "category": "check", + "price": 73.93, + "stock_quantity": 149 + }, + "customer": { + "name": "Robert Fernandez", + "age": 28, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Wilson-Mills", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "toward", + "category": "specific", + "price": 59.77, + "stock_quantity": 57 + }, + "customer": { + "name": "Isaac Ross", + "age": 35, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Johns LLC", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "his", + "category": "develop", + "price": 123.15, + "stock_quantity": 439 + }, + "customer": { + "name": "Steven Wiley", + "age": 57, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Hughes, Simmons and White", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "like", + "category": "difficult", + "price": 645.73, + "stock_quantity": 688 + }, + "customer": { + "name": "Kelly Yates", + "age": 68, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Carter, Montoya and Arnold", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "life", + "category": "final", + "price": 875.63, + "stock_quantity": 725 + }, + "customer": { + "name": "Thomas Fernandez", + "age": 61, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Morris, Smith and Shaffer", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "research", + "category": "explain", + "price": 451.19, + "stock_quantity": 394 + }, + "customer": { + "name": "Jack Brady", + "age": 75, + "country": "Georgia" + } + }, + { + "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'", + "company": { + "name": "Foster Group", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "relate", + "category": "strong", + "price": 697.83, + "stock_quantity": 964 + }, + "customer": { + "name": "Heather Mcgee", + "age": 40, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Kennedy-Chang", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "budget", + "category": "what", + "price": 273.7, + "stock_quantity": 456 + }, + "customer": { + "name": "Dennis Bennett", + "age": 33, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Grant and Sons", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "million", + "category": "determine", + "price": 258.66, + "stock_quantity": 876 + }, + "customer": { + "name": "Sherri Farley", + "age": 22, + "country": "Albania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dillon PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dillon PLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "bank", + "category": "deep", + "price": 768.34, + "stock_quantity": 388 + }, + "customer": { + "name": "Tanya Hickman", + "age": 47, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Smith-Reese", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "Republican", + "category": "stock", + "price": 293.19, + "stock_quantity": 14 + }, + "customer": { + "name": "Brenda Williamson", + "age": 28, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Hill-Olson", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "can", + "category": "plant", + "price": 103.13, + "stock_quantity": 261 + }, + "customer": { + "name": "Stephanie Davis", + "age": 26, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Cook, Wong and Velasquez", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "range", + "category": "teach", + "price": 636.83, + "stock_quantity": 783 + }, + "customer": { + "name": "Shelby Morrison DVM", + "age": 40, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Wood, Lopez and Garrison", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "million", + "category": "TV", + "price": 699.19, + "stock_quantity": 79 + }, + "customer": { + "name": "Justin Lynch", + "age": 47, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Lewis-Wilson", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "group", + "category": "than", + "price": 444.62, + "stock_quantity": 902 + }, + "customer": { + "name": "Susan Black", + "age": 29, + "country": "Botswana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Terry PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Terry PLC", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "machine", + "category": "point", + "price": 210.17, + "stock_quantity": 637 + }, + "customer": { + "name": "Matthew Huynh", + "age": 78, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Herring, Hatfield and Dawson", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "watch", + "category": "event", + "price": 544.76, + "stock_quantity": 192 + }, + "customer": { + "name": "Cynthia Rivera", + "age": 66, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Browning-Rodgers", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "six", + "category": "consider", + "price": 822.29, + "stock_quantity": 284 + }, + "customer": { + "name": "Chad Mccoy", + "age": 22, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Santiago-Thomas", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "trial", + "category": "meeting", + "price": 593.59, + "stock_quantity": 926 + }, + "customer": { + "name": "Bradley Fox", + "age": 47, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Johnson Group", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "think", + "category": "minute", + "price": 513.25, + "stock_quantity": 263 + }, + "customer": { + "name": "Taylor Matthews", + "age": 32, + "country": "Nicaragua" + } + }, + { + "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'", + "company": { + "name": "Brown, Doyle and Lee", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "story", + "category": "need", + "price": 238.01, + "stock_quantity": 74 + }, + "customer": { + "name": "Jaclyn Cooper", + "age": 62, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Jackson-Sullivan", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "hard", + "category": "smile", + "price": 401.67, + "stock_quantity": 849 + }, + "customer": { + "name": "Jeremiah Turner", + "age": 55, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Smith Group", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "focus", + "category": "trip", + "price": 410.15, + "stock_quantity": 453 + }, + "customer": { + "name": "Stephanie Douglas", + "age": 55, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Rojas Ltd", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "car", + "category": "southern", + "price": 486.99, + "stock_quantity": 485 + }, + "customer": { + "name": "Aaron Rodriguez", + "age": 77, + "country": "Kuwait" + } + }, + { + "natural_query": "List all customers and their total order value for Wilson, Coleman and Nguyen.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Wilson, Coleman and Nguyen' GROUP BY c.customer_id", + "company": { + "name": "Wilson, Coleman and Nguyen", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "rather", + "category": "defense", + "price": 789.75, + "stock_quantity": 751 + }, + "customer": { + "name": "Daniel Wilson Jr.", + "age": 69, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Wilson-Jackson", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "natural", + "category": "treatment", + "price": 571.37, + "stock_quantity": 910 + }, + "customer": { + "name": "James Turner", + "age": 60, + "country": "Greece" + } + }, + { + "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'", + "company": { + "name": "Jones LLC", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "early", + "category": "although", + "price": 522.64, + "stock_quantity": 994 + }, + "customer": { + "name": "Michael Alexander", + "age": 55, + "country": "French Southern Territories" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gonzalez Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gonzalez Group", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "about", + "category": "tax", + "price": 245.5, + "stock_quantity": 622 + }, + "customer": { + "name": "Neil Boyd", + "age": 32, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Griffin, Taylor and Schultz", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "environment", + "category": "light", + "price": 43.76, + "stock_quantity": 74 + }, + "customer": { + "name": "Alyssa Hayes", + "age": 52, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Sanchez, Lewis and King", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "direction", + "category": "family", + "price": 214.77, + "stock_quantity": 564 + }, + "customer": { + "name": "Joseph Williams", + "age": 32, + "country": "Maldives" + } + }, + { + "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'", + "company": { + "name": "Gutierrez, Vaughan and Howard", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "news", + "category": "understand", + "price": 735.98, + "stock_quantity": 737 + }, + "customer": { + "name": "Deborah Chavez", + "age": 36, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Merritt-Ramirez", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "commercial", + "category": "some", + "price": 853.11, + "stock_quantity": 758 + }, + "customer": { + "name": "Tracy Huber", + "age": 46, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Underwood, Mullen and Estrada", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "yes", + "category": "medical", + "price": 353.83, + "stock_quantity": 499 + }, + "customer": { + "name": "Craig Sherman", + "age": 60, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Smith, Hughes and Esparza", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "person", + "category": "response", + "price": 101.68, + "stock_quantity": 441 + }, + "customer": { + "name": "Deborah Mcdaniel", + "age": 38, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Long PLC", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "exist", + "category": "share", + "price": 111.01, + "stock_quantity": 519 + }, + "customer": { + "name": "Erin Rodriguez", + "age": 44, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Ewing PLC", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "entire", + "category": "more", + "price": 578.95, + "stock_quantity": 628 + }, + "customer": { + "name": "Jorge Mcneil", + "age": 45, + "country": "Ecuador" + } + }, + { + "natural_query": "List all products of Hawkins-Miller ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Hawkins-Miller' ORDER BY price ASC", + "company": { + "name": "Hawkins-Miller", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "three", + "category": "book", + "price": 927.55, + "stock_quantity": 381 + }, + "customer": { + "name": "Stephanie Rogers", + "age": 65, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Craig, Parker and Cook", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "politics", + "category": "effect", + "price": 36.77, + "stock_quantity": 273 + }, + "customer": { + "name": "Melissa Jones", + "age": 29, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Morris Inc", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "foreign", + "category": "difficult", + "price": 640.52, + "stock_quantity": 519 + }, + "customer": { + "name": "Teresa Jacobson", + "age": 36, + "country": "Palestinian Territory" + } + }, + { + "natural_query": "Show me all products in the push category with a price over $186.55.", + "sql_query": "SELECT * FROM products WHERE category = 'push' AND price > 186.55", + "company": { + "name": "Ashley LLC", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "take", + "category": "push", + "price": 186.55, + "stock_quantity": 778 + }, + "customer": { + "name": "Nicolas Brown", + "age": 73, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Johnson-Fischer", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "religious", + "category": "easy", + "price": 971.13, + "stock_quantity": 938 + }, + "customer": { + "name": "Maureen Casey", + "age": 32, + "country": "Colombia" + } + }, + { + "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'", + "company": { + "name": "Johnson-Cross", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "blue", + "category": "she", + "price": 751.53, + "stock_quantity": 143 + }, + "customer": { + "name": "Mrs. Kimberly Gray", + "age": 21, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Cummings-Johnson", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "subject", + "category": "enough", + "price": 827.23, + "stock_quantity": 760 + }, + "customer": { + "name": "Joseph Fernandez", + "age": 28, + "country": "Central African Republic" + } + }, + { + "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'", + "company": { + "name": "Rodriguez LLC", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "successful", + "category": "although", + "price": 171.58, + "stock_quantity": 163 + }, + "customer": { + "name": "Cory Ochoa", + "age": 46, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Pruitt, Franco and Jones", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "eye", + "category": "watch", + "price": 843.7, + "stock_quantity": 433 + }, + "customer": { + "name": "David Martin", + "age": 45, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Wilkinson-Cooper", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "music", + "category": "traditional", + "price": 984.92, + "stock_quantity": 856 + }, + "customer": { + "name": "Breanna Hawkins", + "age": 55, + "country": "Tunisia" + } + }, + { + "natural_query": "Show me all products in the executive category with a price over $709.32.", + "sql_query": "SELECT * FROM products WHERE category = 'executive' AND price > 709.32", + "company": { + "name": "Jenkins-Holmes", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "according", + "category": "executive", + "price": 709.32, + "stock_quantity": 617 + }, + "customer": { + "name": "Suzanne Martinez", + "age": 71, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Roman-Olson", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "change", + "category": "positive", + "price": 887.08, + "stock_quantity": 62 + }, + "customer": { + "name": "Amanda James", + "age": 79, + "country": "Canada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Powers Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Powers Ltd", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "start", + "category": "follow", + "price": 328.06, + "stock_quantity": 288 + }, + "customer": { + "name": "Olivia Garrison", + "age": 37, + "country": "Tonga" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Yates-Clark'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Yates-Clark", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "late", + "category": "tonight", + "price": 553.26, + "stock_quantity": 969 + }, + "customer": { + "name": "Jonathan Cox", + "age": 51, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Prince-Rivera", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "world", + "category": "economic", + "price": 740.2, + "stock_quantity": 14 + }, + "customer": { + "name": "Steven Acosta", + "age": 31, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Walton LLC", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "figure", + "category": "his", + "price": 958.86, + "stock_quantity": 44 + }, + "customer": { + "name": "Catherine Gamble", + "age": 64, + "country": "Lebanon" + } + }, + { + "natural_query": "What is the total quantity of all products for Wiley-Robinson?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wiley-Robinson'", + "company": { + "name": "Wiley-Robinson", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "town", + "category": "interesting", + "price": 711.63, + "stock_quantity": 407 + }, + "customer": { + "name": "Rachel Terrell", + "age": 40, + "country": "Comoros" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor, Jackson and Hensley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor, Jackson and Hensley", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "draw", + "category": "spend", + "price": 974.54, + "stock_quantity": 405 + }, + "customer": { + "name": "Peter Morgan", + "age": 24, + "country": "Haiti" + } + }, + { + "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'", + "company": { + "name": "Hall, Cook and Fisher", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "service", + "category": "teacher", + "price": 599.97, + "stock_quantity": 299 + }, + "customer": { + "name": "Pamela Schneider", + "age": 75, + "country": "Lithuania" + } + }, + { + "natural_query": "What is the total quantity for each country in Baker Inc?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Baker Inc' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Baker Inc", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "relationship", + "category": "religious", + "price": 693.27, + "stock_quantity": 435 + }, + "customer": { + "name": "Andrew Andrews", + "age": 25, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Ramirez-Moreno", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "program", + "category": "bill", + "price": 499.99, + "stock_quantity": 353 + }, + "customer": { + "name": "Carol Mitchell", + "age": 75, + "country": "Iraq" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Grant-Robinson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Grant-Robinson", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "glass", + "category": "child", + "price": 575.3, + "stock_quantity": 348 + }, + "customer": { + "name": "Sean Anderson", + "age": 46, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "natural_query": "What is the total quantity for each category in Carr-Welch?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Carr-Welch' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Carr-Welch", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "simple", + "category": "wear", + "price": 475.58, + "stock_quantity": 434 + }, + "customer": { + "name": "Margaret Hill", + "age": 36, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Rowe-Morales", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "foot", + "category": "live", + "price": 358.08, + "stock_quantity": 404 + }, + "customer": { + "name": "Jordan Martin", + "age": 70, + "country": "Germany" + } + }, + { + "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'", + "company": { + "name": "Fitzpatrick and Sons", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "exactly", + "category": "traditional", + "price": 458.2, + "stock_quantity": 887 + }, + "customer": { + "name": "Danielle Rivera", + "age": 26, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Mitchell Ltd", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "gun", + "category": "order", + "price": 302.25, + "stock_quantity": 473 + }, + "customer": { + "name": "Matthew Moore", + "age": 64, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Davis, Ho and Haley", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "city", + "category": "agree", + "price": 193.04, + "stock_quantity": 555 + }, + "customer": { + "name": "Richard Montgomery", + "age": 67, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Rocha Group", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "accept", + "category": "day", + "price": 931.6, + "stock_quantity": 489 + }, + "customer": { + "name": "Jacqueline Webster", + "age": 53, + "country": "French Southern Territories" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez, Fowler and Bates'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez, Fowler and Bates", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "economic", + "category": "fire", + "price": 547.17, + "stock_quantity": 676 + }, + "customer": { + "name": "Janice Martin", + "age": 32, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Love Inc", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "game", + "category": "hear", + "price": 617.87, + "stock_quantity": 327 + }, + "customer": { + "name": "Brandon Thompson", + "age": 53, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Ellis LLC", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "worry", + "category": "nation", + "price": 651.29, + "stock_quantity": 590 + }, + "customer": { + "name": "Mr. Sean French", + "age": 24, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Hunt, Friedman and Mcgee", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "six", + "category": "door", + "price": 49.82, + "stock_quantity": 456 + }, + "customer": { + "name": "David Rogers", + "age": 78, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Jones-Mills", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "rise", + "category": "something", + "price": 71.74, + "stock_quantity": 177 + }, + "customer": { + "name": "Jerome Collins DDS", + "age": 45, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Sanchez, Schultz and Rich", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "environmental", + "category": "job", + "price": 390.36, + "stock_quantity": 99 + }, + "customer": { + "name": "John Hicks", + "age": 25, + "country": "Rwanda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baker, Thompson and Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baker, Thompson and Moore", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "hair", + "category": "what", + "price": 769.14, + "stock_quantity": 353 + }, + "customer": { + "name": "Robert Rodriguez", + "age": 20, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Rogers Group", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "assume", + "category": "dream", + "price": 854.51, + "stock_quantity": 617 + }, + "customer": { + "name": "Eric Wilson", + "age": 21, + "country": "Cameroon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moore, Brown and Villanueva'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moore, Brown and Villanueva", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "well", + "category": "Congress", + "price": 168.06, + "stock_quantity": 54 + }, + "customer": { + "name": "Antonio Thompson", + "age": 24, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Cook, Allison and Park", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "training", + "category": "on", + "price": 835.05, + "stock_quantity": 59 + }, + "customer": { + "name": "Denise Green", + "age": 45, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Vasquez, Baird and Myers", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "environmental", + "category": "now", + "price": 135.16, + "stock_quantity": 483 + }, + "customer": { + "name": "Sherri Nelson", + "age": 67, + "country": "Sierra Leone" + } + }, + { + "natural_query": "How many orders were placed for Harvey, Smith and Duran between 2024-01-17 and 2024-08-02?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harvey, Smith and Duran' AND order_date BETWEEN '2024-01-17' AND '2024-08-02'", + "company": { + "name": "Harvey, Smith and Duran", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "health", + "category": "scene", + "price": 806.55, + "stock_quantity": 124 + }, + "customer": { + "name": "Elizabeth Friedman", + "age": 63, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Jones and Sons", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "third", + "category": "happy", + "price": 833.37, + "stock_quantity": 194 + }, + "customer": { + "name": "Susan Foster", + "age": 70, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Obrien, Koch and Franco", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "they", + "category": "trouble", + "price": 931.36, + "stock_quantity": 484 + }, + "customer": { + "name": "Laura Rodriguez", + "age": 61, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Chaney Ltd", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "place", + "category": "pressure", + "price": 328.86, + "stock_quantity": 98 + }, + "customer": { + "name": "Adrian Smith", + "age": 66, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "natural_query": "List all customers and their total order value for Pierce, Blackwell and Bishop.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Pierce, Blackwell and Bishop' GROUP BY c.customer_id", + "company": { + "name": "Pierce, Blackwell and Bishop", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "hold", + "category": "save", + "price": 301.96, + "stock_quantity": 764 + }, + "customer": { + "name": "Betty Hill", + "age": 66, + "country": "North Macedonia" + } + }, + { + "natural_query": "Show me all products in the food category with a price over $66.98.", + "sql_query": "SELECT * FROM products WHERE category = 'food' AND price > 66.98", + "company": { + "name": "Myers Ltd", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "north", + "category": "food", + "price": 66.98, + "stock_quantity": 359 + }, + "customer": { + "name": "Kevin Peters", + "age": 51, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Pham-Graves", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "follow", + "category": "work", + "price": 743.22, + "stock_quantity": 395 + }, + "customer": { + "name": "Penny Santana", + "age": 64, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Williams-Parker", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "network", + "category": "government", + "price": 165.19, + "stock_quantity": 567 + }, + "customer": { + "name": "Ronald Moore", + "age": 41, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Hughes, Stein and Daniel", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "over", + "category": "tough", + "price": 405.74, + "stock_quantity": 516 + }, + "customer": { + "name": "David Young", + "age": 37, + "country": "Oman" + } + }, + { + "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'", + "company": { + "name": "Aguirre-Moore", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "rule", + "category": "collection", + "price": 617.68, + "stock_quantity": 800 + }, + "customer": { + "name": "Lucas Davidson", + "age": 32, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Wong-Nelson", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "add", + "category": "human", + "price": 327.44, + "stock_quantity": 377 + }, + "customer": { + "name": "Victoria Williams", + "age": 45, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Butler-Rogers", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "beyond", + "category": "five", + "price": 630.15, + "stock_quantity": 486 + }, + "customer": { + "name": "Brandon Baker", + "age": 31, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Berry, Anderson and Drake", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "attention", + "category": "career", + "price": 94.12, + "stock_quantity": 887 + }, + "customer": { + "name": "George Hampton", + "age": 39, + "country": "Russian Federation" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Middleton Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Middleton Group", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "provide", + "category": "even", + "price": 188.05, + "stock_quantity": 44 + }, + "customer": { + "name": "Michelle Reyes", + "age": 18, + "country": "Portugal" + } + }, + { + "natural_query": "List all products of Thompson LLC ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Thompson LLC' ORDER BY rating ASC", + "company": { + "name": "Thompson LLC", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "goal", + "category": "beat", + "price": 341.33, + "stock_quantity": 813 + }, + "customer": { + "name": "Elizabeth Martinez", + "age": 26, + "country": "Albania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mays, Mills and Casey'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mays, Mills and Casey", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "make", + "category": "over", + "price": 61.78, + "stock_quantity": 877 + }, + "customer": { + "name": "Lawrence Reynolds", + "age": 75, + "country": "Mayotte" + } + }, + { + "natural_query": "What is the minimum price of all products for Cooper, Johnson and West?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Cooper, Johnson and West'", + "company": { + "name": "Cooper, Johnson and West", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "find", + "category": "last", + "price": 381.27, + "stock_quantity": 561 + }, + "customer": { + "name": "Jennifer Rogers", + "age": 22, + "country": "Czech Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gardner Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gardner Ltd", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "husband", + "category": "industry", + "price": 790.75, + "stock_quantity": 507 + }, + "customer": { + "name": "James Stout", + "age": 25, + "country": "Armenia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roberts, Nelson and Nguyen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roberts, Nelson and Nguyen", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "opportunity", + "category": "idea", + "price": 967.61, + "stock_quantity": 500 + }, + "customer": { + "name": "Christopher Sullivan", + "age": 50, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Kline, Conley and Morales", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "court", + "category": "everything", + "price": 705.29, + "stock_quantity": 890 + }, + "customer": { + "name": "Robert Dominguez", + "age": 47, + "country": "Dominican Republic" + } + }, + { + "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'", + "company": { + "name": "Thomas and Sons", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "capital", + "category": "that", + "price": 716.98, + "stock_quantity": 76 + }, + "customer": { + "name": "Natalie Howard", + "age": 30, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Mcconnell PLC", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "behavior", + "category": "who", + "price": 692.29, + "stock_quantity": 187 + }, + "customer": { + "name": "Margaret Wilson", + "age": 48, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Aguilar LLC", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "pay", + "category": "fear", + "price": 248.34, + "stock_quantity": 783 + }, + "customer": { + "name": "Timothy Daniels", + "age": 64, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Perez Group", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "foot", + "category": "box", + "price": 171.65, + "stock_quantity": 367 + }, + "customer": { + "name": "Christopher Mcclain", + "age": 27, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Mcdowell Group", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "push", + "category": "source", + "price": 11.75, + "stock_quantity": 305 + }, + "customer": { + "name": "Leslie Wood", + "age": 69, + "country": "Wallis and Futuna" + } + }, + { + "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'", + "company": { + "name": "Sullivan, Smith and James", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "feel", + "category": "spend", + "price": 437.38, + "stock_quantity": 794 + }, + "customer": { + "name": "Kelli Sanchez DDS", + "age": 78, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Garcia-Mclaughlin", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "need", + "category": "environment", + "price": 104.49, + "stock_quantity": 625 + }, + "customer": { + "name": "Meredith Smith", + "age": 52, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Grant Group", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "close", + "category": "public", + "price": 969.6, + "stock_quantity": 857 + }, + "customer": { + "name": "Brittany Barnes", + "age": 28, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Good Ltd", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "recent", + "category": "then", + "price": 48.45, + "stock_quantity": 257 + }, + "customer": { + "name": "Renee Charles", + "age": 46, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Dean, Johnson and Davis", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "all", + "category": "she", + "price": 417.93, + "stock_quantity": 182 + }, + "customer": { + "name": "Philip Rodriguez", + "age": 80, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Mills Group", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "happen", + "category": "guess", + "price": 286.3, + "stock_quantity": 667 + }, + "customer": { + "name": "James Owen", + "age": 31, + "country": "Morocco" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams, Martinez and Hill'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams, Martinez and Hill", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "factor", + "category": "our", + "price": 320.39, + "stock_quantity": 62 + }, + "customer": { + "name": "Justin Moore", + "age": 71, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Chambers-Murray", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "tell", + "category": "close", + "price": 605.43, + "stock_quantity": 136 + }, + "customer": { + "name": "Tammy Garcia", + "age": 73, + "country": "Reunion" + } + }, + { + "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'", + "company": { + "name": "Lee, Chapman and Boyd", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "down", + "category": "arrive", + "price": 512.04, + "stock_quantity": 55 + }, + "customer": { + "name": "William Anderson", + "age": 79, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Stewart and Silva", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "media", + "category": "peace", + "price": 958.59, + "stock_quantity": 818 + }, + "customer": { + "name": "Dr. James Castillo", + "age": 33, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Nguyen-Douglas", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "Republican", + "category": "tend", + "price": 409.04, + "stock_quantity": 439 + }, + "customer": { + "name": "Ronnie Robles", + "age": 25, + "country": "Nicaragua" + } + }, + { + "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'", + "company": { + "name": "Holland LLC", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "trial", + "category": "figure", + "price": 772.29, + "stock_quantity": 724 + }, + "customer": { + "name": "Diana Woods", + "age": 18, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Holt LLC", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "bed", + "category": "officer", + "price": 131.8, + "stock_quantity": 522 + }, + "customer": { + "name": "Sylvia Cox", + "age": 39, + "country": "Bahamas" + } + }, + { + "natural_query": "How many orders were placed for Tate LLC between 2024-02-12 and 2024-09-10?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Tate LLC' AND order_date BETWEEN '2024-02-12' AND '2024-09-10'", + "company": { + "name": "Tate LLC", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "which", + "category": "how", + "price": 890.4, + "stock_quantity": 672 + }, + "customer": { + "name": "Shannon Alexander", + "age": 18, + "country": "South Africa" + } + }, + { + "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'", + "company": { + "name": "Zimmerman Group", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "whether", + "category": "base", + "price": 548.81, + "stock_quantity": 531 + }, + "customer": { + "name": "Sarah Hughes", + "age": 66, + "country": "Estonia" + } + }, + { + "natural_query": "What are the top 3 products by orders for Bradshaw LLC last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Bradshaw LLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3", + "company": { + "name": "Bradshaw LLC", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "church", + "category": "room", + "price": 582.78, + "stock_quantity": 715 + }, + "customer": { + "name": "Tyler Kim", + "age": 37, + "country": "Benin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Salas, Smith and Davis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Salas, Smith and Davis", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "bad", + "category": "establish", + "price": 470.41, + "stock_quantity": 350 + }, + "customer": { + "name": "Ryan Flores", + "age": 26, + "country": "Finland" + } + }, + { + "natural_query": "Show me all products in the bad category with a price over $857.75.", + "sql_query": "SELECT * FROM products WHERE category = 'bad' AND price > 857.75", + "company": { + "name": "Cordova-Miller", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "keep", + "category": "bad", + "price": 857.75, + "stock_quantity": 341 + }, + "customer": { + "name": "Alex Avila", + "age": 46, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Sanchez Inc", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "end", + "category": "including", + "price": 817.89, + "stock_quantity": 769 + }, + "customer": { + "name": "Dr. Justin Lewis Jr.", + "age": 75, + "country": "Palestinian Territory" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris PLC", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "behind", + "category": "political", + "price": 566.3, + "stock_quantity": 740 + }, + "customer": { + "name": "Katelyn Byrd", + "age": 58, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Collins, Kim and Grant", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "party", + "category": "country", + "price": 934.81, + "stock_quantity": 554 + }, + "customer": { + "name": "Nicholas Waters", + "age": 61, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Carr, Martin and Robinson", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "try", + "category": "service", + "price": 15.67, + "stock_quantity": 878 + }, + "customer": { + "name": "Tracy Gardner", + "age": 70, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Todd-Freeman", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "sound", + "category": "compare", + "price": 850.21, + "stock_quantity": 285 + }, + "customer": { + "name": "Paige Duffy", + "age": 37, + "country": "Canada" + } + }, + { + "natural_query": "What is the average price of all products for Koch-Carroll?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Koch-Carroll'", + "company": { + "name": "Koch-Carroll", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "public", + "category": "no", + "price": 219.22, + "stock_quantity": 48 + }, + "customer": { + "name": "Patricia Schroeder", + "age": 50, + "country": "Solomon Islands" + } + }, + { + "natural_query": "What is the total quantity for each category in Olsen-Vasquez?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Olsen-Vasquez' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Olsen-Vasquez", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "defense", + "category": "step", + "price": 752.96, + "stock_quantity": 694 + }, + "customer": { + "name": "Amber Navarro", + "age": 52, + "country": "Cambodia" + } + }, + { + "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'", + "company": { + "name": "Johnson Ltd", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "season", + "category": "believe", + "price": 966.0, + "stock_quantity": 526 + }, + "customer": { + "name": "Beth Chavez", + "age": 72, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Adams-Lee", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "team", + "category": "avoid", + "price": 399.18, + "stock_quantity": 478 + }, + "customer": { + "name": "Dennis Weber", + "age": 38, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Vazquez-Ponce", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "receive", + "category": "admit", + "price": 345.16, + "stock_quantity": 775 + }, + "customer": { + "name": "Timothy Vasquez", + "age": 71, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Calhoun-Miller", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "bill", + "category": "series", + "price": 611.15, + "stock_quantity": 479 + }, + "customer": { + "name": "Stacy Moore", + "age": 22, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Gardner, Dawson and Salazar", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "money", + "category": "evening", + "price": 147.4, + "stock_quantity": 976 + }, + "customer": { + "name": "Dawn Waters", + "age": 68, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Hoover, King and Vasquez", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "catch", + "category": "room", + "price": 914.52, + "stock_quantity": 323 + }, + "customer": { + "name": "Robert Moreno", + "age": 65, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Frye Ltd", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "network", + "category": "mean", + "price": 125.89, + "stock_quantity": 352 + }, + "customer": { + "name": "Peter Mcguire", + "age": 55, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Schmidt-Miller", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "realize", + "category": "least", + "price": 390.78, + "stock_quantity": 311 + }, + "customer": { + "name": "Thomas Rodriguez", + "age": 50, + "country": "El Salvador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gallagher, White and Lam'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gallagher, White and Lam", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "ten", + "category": "because", + "price": 61.31, + "stock_quantity": 540 + }, + "customer": { + "name": "Krystal Harris", + "age": 31, + "country": "South Africa" + } + }, + { + "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'", + "company": { + "name": "Miller, Cervantes and Harrison", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "begin", + "category": "while", + "price": 121.73, + "stock_quantity": 39 + }, + "customer": { + "name": "Mark Escobar", + "age": 64, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Hartman-Franklin", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "deal", + "category": "rich", + "price": 80.45, + "stock_quantity": 947 + }, + "customer": { + "name": "Craig Wilson", + "age": 46, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Phillips Ltd", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "responsibility", + "category": "sort", + "price": 899.78, + "stock_quantity": 872 + }, + "customer": { + "name": "Kathleen Harper", + "age": 54, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Schmitt and Sons", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "common", + "category": "large", + "price": 230.7, + "stock_quantity": 546 + }, + "customer": { + "name": "Shannon Evans", + "age": 26, + "country": "Ireland" + } + }, + { + "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'", + "company": { + "name": "Frank, Murray and Harrison", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "result", + "category": "front", + "price": 764.31, + "stock_quantity": 164 + }, + "customer": { + "name": "Jeffrey Maldonado", + "age": 29, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Yang, Hansen and Ramirez", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "dog", + "category": "economy", + "price": 589.45, + "stock_quantity": 862 + }, + "customer": { + "name": "Derrick Jones", + "age": 76, + "country": "Palestinian Territory" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Santos Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Santos Inc", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "clearly", + "category": "even", + "price": 351.81, + "stock_quantity": 636 + }, + "customer": { + "name": "Laura Brennan", + "age": 61, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Wilson, Rowland and Gross", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "little", + "category": "billion", + "price": 950.2, + "stock_quantity": 896 + }, + "customer": { + "name": "Teresa Payne", + "age": 18, + "country": "Ghana" + } + }, + { + "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'", + "company": { + "name": "Johnston-Walker", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "scientist", + "category": "itself", + "price": 885.67, + "stock_quantity": 79 + }, + "customer": { + "name": "Jack Mccarthy Jr.", + "age": 68, + "country": "Suriname" + } + }, + { + "natural_query": "List all customers and their total order value for Miller Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Miller Ltd' GROUP BY c.customer_id", + "company": { + "name": "Miller Ltd", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "my", + "category": "political", + "price": 432.17, + "stock_quantity": 160 + }, + "customer": { + "name": "Michelle Murphy", + "age": 68, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Curtis and Sons", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "start", + "category": "glass", + "price": 43.46, + "stock_quantity": 617 + }, + "customer": { + "name": "Aaron Walker", + "age": 47, + "country": "Dominica" + } + }, + { + "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'", + "company": { + "name": "Sampson LLC", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "throughout", + "category": "budget", + "price": 148.08, + "stock_quantity": 65 + }, + "customer": { + "name": "Christina Harrison", + "age": 56, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Blankenship, Oneill and Vaughn", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "every", + "category": "board", + "price": 422.9, + "stock_quantity": 749 + }, + "customer": { + "name": "Ryan Smith", + "age": 37, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Cervantes, Garrett and Long", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "chair", + "category": "catch", + "price": 728.56, + "stock_quantity": 645 + }, + "customer": { + "name": "Tonya Mcguire", + "age": 60, + "country": "Mali" + } + }, + { + "natural_query": "What is the total sales for each category in Salinas, Malone and Payne?", + "sql_query": "SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Salinas, Malone and Payne' GROUP BY category ORDER BY total_sales DESC", + "company": { + "name": "Salinas, Malone and Payne", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "source", + "category": "good", + "price": 572.79, + "stock_quantity": 789 + }, + "customer": { + "name": "Angelica Hughes", + "age": 34, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Andersen-Brandt", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "be", + "category": "want", + "price": 72.07, + "stock_quantity": 484 + }, + "customer": { + "name": "Beth Hughes", + "age": 26, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Duke and Sons", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "open", + "category": "nearly", + "price": 972.57, + "stock_quantity": 999 + }, + "customer": { + "name": "Lori Levine", + "age": 79, + "country": "Chile" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Watson Group for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Watson Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Watson Group", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "her", + "category": "inside", + "price": 30.8, + "stock_quantity": 916 + }, + "customer": { + "name": "Charles Baker", + "age": 62, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Gutierrez-Robinson", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "better", + "category": "commercial", + "price": 636.24, + "stock_quantity": 437 + }, + "customer": { + "name": "Nicholas Brooks", + "age": 68, + "country": "Antigua and Barbuda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Schmidt Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Schmidt Group", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "hold", + "category": "especially", + "price": 882.59, + "stock_quantity": 922 + }, + "customer": { + "name": "Anita Morrison", + "age": 72, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Carroll Group", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "education", + "category": "instead", + "price": 906.63, + "stock_quantity": 868 + }, + "customer": { + "name": "Lisa Nash", + "age": 60, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Hess, Johnson and Aguirre", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "some", + "category": "less", + "price": 855.93, + "stock_quantity": 581 + }, + "customer": { + "name": "Spencer Rodriguez", + "age": 38, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "natural_query": "List all products of Sullivan Inc ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Sullivan Inc' ORDER BY stock_quantity ASC", + "company": { + "name": "Sullivan Inc", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "summer", + "category": "beyond", + "price": 197.57, + "stock_quantity": 33 + }, + "customer": { + "name": "Katherine Spencer", + "age": 29, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Foster-Anderson", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "ball", + "category": "bed", + "price": 786.79, + "stock_quantity": 901 + }, + "customer": { + "name": "Holly Whitney", + "age": 57, + "country": "Maldives" + } + }, + { + "natural_query": "What is the average quantity of all products for Campbell-Fowler?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Campbell-Fowler'", + "company": { + "name": "Campbell-Fowler", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "picture", + "category": "father", + "price": 824.84, + "stock_quantity": 184 + }, + "customer": { + "name": "Johnathan Carter", + "age": 37, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "West-Obrien", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "they", + "category": "can", + "price": 617.15, + "stock_quantity": 276 + }, + "customer": { + "name": "Linda Schwartz", + "age": 62, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Martin-Howard", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "really", + "category": "this", + "price": 444.78, + "stock_quantity": 141 + }, + "customer": { + "name": "Virginia Bates", + "age": 20, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Bryant, Bailey and Glass", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "necessary", + "category": "until", + "price": 961.64, + "stock_quantity": 847 + }, + "customer": { + "name": "Joseph Johnson", + "age": 58, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Lopez-Abbott", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "travel", + "category": "or", + "price": 998.82, + "stock_quantity": 330 + }, + "customer": { + "name": "Johnny Mathews", + "age": 65, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Chaney Ltd", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "point", + "category": "wear", + "price": 980.87, + "stock_quantity": 756 + }, + "customer": { + "name": "Sarah Holloway", + "age": 73, + "country": "Thailand" + } + }, + { + "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'", + "company": { + "name": "Fletcher, Woods and Strickland", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "change", + "category": "watch", + "price": 813.53, + "stock_quantity": 649 + }, + "customer": { + "name": "Shawn Robinson", + "age": 79, + "country": "Cote d'Ivoire" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis Inc", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "save", + "category": "next", + "price": 645.87, + "stock_quantity": 962 + }, + "customer": { + "name": "Danielle Caldwell", + "age": 40, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Price Inc", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "possible", + "category": "make", + "price": 124.97, + "stock_quantity": 133 + }, + "customer": { + "name": "Amber Mcgrath", + "age": 45, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Ryan, Carrillo and Nelson", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "hold", + "category": "morning", + "price": 578.18, + "stock_quantity": 358 + }, + "customer": { + "name": "Meredith Jackson", + "age": 74, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Hernandez, Harper and Reilly", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "keep", + "category": "order", + "price": 534.99, + "stock_quantity": 882 + }, + "customer": { + "name": "Melinda Sanchez", + "age": 18, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Short LLC", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "condition", + "category": "owner", + "price": 296.73, + "stock_quantity": 994 + }, + "customer": { + "name": "Mandy Martinez", + "age": 62, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Hawkins-Bell", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "speak", + "category": "every", + "price": 143.7, + "stock_quantity": 985 + }, + "customer": { + "name": "Carl Snyder", + "age": 22, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Ramsey, Ochoa and Simpson", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "special", + "category": "leave", + "price": 160.63, + "stock_quantity": 166 + }, + "customer": { + "name": "Ryan Jones", + "age": 49, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Banks-Phelps", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "according", + "category": "dream", + "price": 836.55, + "stock_quantity": 391 + }, + "customer": { + "name": "Jason Smith", + "age": 57, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Randall Inc", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "degree", + "category": "Mrs", + "price": 185.61, + "stock_quantity": 513 + }, + "customer": { + "name": "Adam Savage", + "age": 34, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Finley-Wood", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "loss", + "category": "talk", + "price": 270.9, + "stock_quantity": 220 + }, + "customer": { + "name": "Frank Hayes", + "age": 64, + "country": "Moldova" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith-Wright'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith-Wright", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "piece", + "category": "cell", + "price": 459.76, + "stock_quantity": 677 + }, + "customer": { + "name": "Susan Jones", + "age": 76, + "country": "Cyprus" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Lang-Flores?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lang-Flores' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Lang-Flores", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "without", + "category": "might", + "price": 709.07, + "stock_quantity": 631 + }, + "customer": { + "name": "Allison Gonzalez", + "age": 70, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Ross-Scott", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "get", + "category": "his", + "price": 211.57, + "stock_quantity": 939 + }, + "customer": { + "name": "Luke Sawyer", + "age": 58, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Delgado LLC", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "kind", + "category": "change", + "price": 923.7, + "stock_quantity": 894 + }, + "customer": { + "name": "Samuel Stephens", + "age": 64, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Delacruz, Cannon and Ingram", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "without", + "category": "result", + "price": 788.36, + "stock_quantity": 678 + }, + "customer": { + "name": "Brian Rogers", + "age": 45, + "country": "Malawi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'White Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "White Inc", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "indeed", + "category": "exactly", + "price": 188.63, + "stock_quantity": 552 + }, + "customer": { + "name": "William Young", + "age": 64, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Vasquez, Pacheco and Curtis", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "heavy", + "category": "financial", + "price": 859.58, + "stock_quantity": 403 + }, + "customer": { + "name": "Cynthia Roth", + "age": 51, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Banks, Lopez and Macias", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "table", + "category": "imagine", + "price": 727.98, + "stock_quantity": 52 + }, + "customer": { + "name": "Robin Pham", + "age": 42, + "country": "Qatar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cruz, Hall and Ellis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cruz, Hall and Ellis", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "tend", + "category": "push", + "price": 961.39, + "stock_quantity": 185 + }, + "customer": { + "name": "Justin Bowen", + "age": 53, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Owens, Garcia and Clark", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "charge", + "category": "he", + "price": 727.1, + "stock_quantity": 499 + }, + "customer": { + "name": "Samuel Wright", + "age": 53, + "country": "Belize" + } + }, + { + "natural_query": "What are the top 8 products by orders for Scott PLC last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Scott PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8", + "company": { + "name": "Scott PLC", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "return", + "category": "picture", + "price": 864.06, + "stock_quantity": 335 + }, + "customer": { + "name": "Victoria Vasquez", + "age": 60, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Ramirez-Byrd", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "group", + "category": "start", + "price": 259.93, + "stock_quantity": 487 + }, + "customer": { + "name": "Frank Smith", + "age": 65, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Weber-Kelley", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "bed", + "category": "hot", + "price": 977.87, + "stock_quantity": 48 + }, + "customer": { + "name": "Christopher Jimenez", + "age": 68, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Poole Ltd", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "at", + "category": "partner", + "price": 151.36, + "stock_quantity": 139 + }, + "customer": { + "name": "Crystal Leblanc", + "age": 31, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Grimes, Zimmerman and Anderson", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "discuss", + "category": "of", + "price": 746.47, + "stock_quantity": 723 + }, + "customer": { + "name": "Alicia Baxter", + "age": 37, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Parker LLC", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "model", + "category": "degree", + "price": 971.02, + "stock_quantity": 120 + }, + "customer": { + "name": "Donna Williams", + "age": 39, + "country": "Guatemala" + } + }, + { + "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'", + "company": { + "name": "Bell-Long", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "inside", + "category": "different", + "price": 396.05, + "stock_quantity": 553 + }, + "customer": { + "name": "Beverly Bell", + "age": 41, + "country": "French Southern Territories" + } + }, + { + "natural_query": "What are the top 8 products by sales for Brown-Gonzalez all time?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown-Gonzalez' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8", + "company": { + "name": "Brown-Gonzalez", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "summer", + "category": "specific", + "price": 609.35, + "stock_quantity": 717 + }, + "customer": { + "name": "David Wilson", + "age": 78, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Carr, Ross and Ross", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "still", + "category": "more", + "price": 510.43, + "stock_quantity": 837 + }, + "customer": { + "name": "William Rodriguez", + "age": 34, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Holmes, Newton and Coleman", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "reflect", + "category": "move", + "price": 185.0, + "stock_quantity": 175 + }, + "customer": { + "name": "Marissa Mitchell", + "age": 45, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Decker-Williams", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "close", + "category": "country", + "price": 328.28, + "stock_quantity": 828 + }, + "customer": { + "name": "Robert Edwards", + "age": 48, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Young, Moore and Henderson", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "return", + "category": "or", + "price": 720.13, + "stock_quantity": 585 + }, + "customer": { + "name": "Patrick Ponce", + "age": 57, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Stewart, Clark and Johnston", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "cause", + "category": "art", + "price": 924.19, + "stock_quantity": 291 + }, + "customer": { + "name": "Ryan Jones", + "age": 40, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Martin LLC", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "model", + "category": "ago", + "price": 427.15, + "stock_quantity": 275 + }, + "customer": { + "name": "William Harper", + "age": 64, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Collins-Wong", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "rock", + "category": "reflect", + "price": 224.89, + "stock_quantity": 796 + }, + "customer": { + "name": "Christopher Jackson", + "age": 70, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Johnson-Davis", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "in", + "category": "produce", + "price": 972.11, + "stock_quantity": 799 + }, + "customer": { + "name": "Matthew Stuart", + "age": 65, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Richardson Group", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "contain", + "category": "hard", + "price": 564.79, + "stock_quantity": 189 + }, + "customer": { + "name": "Joe Jensen", + "age": 26, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Ramos PLC", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "relate", + "category": "culture", + "price": 571.99, + "stock_quantity": 321 + }, + "customer": { + "name": "Hannah Shannon", + "age": 68, + "country": "Puerto Rico" + } + }, + { + "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'", + "company": { + "name": "Acosta-Jones", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "item", + "category": "off", + "price": 958.01, + "stock_quantity": 439 + }, + "customer": { + "name": "Jacob Bolton", + "age": 19, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Taylor-Nelson", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "its", + "category": "thus", + "price": 355.48, + "stock_quantity": 185 + }, + "customer": { + "name": "Kim Mendoza", + "age": 49, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Neal, Roberts and Navarro", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "number", + "category": "society", + "price": 823.21, + "stock_quantity": 891 + }, + "customer": { + "name": "Melissa Murray", + "age": 77, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Mason, Jones and Johnson", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "customer", + "category": "friend", + "price": 903.66, + "stock_quantity": 926 + }, + "customer": { + "name": "Brandon Michael", + "age": 60, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "French-Sosa", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "issue", + "category": "everyone", + "price": 268.38, + "stock_quantity": 630 + }, + "customer": { + "name": "Rachel Mitchell", + "age": 58, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Smith, Mann and Turner", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "it", + "category": "art", + "price": 920.8, + "stock_quantity": 485 + }, + "customer": { + "name": "Jennifer Russell", + "age": 65, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Johnson and Sons", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "movie", + "category": "suddenly", + "price": 904.71, + "stock_quantity": 509 + }, + "customer": { + "name": "Brian Moody", + "age": 52, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Collins-Henderson", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "add", + "category": "increase", + "price": 690.63, + "stock_quantity": 298 + }, + "customer": { + "name": "Shawn Wells", + "age": 48, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Matthews-Rodriguez", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "letter", + "category": "bit", + "price": 327.56, + "stock_quantity": 342 + }, + "customer": { + "name": "Katherine Shelton", + "age": 40, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Daniels, White and Briggs", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "bit", + "category": "effect", + "price": 555.83, + "stock_quantity": 309 + }, + "customer": { + "name": "David Collins", + "age": 27, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Vance and Sons", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "accept", + "category": "fire", + "price": 803.54, + "stock_quantity": 431 + }, + "customer": { + "name": "Alyssa Smith", + "age": 62, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Alvarez, Adams and Bright", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "moment", + "category": "for", + "price": 732.98, + "stock_quantity": 772 + }, + "customer": { + "name": "Heidi Kane", + "age": 62, + "country": "Pitcairn Islands" + } + }, + { + "natural_query": "How many orders were placed for Bond, Carter and Parker between 2024-09-11 and 2024-09-11?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bond, Carter and Parker' AND order_date BETWEEN '2024-09-11' AND '2024-09-11'", + "company": { + "name": "Bond, Carter and Parker", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "sure", + "category": "social", + "price": 895.28, + "stock_quantity": 57 + }, + "customer": { + "name": "Jennifer May", + "age": 23, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Nguyen and Sons", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "campaign", + "category": "and", + "price": 504.56, + "stock_quantity": 450 + }, + "customer": { + "name": "John Smith", + "age": 19, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Snyder LLC", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "attack", + "category": "writer", + "price": 535.39, + "stock_quantity": 732 + }, + "customer": { + "name": "Julie Dixon", + "age": 62, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Baker Group", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "clearly", + "category": "including", + "price": 138.02, + "stock_quantity": 82 + }, + "customer": { + "name": "Phillip Hale", + "age": 59, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Anderson, Vincent and Santiago", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "rise", + "category": "air", + "price": 154.02, + "stock_quantity": 639 + }, + "customer": { + "name": "Mike Martin", + "age": 22, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Lloyd, Miller and Sanchez", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "might", + "category": "decade", + "price": 959.78, + "stock_quantity": 942 + }, + "customer": { + "name": "Stacy Frey", + "age": 45, + "country": "Myanmar" + } + }, + { + "natural_query": "How many orders were placed for Castro Ltd between 2024-03-17 and 2024-07-10?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Castro Ltd' AND order_date BETWEEN '2024-03-17' AND '2024-07-10'", + "company": { + "name": "Castro Ltd", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "relate", + "category": "article", + "price": 763.34, + "stock_quantity": 484 + }, + "customer": { + "name": "Mr. Alexander Everett", + "age": 63, + "country": "Madagascar" + } + }, + { + "natural_query": "What is the total sales for each category in Watts Group?", + "sql_query": "SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Watts Group' GROUP BY category ORDER BY total_sales DESC", + "company": { + "name": "Watts Group", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "prepare", + "category": "see", + "price": 428.77, + "stock_quantity": 830 + }, + "customer": { + "name": "Christina Bowman", + "age": 48, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Dixon-Torres", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "avoid", + "category": "college", + "price": 970.58, + "stock_quantity": 644 + }, + "customer": { + "name": "Angela Holt", + "age": 77, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Bond-Johnson", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "admit", + "category": "over", + "price": 939.39, + "stock_quantity": 115 + }, + "customer": { + "name": "Steven Lam", + "age": 49, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Davis-Peters", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "whatever", + "category": "get", + "price": 103.38, + "stock_quantity": 211 + }, + "customer": { + "name": "Cynthia Medina", + "age": 21, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Hernandez LLC", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "force", + "category": "responsibility", + "price": 49.07, + "stock_quantity": 635 + }, + "customer": { + "name": "Kendra Kim", + "age": 75, + "country": "Papua New Guinea" + } + }, + { + "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'", + "company": { + "name": "Lin and Sons", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "good", + "category": "adult", + "price": 401.62, + "stock_quantity": 86 + }, + "customer": { + "name": "Brian Miller", + "age": 80, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Parsons-Rodgers", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "another", + "category": "just", + "price": 332.8, + "stock_quantity": 55 + }, + "customer": { + "name": "Nicholas Miller", + "age": 54, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "natural_query": "How many orders were placed for Aguilar-Williams between 2023-12-16 and 2024-05-04?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Aguilar-Williams' AND order_date BETWEEN '2023-12-16' AND '2024-05-04'", + "company": { + "name": "Aguilar-Williams", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "official", + "category": "story", + "price": 783.16, + "stock_quantity": 453 + }, + "customer": { + "name": "Elizabeth Mullins", + "age": 80, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Valentine, Matthews and Bradford", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "phone", + "category": "idea", + "price": 167.62, + "stock_quantity": 782 + }, + "customer": { + "name": "Mark Jackson", + "age": 73, + "country": "Anguilla" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carter Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carter Group", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "even", + "category": "director", + "price": 113.13, + "stock_quantity": 913 + }, + "customer": { + "name": "Jessica Valencia", + "age": 21, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murphy, Hoffman and Kim'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murphy, Hoffman and Kim", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "agent", + "category": "could", + "price": 432.81, + "stock_quantity": 161 + }, + "customer": { + "name": "Kaylee Price", + "age": 51, + "country": "Mexico" + } + }, + { + "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'", + "company": { + "name": "Navarro, Warner and Mitchell", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "a", + "category": "must", + "price": 204.9, + "stock_quantity": 366 + }, + "customer": { + "name": "Judy Sanchez", + "age": 69, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Morrow-Burton", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "style", + "category": "capital", + "price": 294.73, + "stock_quantity": 561 + }, + "customer": { + "name": "Gregory Terrell", + "age": 32, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Krueger PLC", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "report", + "category": "conference", + "price": 887.36, + "stock_quantity": 667 + }, + "customer": { + "name": "Gregory Hickman", + "age": 20, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Jones, Macias and Moyer", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "something", + "category": "show", + "price": 361.01, + "stock_quantity": 364 + }, + "customer": { + "name": "Amanda Payne", + "age": 39, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Green and Sons", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "authority", + "category": "air", + "price": 216.81, + "stock_quantity": 83 + }, + "customer": { + "name": "Jamie Ruiz", + "age": 30, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Warren-Flynn", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "song", + "category": "perform", + "price": 687.13, + "stock_quantity": 144 + }, + "customer": { + "name": "Miguel Rice", + "age": 65, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Murphy-Mcintyre", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "else", + "category": "person", + "price": 924.23, + "stock_quantity": 625 + }, + "customer": { + "name": "Jacob Green", + "age": 53, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Pope, Scott and Swanson", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "adult", + "category": "want", + "price": 961.08, + "stock_quantity": 96 + }, + "customer": { + "name": "Anita Walker", + "age": 66, + "country": "Chad" + } + }, + { + "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'", + "company": { + "name": "Simmons, Beck and Phillips", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "would", + "category": "understand", + "price": 702.99, + "stock_quantity": 563 + }, + "customer": { + "name": "Kristie Green", + "age": 62, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Jefferson, Montoya and Green", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "station", + "category": "cultural", + "price": 347.27, + "stock_quantity": 562 + }, + "customer": { + "name": "Jessica Ramirez", + "age": 51, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Long Ltd", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "because", + "category": "affect", + "price": 267.52, + "stock_quantity": 696 + }, + "customer": { + "name": "Kelsey Taylor", + "age": 54, + "country": "Belize" + } + }, + { + "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'", + "company": { + "name": "Snyder-Thomas", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "continue", + "category": "lot", + "price": 370.14, + "stock_quantity": 703 + }, + "customer": { + "name": "Donna Martinez", + "age": 20, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Rasmussen and Perry", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "agent", + "category": "many", + "price": 579.76, + "stock_quantity": 516 + }, + "customer": { + "name": "Brittany Velasquez", + "age": 50, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Taylor Group", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "her", + "category": "simple", + "price": 96.86, + "stock_quantity": 659 + }, + "customer": { + "name": "Jessica Martin", + "age": 18, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Kim Group", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "choice", + "category": "agency", + "price": 529.67, + "stock_quantity": 133 + }, + "customer": { + "name": "Scott Wheeler", + "age": 71, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Schmidt Ltd", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "watch", + "category": "source", + "price": 356.68, + "stock_quantity": 839 + }, + "customer": { + "name": "Anthony Bradley", + "age": 72, + "country": "Iraq" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ballard Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ballard Ltd", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "common", + "category": "think", + "price": 828.83, + "stock_quantity": 278 + }, + "customer": { + "name": "Christine Johnson", + "age": 33, + "country": "Saudi Arabia" + } + }, + { + "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'", + "company": { + "name": "Warner PLC", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "amount", + "category": "role", + "price": 366.13, + "stock_quantity": 503 + }, + "customer": { + "name": "James Lewis", + "age": 37, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Ward, Diaz and Sims", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "check", + "category": "history", + "price": 739.28, + "stock_quantity": 946 + }, + "customer": { + "name": "Nicole Harrington", + "age": 33, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Collins, Morris and Ross", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "business", + "category": "add", + "price": 636.86, + "stock_quantity": 688 + }, + "customer": { + "name": "Lauren Dickson", + "age": 71, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Gonzales, Ramirez and Campbell", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "student", + "category": "himself", + "price": 81.12, + "stock_quantity": 19 + }, + "customer": { + "name": "Corey Allen", + "age": 51, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Andrews Group", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "modern", + "category": "whose", + "price": 534.97, + "stock_quantity": 584 + }, + "customer": { + "name": "Christina Simpson", + "age": 72, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Hughes Group", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "major", + "category": "film", + "price": 146.33, + "stock_quantity": 995 + }, + "customer": { + "name": "Brittany Oliver", + "age": 19, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Cross LLC", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "trade", + "category": "rest", + "price": 106.1, + "stock_quantity": 747 + }, + "customer": { + "name": "Jessica Hill", + "age": 35, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Warner and Sons", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "then", + "category": "ask", + "price": 452.55, + "stock_quantity": 207 + }, + "customer": { + "name": "Mrs. Sarah Chavez", + "age": 25, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Smith-Jacobs", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "simply", + "category": "then", + "price": 150.15, + "stock_quantity": 143 + }, + "customer": { + "name": "Stephen Rowland", + "age": 20, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Barron-Jenkins", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "election", + "category": "feeling", + "price": 309.26, + "stock_quantity": 989 + }, + "customer": { + "name": "Michael Garcia MD", + "age": 58, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Hayes-Coleman", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "section", + "category": "avoid", + "price": 927.43, + "stock_quantity": 648 + }, + "customer": { + "name": "Chad Torres", + "age": 39, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Stephens-Diaz", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "avoid", + "category": "actually", + "price": 48.94, + "stock_quantity": 980 + }, + "customer": { + "name": "Troy Bush", + "age": 45, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Jones, Bennett and Washington", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "Republican", + "category": "not", + "price": 34.41, + "stock_quantity": 799 + }, + "customer": { + "name": "Lauren Reeves", + "age": 44, + "country": "Fiji" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Myers, Walker and Matthews'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Myers, Walker and Matthews", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "read", + "category": "play", + "price": 283.73, + "stock_quantity": 527 + }, + "customer": { + "name": "Ryan Orr", + "age": 30, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Moody PLC", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "send", + "category": "either", + "price": 603.19, + "stock_quantity": 867 + }, + "customer": { + "name": "Yvette Steele", + "age": 36, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Moreno-Donovan", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "affect", + "category": "write", + "price": 64.04, + "stock_quantity": 952 + }, + "customer": { + "name": "Matthew Johnson", + "age": 24, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Flores and Sons", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "or", + "category": "thing", + "price": 615.54, + "stock_quantity": 533 + }, + "customer": { + "name": "Maria Porter", + "age": 80, + "country": "Kiribati" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Young-Hernandez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Young-Hernandez", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "speak", + "category": "same", + "price": 37.09, + "stock_quantity": 571 + }, + "customer": { + "name": "Carrie Simmons", + "age": 64, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Elliott-Kane", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "ground", + "category": "build", + "price": 207.66, + "stock_quantity": 195 + }, + "customer": { + "name": "Joseph Chandler", + "age": 23, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Velazquez and Sons", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "nor", + "category": "capital", + "price": 435.06, + "stock_quantity": 893 + }, + "customer": { + "name": "Jeffrey Allen", + "age": 75, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Adams PLC", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "a", + "category": "network", + "price": 682.22, + "stock_quantity": 459 + }, + "customer": { + "name": "Patrick Lewis", + "age": 40, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Osborne, Lopez and Martinez", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "exactly", + "category": "control", + "price": 103.46, + "stock_quantity": 495 + }, + "customer": { + "name": "Richard Ward", + "age": 42, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Gardner-Weber", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "occur", + "category": "remember", + "price": 28.58, + "stock_quantity": 133 + }, + "customer": { + "name": "Aaron Wilson", + "age": 54, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Simmons-Edwards", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "sense", + "category": "short", + "price": 872.8, + "stock_quantity": 418 + }, + "customer": { + "name": "Andrew Smith", + "age": 30, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Hanna, Johnson and Cole", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "contain", + "category": "including", + "price": 664.18, + "stock_quantity": 944 + }, + "customer": { + "name": "Steven Conley", + "age": 76, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Perry-King", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "position", + "category": "least", + "price": 598.42, + "stock_quantity": 352 + }, + "customer": { + "name": "Francisco Wang", + "age": 31, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Pena Group", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "point", + "category": "somebody", + "price": 664.34, + "stock_quantity": 345 + }, + "customer": { + "name": "Daniel Roberts", + "age": 74, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Andrews LLC", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "experience", + "category": "bill", + "price": 366.51, + "stock_quantity": 288 + }, + "customer": { + "name": "Olivia Allen", + "age": 62, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Curry-Lopez", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "act", + "category": "vote", + "price": 907.84, + "stock_quantity": 654 + }, + "customer": { + "name": "Cathy Spence", + "age": 71, + "country": "Papua New Guinea" + } + }, + { + "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'", + "company": { + "name": "Vance, Martin and Flowers", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "crime", + "category": "case", + "price": 46.72, + "stock_quantity": 612 + }, + "customer": { + "name": "Thomas Villa", + "age": 68, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Robinson, Short and Flores", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "loss", + "category": "never", + "price": 749.01, + "stock_quantity": 567 + }, + "customer": { + "name": "Carolyn Berger", + "age": 28, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Bryan Group", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "government", + "category": "today", + "price": 845.33, + "stock_quantity": 966 + }, + "customer": { + "name": "Jennifer Rice", + "age": 65, + "country": "United States Minor Outlying Islands" + } + }, + { + "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'", + "company": { + "name": "Lee, Andrews and Lowery", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "contain", + "category": "dream", + "price": 71.75, + "stock_quantity": 411 + }, + "customer": { + "name": "Amy Rojas", + "age": 48, + "country": "Bolivia" + } + }, + { + "natural_query": "List all products of Carrillo Ltd ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Carrillo Ltd' ORDER BY stock_quantity DESC", + "company": { + "name": "Carrillo Ltd", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "music", + "category": "order", + "price": 129.51, + "stock_quantity": 690 + }, + "customer": { + "name": "Catherine Sanchez", + "age": 38, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Bishop-Werner", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "stop", + "category": "tell", + "price": 990.92, + "stock_quantity": 895 + }, + "customer": { + "name": "Matthew Steele", + "age": 57, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Berry, Lopez and Thomas", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "political", + "category": "whose", + "price": 592.04, + "stock_quantity": 77 + }, + "customer": { + "name": "Julie Roberson", + "age": 53, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Blevins LLC", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "war", + "category": "second", + "price": 766.52, + "stock_quantity": 835 + }, + "customer": { + "name": "Zachary Bauer", + "age": 30, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Sellers-Lamb", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "ask", + "category": "floor", + "price": 466.88, + "stock_quantity": 916 + }, + "customer": { + "name": "Billy Case", + "age": 32, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Jordan PLC", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "again", + "category": "music", + "price": 699.32, + "stock_quantity": 763 + }, + "customer": { + "name": "Janet Bennett", + "age": 29, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Roach and Sons", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "during", + "category": "difficult", + "price": 194.32, + "stock_quantity": 11 + }, + "customer": { + "name": "Briana Tucker", + "age": 77, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Carter and Sons", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "human", + "category": "peace", + "price": 747.62, + "stock_quantity": 489 + }, + "customer": { + "name": "Jerome Garcia", + "age": 69, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hayes, Green and Perez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hayes, Green and Perez", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "right", + "category": "prevent", + "price": 500.66, + "stock_quantity": 300 + }, + "customer": { + "name": "Melissa Brooks", + "age": 32, + "country": "Madagascar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Navarro, Carney and Hines'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Navarro, Carney and Hines", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "exist", + "category": "trouble", + "price": 268.19, + "stock_quantity": 181 + }, + "customer": { + "name": "Ashley Berry", + "age": 55, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "French, Payne and Matthews", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "turn", + "category": "former", + "price": 459.42, + "stock_quantity": 112 + }, + "customer": { + "name": "Theresa Duran", + "age": 32, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Phelps and Sons", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "modern", + "category": "method", + "price": 66.69, + "stock_quantity": 999 + }, + "customer": { + "name": "William Wilkins", + "age": 69, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Johnson Inc", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "Mr", + "category": "necessary", + "price": 256.37, + "stock_quantity": 28 + }, + "customer": { + "name": "Jennifer Hernandez", + "age": 67, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Lopez LLC", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "ever", + "category": "majority", + "price": 439.71, + "stock_quantity": 45 + }, + "customer": { + "name": "Jeremy Dean", + "age": 80, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Phillips, Patton and Vasquez", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "result", + "category": "have", + "price": 523.97, + "stock_quantity": 129 + }, + "customer": { + "name": "Gregory Parrish", + "age": 26, + "country": "United States Minor Outlying Islands" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Hernandez, Ray and Hudson for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez, Ray and Hudson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez, Ray and Hudson", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "throw", + "category": "city", + "price": 343.58, + "stock_quantity": 195 + }, + "customer": { + "name": "Brandon Griffin", + "age": 51, + "country": "Jersey" + } + }, + { + "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'", + "company": { + "name": "Howard, Lowe and York", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "cell", + "category": "show", + "price": 185.24, + "stock_quantity": 673 + }, + "customer": { + "name": "Luke Moore", + "age": 67, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Beard-Castaneda", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "same", + "category": "unit", + "price": 573.54, + "stock_quantity": 155 + }, + "customer": { + "name": "Eric Coleman", + "age": 51, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Medina-Hernandez", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "similar", + "category": "catch", + "price": 702.12, + "stock_quantity": 168 + }, + "customer": { + "name": "Darren Solis", + "age": 30, + "country": "Dominica" + } + }, + { + "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'", + "company": { + "name": "Chandler and Sons", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "political", + "category": "down", + "price": 672.29, + "stock_quantity": 773 + }, + "customer": { + "name": "John Cole", + "age": 64, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Patterson PLC", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "section", + "category": "market", + "price": 341.63, + "stock_quantity": 360 + }, + "customer": { + "name": "Angela Cook", + "age": 79, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Clarke PLC", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "pick", + "category": "leave", + "price": 624.68, + "stock_quantity": 117 + }, + "customer": { + "name": "Wyatt Silva", + "age": 51, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "government", + "category": "source", + "price": 839.68, + "stock_quantity": 593 + }, + "customer": { + "name": "Julie Fleming", + "age": 62, + "country": "Tonga" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hill Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hill Inc", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "most", + "category": "spring", + "price": 470.5, + "stock_quantity": 793 + }, + "customer": { + "name": "Benjamin Aguilar", + "age": 79, + "country": "Syrian Arab Republic" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Wallace, Cuevas and Adams for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wallace, Cuevas and Adams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wallace, Cuevas and Adams", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "majority", + "category": "speak", + "price": 845.84, + "stock_quantity": 853 + }, + "customer": { + "name": "Lisa Jenkins", + "age": 47, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "King PLC", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "public", + "category": "particularly", + "price": 527.72, + "stock_quantity": 443 + }, + "customer": { + "name": "Vincent Wright", + "age": 27, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Carr PLC", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "prevent", + "category": "thus", + "price": 957.87, + "stock_quantity": 189 + }, + "customer": { + "name": "Kari Mitchell", + "age": 80, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frank, Perez and Cooper'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frank, Perez and Cooper", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "whom", + "category": "center", + "price": 550.9, + "stock_quantity": 614 + }, + "customer": { + "name": "Mr. Chris Wilson", + "age": 27, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Oliver-Taylor", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "power", + "category": "scientist", + "price": 147.42, + "stock_quantity": 416 + }, + "customer": { + "name": "Lisa Bray", + "age": 24, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Fisher Group", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "impact", + "category": "machine", + "price": 611.7, + "stock_quantity": 558 + }, + "customer": { + "name": "Paige Hunt", + "age": 70, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Williamson, Mason and Fernandez", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "spring", + "category": "foot", + "price": 720.95, + "stock_quantity": 945 + }, + "customer": { + "name": "Michael Smith", + "age": 48, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Brown Group", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "traditional", + "category": "she", + "price": 588.33, + "stock_quantity": 709 + }, + "customer": { + "name": "Kyle Noble", + "age": 21, + "country": "Saint Martin" + } + }, + { + "natural_query": "What are the top 10 products by revenue for Osborn-Smith this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Osborn-Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10", + "company": { + "name": "Osborn-Smith", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "check", + "category": "already", + "price": 968.49, + "stock_quantity": 194 + }, + "customer": { + "name": "Catherine Jensen DVM", + "age": 22, + "country": "Grenada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gonzalez Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gonzalez Group", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "push", + "category": "result", + "price": 552.19, + "stock_quantity": 197 + }, + "customer": { + "name": "Donna Silva", + "age": 59, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Bennett Ltd", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "Congress", + "category": "nation", + "price": 952.59, + "stock_quantity": 827 + }, + "customer": { + "name": "Jeffrey Reyes", + "age": 51, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Friedman and Sons", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "these", + "category": "stay", + "price": 809.63, + "stock_quantity": 870 + }, + "customer": { + "name": "Deborah Parks", + "age": 68, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Barajas PLC", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "good", + "category": "house", + "price": 705.67, + "stock_quantity": 446 + }, + "customer": { + "name": "Edwin Russell", + "age": 57, + "country": "Dominican Republic" + } + }, + { + "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'", + "company": { + "name": "Taylor, Kaufman and Nelson", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "reason", + "category": "accept", + "price": 448.69, + "stock_quantity": 425 + }, + "customer": { + "name": "Erica Rivera", + "age": 33, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Wilson, Garcia and Ellis", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "wind", + "category": "indicate", + "price": 638.2, + "stock_quantity": 426 + }, + "customer": { + "name": "Kristin Murray", + "age": 27, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Perry, Ayala and Zamora", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "every", + "category": "teach", + "price": 677.09, + "stock_quantity": 172 + }, + "customer": { + "name": "Kenneth Munoz", + "age": 57, + "country": "Micronesia" + } + }, + { + "natural_query": "What is the average rating of all products for Wright-Anderson?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Wright-Anderson'", + "company": { + "name": "Wright-Anderson", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "cost", + "category": "time", + "price": 753.31, + "stock_quantity": 48 + }, + "customer": { + "name": "John Baker", + "age": 22, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcdonald PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcdonald PLC", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "use", + "category": "never", + "price": 342.52, + "stock_quantity": 347 + }, + "customer": { + "name": "Stacy Hill", + "age": 41, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Ortega-Williams", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "my", + "category": "play", + "price": 249.61, + "stock_quantity": 5 + }, + "customer": { + "name": "Patrick Cooper", + "age": 45, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Becker, Rodriguez and Townsend", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "stock", + "category": "stay", + "price": 55.27, + "stock_quantity": 992 + }, + "customer": { + "name": "Jessica Kim", + "age": 35, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Chavez Ltd", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "never", + "category": "relationship", + "price": 114.91, + "stock_quantity": 47 + }, + "customer": { + "name": "Mary Jones", + "age": 58, + "country": "Bermuda" + } + }, + { + "natural_query": "Show me all products in the how category with a price over $803.65.", + "sql_query": "SELECT * FROM products WHERE category = 'how' AND price > 803.65", + "company": { + "name": "Beck-Huang", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "environmental", + "category": "how", + "price": 803.65, + "stock_quantity": 74 + }, + "customer": { + "name": "Bonnie Austin", + "age": 31, + "country": "Afghanistan" + } + }, + { + "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'", + "company": { + "name": "Navarro-Harmon", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "power", + "category": "explain", + "price": 984.17, + "stock_quantity": 138 + }, + "customer": { + "name": "Jeffrey Martinez", + "age": 50, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Avila, Hensley and Thomas", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "participant", + "category": "provide", + "price": 193.89, + "stock_quantity": 781 + }, + "customer": { + "name": "Raymond Stephens", + "age": 50, + "country": "Egypt" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rhodes Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rhodes Inc", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "eat", + "category": "hope", + "price": 123.24, + "stock_quantity": 594 + }, + "customer": { + "name": "Linda Hawkins", + "age": 77, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Smith-Lopez", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "world", + "category": "police", + "price": 565.55, + "stock_quantity": 442 + }, + "customer": { + "name": "Kelly Vargas", + "age": 53, + "country": "Uruguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Armstrong, Torres and Odonnell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Armstrong, Torres and Odonnell", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "hand", + "category": "here", + "price": 320.38, + "stock_quantity": 541 + }, + "customer": { + "name": "Christian Ferguson", + "age": 56, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Brooks Group", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "happen", + "category": "home", + "price": 670.78, + "stock_quantity": 158 + }, + "customer": { + "name": "Christopher Smith", + "age": 69, + "country": "French Guiana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roberts Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roberts Group", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "yeah", + "category": "five", + "price": 975.17, + "stock_quantity": 777 + }, + "customer": { + "name": "Renee Willis", + "age": 47, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Phillips and Sons", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "reduce", + "category": "still", + "price": 451.74, + "stock_quantity": 756 + }, + "customer": { + "name": "Steve Alvarez", + "age": 50, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Sharp, Tapia and Branch", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "some", + "category": "try", + "price": 556.23, + "stock_quantity": 908 + }, + "customer": { + "name": "Dawn Rodriguez", + "age": 25, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Mcclain, Brown and Peters", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "follow", + "category": "art", + "price": 469.09, + "stock_quantity": 64 + }, + "customer": { + "name": "Monica Bradley", + "age": 34, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Brown-Roberts", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "sure", + "category": "foot", + "price": 76.35, + "stock_quantity": 852 + }, + "customer": { + "name": "Mike Giles", + "age": 72, + "country": "Estonia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Webb, Trujillo and Brown for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Webb, Trujillo and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Webb, Trujillo and Brown", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "believe", + "category": "cut", + "price": 447.43, + "stock_quantity": 398 + }, + "customer": { + "name": "Tanya Cervantes", + "age": 55, + "country": "Cape Verde" + } + }, + { + "natural_query": "List all products of Morse, Sawyer and Valencia ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Morse, Sawyer and Valencia' ORDER BY price ASC", + "company": { + "name": "Morse, Sawyer and Valencia", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "people", + "category": "would", + "price": 735.38, + "stock_quantity": 612 + }, + "customer": { + "name": "Brett Jones", + "age": 54, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Brown Group", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "arrive", + "category": "notice", + "price": 276.19, + "stock_quantity": 892 + }, + "customer": { + "name": "Robert Brock", + "age": 50, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Bass Inc", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "hope", + "category": "make", + "price": 803.16, + "stock_quantity": 184 + }, + "customer": { + "name": "Joseph Mitchell", + "age": 57, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Crawford-Mclaughlin", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "threat", + "category": "analysis", + "price": 599.08, + "stock_quantity": 545 + }, + "customer": { + "name": "Sally Richards", + "age": 55, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Black, Mora and Huber", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "herself", + "category": "pretty", + "price": 602.76, + "stock_quantity": 743 + }, + "customer": { + "name": "Charles Jones", + "age": 20, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Allison, White and Smith", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "notice", + "category": "early", + "price": 771.2, + "stock_quantity": 969 + }, + "customer": { + "name": "Jessica Green", + "age": 76, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Carter-Smith", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "pay", + "category": "language", + "price": 606.67, + "stock_quantity": 496 + }, + "customer": { + "name": "Maria Finley", + "age": 31, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Guzman Inc", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "send", + "category": "home", + "price": 144.77, + "stock_quantity": 5 + }, + "customer": { + "name": "Heather Mcfarland", + "age": 36, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Alvarez, Rich and Stewart", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "do", + "category": "well", + "price": 719.64, + "stock_quantity": 535 + }, + "customer": { + "name": "Christopher Heath", + "age": 80, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Kirby, Gill and Freeman", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "hear", + "category": "get", + "price": 315.86, + "stock_quantity": 987 + }, + "customer": { + "name": "Nicholas Ryan", + "age": 68, + "country": "Seychelles" + } + }, + { + "natural_query": "How many orders were placed for Martinez, Munoz and Hooper between 2024-05-06 and 2024-05-14?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martinez, Munoz and Hooper' AND order_date BETWEEN '2024-05-06' AND '2024-05-14'", + "company": { + "name": "Martinez, Munoz and Hooper", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "paper", + "category": "own", + "price": 344.57, + "stock_quantity": 968 + }, + "customer": { + "name": "Jonathan Chapman", + "age": 33, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Hall-Barnes", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "thought", + "category": "member", + "price": 458.21, + "stock_quantity": 94 + }, + "customer": { + "name": "Jasmine Barr", + "age": 38, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "author", + "category": "significant", + "price": 945.94, + "stock_quantity": 193 + }, + "customer": { + "name": "David Thomas", + "age": 61, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Jones-Bryan", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "key", + "category": "hour", + "price": 996.72, + "stock_quantity": 79 + }, + "customer": { + "name": "Steven Reese", + "age": 18, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Smith, Foley and Spencer", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "attorney", + "category": "second", + "price": 323.61, + "stock_quantity": 125 + }, + "customer": { + "name": "Michelle Martin", + "age": 63, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Austin and Sons", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "finish", + "category": "kind", + "price": 409.31, + "stock_quantity": 794 + }, + "customer": { + "name": "Mark Wright", + "age": 72, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Blevins-Nelson", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "ten", + "category": "simply", + "price": 402.34, + "stock_quantity": 276 + }, + "customer": { + "name": "Angel Evans", + "age": 51, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Nelson, Navarro and Walsh", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "girl", + "category": "interest", + "price": 429.51, + "stock_quantity": 875 + }, + "customer": { + "name": "Olivia Sutton", + "age": 27, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Brown and Carter", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "two", + "category": "class", + "price": 699.48, + "stock_quantity": 933 + }, + "customer": { + "name": "Debra Banks", + "age": 49, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Lewis, Smith and Gibbs", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "person", + "category": "with", + "price": 130.78, + "stock_quantity": 300 + }, + "customer": { + "name": "Christopher Mitchell", + "age": 76, + "country": "France" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Reese LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reese LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reese LLC", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "lose", + "category": "describe", + "price": 187.64, + "stock_quantity": 136 + }, + "customer": { + "name": "Scott Bennett", + "age": 50, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Ellison-May", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "member", + "category": "center", + "price": 476.19, + "stock_quantity": 641 + }, + "customer": { + "name": "Justin Anderson", + "age": 40, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Conley Ltd", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "give", + "category": "laugh", + "price": 888.83, + "stock_quantity": 813 + }, + "customer": { + "name": "Robert Walker", + "age": 19, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Swanson, Becker and Miller", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "skill", + "category": "thus", + "price": 987.02, + "stock_quantity": 238 + }, + "customer": { + "name": "Sara Duarte", + "age": 79, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Gillespie PLC", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "kitchen", + "category": "join", + "price": 229.9, + "stock_quantity": 767 + }, + "customer": { + "name": "Levi Gregory", + "age": 31, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Gonzales Group", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "relate", + "category": "boy", + "price": 131.23, + "stock_quantity": 904 + }, + "customer": { + "name": "Christine Shaffer", + "age": 31, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Smith Ltd", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "turn", + "category": "coach", + "price": 964.21, + "stock_quantity": 301 + }, + "customer": { + "name": "Joseph Brown", + "age": 39, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Watkins and Sons", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "now", + "category": "issue", + "price": 883.18, + "stock_quantity": 724 + }, + "customer": { + "name": "Brandon Brown", + "age": 71, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Mejia, Dawson and Simon", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "although", + "category": "drug", + "price": 807.85, + "stock_quantity": 161 + }, + "customer": { + "name": "Eric Hicks", + "age": 51, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Smith and Sons", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "general", + "category": "as", + "price": 647.03, + "stock_quantity": 970 + }, + "customer": { + "name": "Michael Jefferson", + "age": 29, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Allen-Morrison", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "recently", + "category": "training", + "price": 916.7, + "stock_quantity": 357 + }, + "customer": { + "name": "Danielle Duran", + "age": 35, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Rush, Ponce and Turner", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "us", + "category": "agent", + "price": 504.18, + "stock_quantity": 892 + }, + "customer": { + "name": "Linda Soto", + "age": 80, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Miller-Farrell", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "miss", + "category": "establish", + "price": 667.91, + "stock_quantity": 436 + }, + "customer": { + "name": "Alexandria Jordan", + "age": 41, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Campbell PLC", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "fly", + "category": "focus", + "price": 102.96, + "stock_quantity": 310 + }, + "customer": { + "name": "Wanda Abbott", + "age": 20, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Dudley, Ryan and Murray", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "mission", + "category": "conference", + "price": 59.93, + "stock_quantity": 99 + }, + "customer": { + "name": "Kevin Perez", + "age": 62, + "country": "Korea" + } + }, + { + "natural_query": "List all customers and their total order value for Reynolds, Benton and Johnson.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Reynolds, Benton and Johnson' GROUP BY c.customer_id", + "company": { + "name": "Reynolds, Benton and Johnson", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "analysis", + "category": "wait", + "price": 148.56, + "stock_quantity": 200 + }, + "customer": { + "name": "Brian Santiago", + "age": 62, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Walters LLC", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "room", + "category": "letter", + "price": 533.62, + "stock_quantity": 63 + }, + "customer": { + "name": "Savannah Brown", + "age": 42, + "country": "Namibia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Avery-Casey'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Avery-Casey", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "consumer", + "category": "take", + "price": 963.24, + "stock_quantity": 339 + }, + "customer": { + "name": "Suzanne Taylor", + "age": 44, + "country": "Namibia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Armstrong-Franco'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Armstrong-Franco", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "like", + "category": "similar", + "price": 754.43, + "stock_quantity": 356 + }, + "customer": { + "name": "Dwayne Russell", + "age": 18, + "country": "Tunisia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Patrick, Hernandez and Mclean'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Patrick, Hernandez and Mclean", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "building", + "category": "American", + "price": 978.54, + "stock_quantity": 572 + }, + "customer": { + "name": "Gerald Dudley", + "age": 28, + "country": "France" + } + }, + { + "natural_query": "List all customers and their total order value for Harris-Meyer.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Harris-Meyer' GROUP BY c.customer_id", + "company": { + "name": "Harris-Meyer", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "hospital", + "category": "employee", + "price": 928.19, + "stock_quantity": 285 + }, + "customer": { + "name": "Eric Torres", + "age": 53, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Baker Inc", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "last", + "category": "story", + "price": 60.86, + "stock_quantity": 756 + }, + "customer": { + "name": "Steven Hubbard", + "age": 28, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Gomez, Davis and Hall", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "TV", + "category": "seem", + "price": 707.24, + "stock_quantity": 280 + }, + "customer": { + "name": "Ricky Shannon", + "age": 74, + "country": "Singapore" + } + }, + { + "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'", + "company": { + "name": "Davis-Austin", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "benefit", + "category": "detail", + "price": 742.55, + "stock_quantity": 167 + }, + "customer": { + "name": "Jessica White", + "age": 47, + "country": "United States Minor Outlying Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cruz, Johnson and Murray'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cruz, Johnson and Murray", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "scene", + "category": "would", + "price": 932.22, + "stock_quantity": 829 + }, + "customer": { + "name": "Morgan Gonzalez", + "age": 26, + "country": "Vanuatu" + } + }, + { + "natural_query": "List all customers and their total order value for George, Palmer and Cox.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'George, Palmer and Cox' GROUP BY c.customer_id", + "company": { + "name": "George, Palmer and Cox", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "sit", + "category": "measure", + "price": 870.29, + "stock_quantity": 836 + }, + "customer": { + "name": "Julie Rhodes", + "age": 50, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Nguyen-Wright", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "their", + "category": "agency", + "price": 276.87, + "stock_quantity": 442 + }, + "customer": { + "name": "Thomas Garcia", + "age": 41, + "country": "Djibouti" + } + }, + { + "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'", + "company": { + "name": "Martin-Avila", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "source", + "category": "military", + "price": 214.11, + "stock_quantity": 343 + }, + "customer": { + "name": "Robert Davis", + "age": 19, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Sampson-Allen", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "couple", + "category": "against", + "price": 888.8, + "stock_quantity": 224 + }, + "customer": { + "name": "Caroline Ortiz", + "age": 21, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Swanson-King", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "season", + "category": "over", + "price": 826.59, + "stock_quantity": 453 + }, + "customer": { + "name": "David Jones", + "age": 41, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Butler, Hodges and Phillips", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "that", + "category": "million", + "price": 312.78, + "stock_quantity": 720 + }, + "customer": { + "name": "Maria Leonard", + "age": 18, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Bauer Group", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "against", + "category": "cut", + "price": 957.55, + "stock_quantity": 392 + }, + "customer": { + "name": "Cheyenne Hughes", + "age": 18, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Costa Inc", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "area", + "category": "quite", + "price": 477.01, + "stock_quantity": 5 + }, + "customer": { + "name": "John Hernandez", + "age": 43, + "country": "Germany" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mathews-Livingston'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mathews-Livingston", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "summer", + "category": "every", + "price": 603.14, + "stock_quantity": 371 + }, + "customer": { + "name": "David Martinez", + "age": 73, + "country": "Maldives" + } + }, + { + "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'", + "company": { + "name": "Middleton-Peterson", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "nice", + "category": "character", + "price": 917.78, + "stock_quantity": 448 + }, + "customer": { + "name": "Vicki Carlson", + "age": 59, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Eaton, Brown and Drake", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "develop", + "category": "order", + "price": 65.74, + "stock_quantity": 557 + }, + "customer": { + "name": "Jean Callahan", + "age": 56, + "country": "Ukraine" + } + }, + { + "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'", + "company": { + "name": "Gonzalez-Rodriguez", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "human", + "category": "age", + "price": 536.52, + "stock_quantity": 811 + }, + "customer": { + "name": "Gary Petersen", + "age": 60, + "country": "Malawi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'James PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "James PLC", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "local", + "category": "mouth", + "price": 296.63, + "stock_quantity": 517 + }, + "customer": { + "name": "Kelsey Perez", + "age": 49, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "King, Brown and Moore", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "various", + "category": "option", + "price": 624.8, + "stock_quantity": 425 + }, + "customer": { + "name": "Kyle Walter", + "age": 52, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Hodge and Sons", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "cover", + "category": "his", + "price": 288.71, + "stock_quantity": 623 + }, + "customer": { + "name": "Cole Smith", + "age": 26, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Evans, Romero and Rivera", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "buy", + "category": "second", + "price": 881.32, + "stock_quantity": 886 + }, + "customer": { + "name": "Andrew Hernandez", + "age": 78, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Wells and Morris", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "alone", + "category": "large", + "price": 263.76, + "stock_quantity": 669 + }, + "customer": { + "name": "Wesley Pearson", + "age": 63, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Howard-Gilbert", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "it", + "category": "show", + "price": 952.26, + "stock_quantity": 730 + }, + "customer": { + "name": "Joseph Campbell", + "age": 73, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Osborne PLC", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "modern", + "category": "lose", + "price": 240.82, + "stock_quantity": 900 + }, + "customer": { + "name": "Wesley Ballard DVM", + "age": 78, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Smith LLC", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "pattern", + "category": "although", + "price": 517.74, + "stock_quantity": 688 + }, + "customer": { + "name": "Katie Garcia", + "age": 49, + "country": "French Guiana" + } + }, + { + "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'", + "company": { + "name": "Arellano PLC", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "sport", + "category": "mention", + "price": 174.58, + "stock_quantity": 75 + }, + "customer": { + "name": "Joseph Harris", + "age": 80, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Simon, Bartlett and Levy", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "address", + "category": "race", + "price": 696.55, + "stock_quantity": 986 + }, + "customer": { + "name": "Sarah Kim", + "age": 51, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Wallace, Davis and Frazier", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "realize", + "category": "media", + "price": 251.47, + "stock_quantity": 76 + }, + "customer": { + "name": "Cindy Bell", + "age": 64, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Coffey-Jones", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "fund", + "category": "show", + "price": 337.77, + "stock_quantity": 655 + }, + "customer": { + "name": "Sean Smith", + "age": 62, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Peters LLC", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "by", + "category": "land", + "price": 780.62, + "stock_quantity": 809 + }, + "customer": { + "name": "Jessica Turner", + "age": 78, + "country": "Ukraine" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pierce-Bowman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pierce-Bowman", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "per", + "category": "buy", + "price": 612.4, + "stock_quantity": 710 + }, + "customer": { + "name": "Pamela Mora", + "age": 40, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Patel, Johnson and Mitchell", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "majority", + "category": "third", + "price": 703.65, + "stock_quantity": 429 + }, + "customer": { + "name": "Ashley Moore", + "age": 34, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Clark PLC", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "animal", + "category": "appear", + "price": 435.08, + "stock_quantity": 64 + }, + "customer": { + "name": "Jason Nelson", + "age": 18, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Logan, Villanueva and Clark", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "her", + "category": "surface", + "price": 964.06, + "stock_quantity": 930 + }, + "customer": { + "name": "Vanessa Blevins", + "age": 65, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Willis-Coleman", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "why", + "category": "option", + "price": 120.25, + "stock_quantity": 972 + }, + "customer": { + "name": "Gabriel Wallace", + "age": 62, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Villanueva-Graham", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "specific", + "category": "section", + "price": 628.24, + "stock_quantity": 246 + }, + "customer": { + "name": "Lindsay Adams", + "age": 34, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Murphy, Whitaker and Morales", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "example", + "category": "all", + "price": 250.39, + "stock_quantity": 220 + }, + "customer": { + "name": "Joel Ortiz", + "age": 29, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Payne-Ramirez", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "network", + "category": "issue", + "price": 310.79, + "stock_quantity": 100 + }, + "customer": { + "name": "Brenda Green", + "age": 74, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Lopez LLC", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "bank", + "category": "win", + "price": 556.55, + "stock_quantity": 691 + }, + "customer": { + "name": "Rebecca Anderson", + "age": 69, + "country": "Guadeloupe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moore, Nunez and Washington'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moore, Nunez and Washington", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "will", + "category": "already", + "price": 737.24, + "stock_quantity": 943 + }, + "customer": { + "name": "Timothy Smith", + "age": 49, + "country": "Congo" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Ortiz Ltd for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ortiz Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ortiz Ltd", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "than", + "category": "experience", + "price": 572.0, + "stock_quantity": 721 + }, + "customer": { + "name": "Theresa Simon", + "age": 41, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Yu Inc", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "care", + "category": "side", + "price": 463.65, + "stock_quantity": 55 + }, + "customer": { + "name": "Michelle Romero", + "age": 73, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Anderson-Armstrong", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "energy", + "category": "life", + "price": 976.08, + "stock_quantity": 638 + }, + "customer": { + "name": "Bruce Hess", + "age": 69, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Carter LLC", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "culture", + "category": "response", + "price": 194.26, + "stock_quantity": 830 + }, + "customer": { + "name": "Benjamin Middleton", + "age": 36, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Stevenson-Williams", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "society", + "category": "fast", + "price": 426.38, + "stock_quantity": 492 + }, + "customer": { + "name": "William Simpson", + "age": 67, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Johnson Group", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "wonder", + "category": "method", + "price": 696.82, + "stock_quantity": 509 + }, + "customer": { + "name": "Stacy Allen", + "age": 37, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Arnold, Parker and Thomas", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "analysis", + "category": "keep", + "price": 664.51, + "stock_quantity": 849 + }, + "customer": { + "name": "Chad Gill", + "age": 56, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Hansen, Richardson and Weaver", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "thing", + "category": "her", + "price": 226.65, + "stock_quantity": 972 + }, + "customer": { + "name": "Zachary Murphy", + "age": 42, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Morales, Ross and Cox", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "nice", + "category": "message", + "price": 610.96, + "stock_quantity": 409 + }, + "customer": { + "name": "Tyler Mitchell", + "age": 54, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Richards, Cordova and Taylor", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "hand", + "category": "buy", + "price": 119.26, + "stock_quantity": 409 + }, + "customer": { + "name": "Christina Chavez", + "age": 40, + "country": "Jersey" + } + }, + { + "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'", + "company": { + "name": "Meyer, Richard and Harris", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "drive", + "category": "cultural", + "price": 340.78, + "stock_quantity": 435 + }, + "customer": { + "name": "Jonathan Smith", + "age": 36, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Chang, Aguirre and Bauer", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "heart", + "category": "apply", + "price": 696.98, + "stock_quantity": 939 + }, + "customer": { + "name": "Cheyenne Foster", + "age": 30, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Holland-Peck", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "administration", + "category": "admit", + "price": 812.7, + "stock_quantity": 121 + }, + "customer": { + "name": "Laura Davis", + "age": 63, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Ellis, Conner and Holland", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "know", + "category": "small", + "price": 198.19, + "stock_quantity": 659 + }, + "customer": { + "name": "Joseph Guerrero", + "age": 46, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Thompson LLC", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "less", + "category": "act", + "price": 263.28, + "stock_quantity": 214 + }, + "customer": { + "name": "Cheryl Gentry", + "age": 56, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Hubbard-Stout", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "off", + "category": "yeah", + "price": 538.76, + "stock_quantity": 454 + }, + "customer": { + "name": "Amy Nichols", + "age": 43, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Wallace-Mitchell", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "their", + "category": "now", + "price": 87.47, + "stock_quantity": 396 + }, + "customer": { + "name": "Elizabeth Farley", + "age": 54, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Sherman, Wilson and Chan", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "safe", + "category": "its", + "price": 427.57, + "stock_quantity": 883 + }, + "customer": { + "name": "Dawn Ramirez", + "age": 65, + "country": "Egypt" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fitzgerald, Davis and Peterson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fitzgerald, Davis and Peterson", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "front", + "category": "simply", + "price": 647.38, + "stock_quantity": 949 + }, + "customer": { + "name": "Leslie Wright", + "age": 30, + "country": "Malaysia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Ferguson Inc for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ferguson Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ferguson Inc", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "another", + "category": "you", + "price": 938.02, + "stock_quantity": 487 + }, + "customer": { + "name": "Richard Phillips", + "age": 34, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Small Group", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "current", + "category": "nice", + "price": 504.25, + "stock_quantity": 106 + }, + "customer": { + "name": "Derrick Pacheco", + "age": 18, + "country": "Mexico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carpenter LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carpenter LLC", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "entire", + "category": "production", + "price": 50.93, + "stock_quantity": 195 + }, + "customer": { + "name": "Courtney Smith", + "age": 18, + "country": "Dominican Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'James Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "James Ltd", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "bag", + "category": "determine", + "price": 98.28, + "stock_quantity": 533 + }, + "customer": { + "name": "Ernest Johnson", + "age": 52, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Maddox Ltd", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "simply", + "category": "tree", + "price": 508.23, + "stock_quantity": 57 + }, + "customer": { + "name": "Mark Mccullough", + "age": 28, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Smith-Navarro", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "economic", + "category": "keep", + "price": 730.21, + "stock_quantity": 683 + }, + "customer": { + "name": "Sara Hudson", + "age": 71, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Jones-Alvarado", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "central", + "category": "trip", + "price": 874.87, + "stock_quantity": 559 + }, + "customer": { + "name": "Cory Bautista", + "age": 70, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Edwards-Kelly", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "wall", + "category": "most", + "price": 291.04, + "stock_quantity": 364 + }, + "customer": { + "name": "Nathan Roach", + "age": 72, + "country": "Namibia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brooks-Mccarthy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brooks-Mccarthy", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "good", + "category": "imagine", + "price": 599.11, + "stock_quantity": 141 + }, + "customer": { + "name": "Alexandria Jennings", + "age": 71, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Phillips Group", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "issue", + "category": "perform", + "price": 213.3, + "stock_quantity": 861 + }, + "customer": { + "name": "John Wilkerson", + "age": 27, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Jones LLC", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "occur", + "category": "cut", + "price": 990.32, + "stock_quantity": 961 + }, + "customer": { + "name": "Elizabeth Moreno", + "age": 48, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Mitchell, Manning and Ayers", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "care", + "category": "occur", + "price": 224.79, + "stock_quantity": 602 + }, + "customer": { + "name": "Margaret Cox", + "age": 44, + "country": "Marshall Islands" + } + }, + { + "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'", + "company": { + "name": "Ball Group", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "seem", + "category": "dog", + "price": 604.92, + "stock_quantity": 711 + }, + "customer": { + "name": "Sarah Weber", + "age": 68, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Carter, Williams and Fuller", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "wait", + "category": "relate", + "price": 887.48, + "stock_quantity": 797 + }, + "customer": { + "name": "Lorraine Day", + "age": 51, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Hughes, Torres and Rivera", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "concern", + "category": "see", + "price": 457.44, + "stock_quantity": 831 + }, + "customer": { + "name": "Isaac Hamilton", + "age": 39, + "country": "Eritrea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carroll-Bryant'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carroll-Bryant", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "threat", + "category": "like", + "price": 227.6, + "stock_quantity": 276 + }, + "customer": { + "name": "Gabriel Coleman", + "age": 64, + "country": "Togo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris, Jones and Martin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris, Jones and Martin", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "theory", + "category": "sure", + "price": 884.32, + "stock_quantity": 667 + }, + "customer": { + "name": "Blake Frazier", + "age": 75, + "country": "France" + } + }, + { + "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'", + "company": { + "name": "Bailey, Santos and Reid", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "now", + "category": "network", + "price": 271.6, + "stock_quantity": 855 + }, + "customer": { + "name": "Ashley Lutz", + "age": 43, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Powell PLC", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "account", + "category": "million", + "price": 454.5, + "stock_quantity": 746 + }, + "customer": { + "name": "Brandy Vega", + "age": 59, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Martin-Smith", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "entire", + "category": "parent", + "price": 52.96, + "stock_quantity": 132 + }, + "customer": { + "name": "Lisa Reed", + "age": 22, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Hernandez LLC", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "choice", + "category": "three", + "price": 773.44, + "stock_quantity": 335 + }, + "customer": { + "name": "Michael Mann PhD", + "age": 75, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Hunter-Taylor", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "alone", + "category": "since", + "price": 111.99, + "stock_quantity": 410 + }, + "customer": { + "name": "Corey Anderson", + "age": 20, + "country": "Moldova" + } + }, + { + "natural_query": "What is the total profit for each supplier in Young-Combs?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Young-Combs' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Young-Combs", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "big", + "category": "open", + "price": 263.51, + "stock_quantity": 652 + }, + "customer": { + "name": "Sarah Wilson", + "age": 48, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Curtis-Peterson", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "would", + "category": "purpose", + "price": 820.03, + "stock_quantity": 865 + }, + "customer": { + "name": "Robert Williams", + "age": 58, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Rivas-Rich", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "my", + "category": "charge", + "price": 129.74, + "stock_quantity": 121 + }, + "customer": { + "name": "Angela Frye", + "age": 20, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Stephens, Gillespie and Nelson", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "can", + "category": "difficult", + "price": 351.71, + "stock_quantity": 994 + }, + "customer": { + "name": "Danielle Howell", + "age": 75, + "country": "Sweden" + } + }, + { + "natural_query": "Show me all products in the direction category with a price over $815.23.", + "sql_query": "SELECT * FROM products WHERE category = 'direction' AND price > 815.23", + "company": { + "name": "Carlson-Hernandez", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "any", + "category": "direction", + "price": 815.23, + "stock_quantity": 337 + }, + "customer": { + "name": "Alexis Martinez", + "age": 59, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Christensen, Ramirez and Hicks", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "successful", + "category": "always", + "price": 285.63, + "stock_quantity": 927 + }, + "customer": { + "name": "Patrick Moore", + "age": 32, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "Terry, Monroe and Johnson", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "write", + "category": "film", + "price": 676.76, + "stock_quantity": 805 + }, + "customer": { + "name": "Nancy Kelley", + "age": 73, + "country": "Jordan" + } + }, + { + "natural_query": "How many orders were placed for Moore-Andrews between 2024-07-27 and 2024-08-01?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore-Andrews' AND order_date BETWEEN '2024-07-27' AND '2024-08-01'", + "company": { + "name": "Moore-Andrews", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "daughter", + "category": "most", + "price": 403.47, + "stock_quantity": 797 + }, + "customer": { + "name": "Cody Ross", + "age": 67, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Nielsen LLC", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "pretty", + "category": "nothing", + "price": 930.54, + "stock_quantity": 411 + }, + "customer": { + "name": "Bonnie Meyer", + "age": 49, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Hill-Garcia", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "decade", + "category": "what", + "price": 154.61, + "stock_quantity": 173 + }, + "customer": { + "name": "Ryan Anderson", + "age": 46, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Griffin-Peters", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "care", + "category": "agent", + "price": 230.64, + "stock_quantity": 12 + }, + "customer": { + "name": "Brian Turner", + "age": 64, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Barker-Martin", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "ever", + "category": "tough", + "price": 720.23, + "stock_quantity": 484 + }, + "customer": { + "name": "Melissa Freeman", + "age": 32, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Kennedy Ltd", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "stay", + "category": "score", + "price": 125.33, + "stock_quantity": 349 + }, + "customer": { + "name": "Tom Banks", + "age": 68, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Moore, Cooper and Griffin", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "administration", + "category": "write", + "price": 808.77, + "stock_quantity": 88 + }, + "customer": { + "name": "Brent Little", + "age": 54, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Lewis, Rodriguez and Chavez", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "anyone", + "category": "degree", + "price": 947.28, + "stock_quantity": 750 + }, + "customer": { + "name": "James Fuller", + "age": 67, + "country": "North Macedonia" + } + }, + { + "natural_query": "How many orders were placed for Reid, Lucas and Young between 2024-07-14 and 2024-09-16?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reid, Lucas and Young' AND order_date BETWEEN '2024-07-14' AND '2024-09-16'", + "company": { + "name": "Reid, Lucas and Young", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "already", + "category": "sign", + "price": 297.26, + "stock_quantity": 309 + }, + "customer": { + "name": "Matthew Miller", + "age": 19, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Lane-Dillon", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "party", + "category": "never", + "price": 983.02, + "stock_quantity": 948 + }, + "customer": { + "name": "Angela Smith", + "age": 78, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Evans Ltd", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "watch", + "category": "successful", + "price": 988.17, + "stock_quantity": 485 + }, + "customer": { + "name": "Scott Knapp", + "age": 31, + "country": "Costa Rica" + } + }, + { + "natural_query": "What are the top 9 products by customers for Reed, Watkins and Adams this month?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Reed, Watkins and Adams' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9", + "company": { + "name": "Reed, Watkins and Adams", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "lay", + "category": "manager", + "price": 808.88, + "stock_quantity": 284 + }, + "customer": { + "name": "William Blake", + "age": 27, + "country": "Central African Republic" + } + }, + { + "natural_query": "How many orders were placed for Henderson-Hunter between 2024-08-15 and 2024-08-16?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henderson-Hunter' AND order_date BETWEEN '2024-08-15' AND '2024-08-16'", + "company": { + "name": "Henderson-Hunter", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "commercial", + "category": "garden", + "price": 14.58, + "stock_quantity": 430 + }, + "customer": { + "name": "Penny Hall", + "age": 49, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "White, Alvarez and Robertson", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "per", + "category": "apply", + "price": 578.24, + "stock_quantity": 971 + }, + "customer": { + "name": "Frank Jimenez", + "age": 27, + "country": "Burkina Faso" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Strickland, Ford and Hardin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Strickland, Ford and Hardin", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "within", + "category": "top", + "price": 586.0, + "stock_quantity": 228 + }, + "customer": { + "name": "Jenna Chandler", + "age": 29, + "country": "Swaziland" + } + }, + { + "natural_query": "List all products of Rodgers PLC ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Rodgers PLC' ORDER BY rating ASC", + "company": { + "name": "Rodgers PLC", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "personal", + "category": "including", + "price": 569.69, + "stock_quantity": 34 + }, + "customer": { + "name": "Miranda Murray", + "age": 70, + "country": "Turks and Caicos Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Figueroa and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Figueroa and Sons", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "site", + "category": "official", + "price": 838.65, + "stock_quantity": 282 + }, + "customer": { + "name": "Ian Hopkins", + "age": 40, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Mayer-Kelly", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "skill", + "category": "form", + "price": 723.87, + "stock_quantity": 444 + }, + "customer": { + "name": "Dana Smith", + "age": 36, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Nelson and Sons", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "gas", + "category": "nice", + "price": 617.84, + "stock_quantity": 383 + }, + "customer": { + "name": "Austin Mitchell", + "age": 23, + "country": "Andorra" + } + }, + { + "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'", + "company": { + "name": "Harris, Gonzalez and Garner", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "heavy", + "category": "exactly", + "price": 675.77, + "stock_quantity": 356 + }, + "customer": { + "name": "Lisa Banks", + "age": 40, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Hall-Bernard", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "seat", + "category": "research", + "price": 496.34, + "stock_quantity": 631 + }, + "customer": { + "name": "Zachary Perez", + "age": 74, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Williams, Lopez and Shannon", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "travel", + "category": "southern", + "price": 704.69, + "stock_quantity": 491 + }, + "customer": { + "name": "Natasha Miller", + "age": 60, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Fowler and Sons", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "on", + "category": "character", + "price": 78.08, + "stock_quantity": 571 + }, + "customer": { + "name": "Molly Rodriguez", + "age": 47, + "country": "Tokelau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barry Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barry Group", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "space", + "category": "movement", + "price": 249.35, + "stock_quantity": 261 + }, + "customer": { + "name": "Kristi Burnett", + "age": 26, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Lee Group", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "save", + "category": "everyone", + "price": 986.88, + "stock_quantity": 810 + }, + "customer": { + "name": "Sabrina Murphy", + "age": 35, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "White-Bates", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "peace", + "category": "how", + "price": 836.69, + "stock_quantity": 582 + }, + "customer": { + "name": "Megan Barnett", + "age": 30, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Bishop, Contreras and Harris", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "range", + "category": "support", + "price": 251.16, + "stock_quantity": 481 + }, + "customer": { + "name": "Edward Parks", + "age": 60, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Moore Ltd", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "state", + "category": "next", + "price": 32.42, + "stock_quantity": 252 + }, + "customer": { + "name": "John Cross", + "age": 52, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Johnson, Dodson and Martin", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "might", + "category": "others", + "price": 802.38, + "stock_quantity": 478 + }, + "customer": { + "name": "Jerry Patel", + "age": 37, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Acosta, Green and Wyatt", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "get", + "category": "available", + "price": 87.62, + "stock_quantity": 378 + }, + "customer": { + "name": "Amy Mitchell", + "age": 28, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Kelly, Washington and West", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "smile", + "category": "prove", + "price": 709.24, + "stock_quantity": 181 + }, + "customer": { + "name": "Rebecca Webb", + "age": 58, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Harding, Davis and Fox", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "ok", + "category": "amount", + "price": 983.03, + "stock_quantity": 694 + }, + "customer": { + "name": "David Wall MD", + "age": 33, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Thomas Group", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "carry", + "category": "hotel", + "price": 207.39, + "stock_quantity": 897 + }, + "customer": { + "name": "William Gaines", + "age": 75, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Fernandez LLC", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "heart", + "category": "land", + "price": 371.31, + "stock_quantity": 991 + }, + "customer": { + "name": "John Williams", + "age": 65, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Rivera-Johnson", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "place", + "category": "north", + "price": 849.32, + "stock_quantity": 337 + }, + "customer": { + "name": "Robert Tran", + "age": 52, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Keller, Lynch and Klein", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "task", + "category": "now", + "price": 629.9, + "stock_quantity": 838 + }, + "customer": { + "name": "Martha Tapia", + "age": 71, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Ramirez, Kerr and Stokes", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "decision", + "category": "identify", + "price": 844.82, + "stock_quantity": 130 + }, + "customer": { + "name": "Dr. Anna Munoz", + "age": 66, + "country": "Lebanon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harmon, Webb and Deleon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harmon, Webb and Deleon", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "between", + "category": "bag", + "price": 829.57, + "stock_quantity": 409 + }, + "customer": { + "name": "Patricia Gardner", + "age": 44, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Moss-Hawkins", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "by", + "category": "language", + "price": 828.8, + "stock_quantity": 75 + }, + "customer": { + "name": "Jason Rice", + "age": 68, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Ashley, Ortiz and Wilson", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "manager", + "category": "group", + "price": 777.7, + "stock_quantity": 872 + }, + "customer": { + "name": "Mr. Timothy Key", + "age": 50, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Henderson-Noble", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "only", + "category": "per", + "price": 860.74, + "stock_quantity": 751 + }, + "customer": { + "name": "Melissa Hall", + "age": 73, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Johnson, Case and Silva", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "whose", + "category": "value", + "price": 165.56, + "stock_quantity": 767 + }, + "customer": { + "name": "Jason Mccarty", + "age": 26, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Smith LLC", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "next", + "category": "cost", + "price": 356.78, + "stock_quantity": 608 + }, + "customer": { + "name": "Sandra Velazquez", + "age": 53, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Campbell-Deleon", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "take", + "category": "child", + "price": 293.1, + "stock_quantity": 529 + }, + "customer": { + "name": "Jill Lee", + "age": 60, + "country": "Bangladesh" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Schultz, Daniels and Burgess'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Schultz, Daniels and Burgess", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "order", + "category": "any", + "price": 334.92, + "stock_quantity": 87 + }, + "customer": { + "name": "Douglas Pena", + "age": 40, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Wilson, Harris and Hobbs", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "effect", + "category": "chair", + "price": 426.85, + "stock_quantity": 972 + }, + "customer": { + "name": "Anthony Scott", + "age": 78, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Contreras, Ramirez and Jackson", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "front", + "category": "collection", + "price": 603.3, + "stock_quantity": 316 + }, + "customer": { + "name": "Edgar Jones", + "age": 31, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Aguirre Group", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "though", + "category": "there", + "price": 189.09, + "stock_quantity": 804 + }, + "customer": { + "name": "John Allen", + "age": 62, + "country": "Portugal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Foster-Warner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Foster-Warner", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "rest", + "category": "set", + "price": 802.13, + "stock_quantity": 146 + }, + "customer": { + "name": "Angela Hughes", + "age": 66, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Macias-Medina", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "opportunity", + "category": "thus", + "price": 520.11, + "stock_quantity": 895 + }, + "customer": { + "name": "Lori Mitchell", + "age": 57, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Thompson Ltd", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "suggest", + "category": "true", + "price": 463.43, + "stock_quantity": 535 + }, + "customer": { + "name": "Kaylee Murray", + "age": 58, + "country": "Zambia" + } + }, + { + "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'", + "company": { + "name": "Davis, Simmons and Taylor", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "church", + "category": "black", + "price": 40.49, + "stock_quantity": 791 + }, + "customer": { + "name": "Tonya Davis", + "age": 68, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Zamora-Chapman", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "save", + "category": "onto", + "price": 695.67, + "stock_quantity": 247 + }, + "customer": { + "name": "Aaron Zavala", + "age": 77, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Johnson Group", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "care", + "category": "in", + "price": 385.38, + "stock_quantity": 586 + }, + "customer": { + "name": "Carmen Andersen", + "age": 46, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Hill, Simmons and Tucker", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "figure", + "category": "oil", + "price": 456.5, + "stock_quantity": 573 + }, + "customer": { + "name": "Brian Moss", + "age": 26, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Moore, Norman and Jones", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "stage", + "category": "available", + "price": 382.82, + "stock_quantity": 287 + }, + "customer": { + "name": "James Banks", + "age": 60, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Griffith and Sons", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "collection", + "category": "race", + "price": 537.05, + "stock_quantity": 582 + }, + "customer": { + "name": "Robin Fletcher", + "age": 78, + "country": "North Macedonia" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Colon, Anderson and Rogers?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Colon, Anderson and Rogers'", + "company": { + "name": "Colon, Anderson and Rogers", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "clearly", + "category": "clear", + "price": 743.81, + "stock_quantity": 571 + }, + "customer": { + "name": "Jonathan Castillo", + "age": 27, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Mitchell Group", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "born", + "category": "animal", + "price": 680.5, + "stock_quantity": 294 + }, + "customer": { + "name": "Nicholas Jones", + "age": 38, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Smith Ltd", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "rule", + "category": "same", + "price": 490.21, + "stock_quantity": 685 + }, + "customer": { + "name": "Kevin Gray", + "age": 46, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Jordan, Fleming and Hoffman", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "kitchen", + "category": "camera", + "price": 405.86, + "stock_quantity": 124 + }, + "customer": { + "name": "Loretta White", + "age": 19, + "country": "Heard Island and McDonald Islands" + } + }, + { + "natural_query": "What is the minimum rating of all products for Henderson, Mccann and Brooks?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Henderson, Mccann and Brooks'", + "company": { + "name": "Henderson, Mccann and Brooks", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "quickly", + "category": "offer", + "price": 324.06, + "stock_quantity": 616 + }, + "customer": { + "name": "Danielle Hansen", + "age": 37, + "country": "French Polynesia" + } + }, + { + "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'", + "company": { + "name": "Jones LLC", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "now", + "category": "into", + "price": 633.53, + "stock_quantity": 436 + }, + "customer": { + "name": "Paul Flynn", + "age": 75, + "country": "Congo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cuevas-Bridges'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cuevas-Bridges", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "view", + "category": "perhaps", + "price": 695.15, + "stock_quantity": 572 + }, + "customer": { + "name": "Christine Dean", + "age": 21, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Carroll-Mcmahon", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "wish", + "category": "available", + "price": 345.35, + "stock_quantity": 101 + }, + "customer": { + "name": "Terry Spencer", + "age": 32, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hubbard-Hanson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hubbard-Hanson", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "try", + "category": "true", + "price": 13.2, + "stock_quantity": 506 + }, + "customer": { + "name": "Anthony Robinson", + "age": 32, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Coleman Inc", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "party", + "category": "couple", + "price": 969.27, + "stock_quantity": 606 + }, + "customer": { + "name": "Dr. Ian Fisher", + "age": 52, + "country": "Nauru" + } + }, + { + "natural_query": "List all customers and their total order value for Ryan Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Ryan Ltd' GROUP BY c.customer_id", + "company": { + "name": "Ryan Ltd", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "trip", + "category": "specific", + "price": 783.75, + "stock_quantity": 921 + }, + "customer": { + "name": "Joshua Cole", + "age": 20, + "country": "Guernsey" + } + }, + { + "natural_query": "List all products of Gutierrez, Smith and Anderson ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Gutierrez, Smith and Anderson' ORDER BY rating ASC", + "company": { + "name": "Gutierrez, Smith and Anderson", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "money", + "category": "third", + "price": 776.4, + "stock_quantity": 409 + }, + "customer": { + "name": "Timothy Ramirez", + "age": 24, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Wheeler, Fleming and Caldwell", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "civil", + "category": "north", + "price": 208.81, + "stock_quantity": 444 + }, + "customer": { + "name": "Mrs. Tammy Hancock", + "age": 54, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Mendoza, Kennedy and Klein", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "we", + "category": "beyond", + "price": 622.09, + "stock_quantity": 914 + }, + "customer": { + "name": "Justin Wyatt", + "age": 65, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Garcia, Brown and Hanson", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "north", + "category": "wind", + "price": 719.36, + "stock_quantity": 480 + }, + "customer": { + "name": "Adam Reyes", + "age": 62, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Morales, Peterson and Smith", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "deep", + "category": "thus", + "price": 668.1, + "stock_quantity": 946 + }, + "customer": { + "name": "Kevin Leach", + "age": 24, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Blake Ltd", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "model", + "category": "brother", + "price": 801.87, + "stock_quantity": 690 + }, + "customer": { + "name": "Brian Montgomery", + "age": 66, + "country": "Seychelles" + } + }, + { + "natural_query": "List all customers and their total order value for Romero, Kelley and Williams.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Romero, Kelley and Williams' GROUP BY c.customer_id", + "company": { + "name": "Romero, Kelley and Williams", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "compare", + "category": "keep", + "price": 846.49, + "stock_quantity": 647 + }, + "customer": { + "name": "Stephanie Fleming", + "age": 51, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Ellis-Lee", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "then", + "category": "open", + "price": 408.57, + "stock_quantity": 238 + }, + "customer": { + "name": "Madison Gregory", + "age": 29, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Adams, Torres and Johnson", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "step", + "category": "management", + "price": 70.42, + "stock_quantity": 827 + }, + "customer": { + "name": "Matthew Flores", + "age": 37, + "country": "Anguilla" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Washington-Johnson for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Washington-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Washington-Johnson", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "buy", + "category": "serve", + "price": 170.09, + "stock_quantity": 443 + }, + "customer": { + "name": "Kelsey Young", + "age": 60, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Fuller, Oconnor and Rivers", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "again", + "category": "top", + "price": 726.45, + "stock_quantity": 622 + }, + "customer": { + "name": "Louis Flores", + "age": 57, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Floyd, Meyers and Malone", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "fall", + "category": "popular", + "price": 711.95, + "stock_quantity": 490 + }, + "customer": { + "name": "Thomas Ross", + "age": 35, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Wilson-Larson", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "class", + "category": "lose", + "price": 477.21, + "stock_quantity": 471 + }, + "customer": { + "name": "Jessica Cooper", + "age": 51, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Smith, Fuller and Cooper", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "analysis", + "category": "quickly", + "price": 973.18, + "stock_quantity": 698 + }, + "customer": { + "name": "Tyler Cox", + "age": 26, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Horton-Murphy", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "phone", + "category": "civil", + "price": 524.38, + "stock_quantity": 836 + }, + "customer": { + "name": "Crystal Torres", + "age": 32, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Bennett, Reid and Good", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "reality", + "category": "according", + "price": 542.16, + "stock_quantity": 35 + }, + "customer": { + "name": "Cheryl Stevens", + "age": 22, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Munoz and Sons", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "series", + "category": "possible", + "price": 365.78, + "stock_quantity": 581 + }, + "customer": { + "name": "Tammy Conner", + "age": 30, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Kirk-Fry", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "usually", + "category": "evening", + "price": 664.58, + "stock_quantity": 583 + }, + "customer": { + "name": "Christopher Roy", + "age": 25, + "country": "Kenya" + } + }, + { + "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'", + "company": { + "name": "Marshall, Clark and Weiss", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "analysis", + "category": "service", + "price": 519.57, + "stock_quantity": 426 + }, + "customer": { + "name": "Tiffany Schaefer", + "age": 77, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Williams-Hickman", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "become", + "category": "whom", + "price": 444.16, + "stock_quantity": 768 + }, + "customer": { + "name": "Lindsey Wallace", + "age": 29, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Peterson, White and King", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "plant", + "category": "yes", + "price": 449.54, + "stock_quantity": 554 + }, + "customer": { + "name": "Jacob Bishop", + "age": 32, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Guerrero-White", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "responsibility", + "category": "third", + "price": 189.79, + "stock_quantity": 559 + }, + "customer": { + "name": "Mark Garza", + "age": 57, + "country": "French Southern Territories" + } + }, + { + "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'", + "company": { + "name": "Martinez, Ferguson and Dunn", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "base", + "category": "purpose", + "price": 878.85, + "stock_quantity": 944 + }, + "customer": { + "name": "Stephanie Hernandez", + "age": 61, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Fox, Rose and Cruz", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "involve", + "category": "yet", + "price": 194.64, + "stock_quantity": 933 + }, + "customer": { + "name": "Marcus Yoder", + "age": 24, + "country": "Finland" + } + }, + { + "natural_query": "List all products of Crawford-Weber ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Crawford-Weber' ORDER BY rating ASC", + "company": { + "name": "Crawford-Weber", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "sea", + "category": "PM", + "price": 753.98, + "stock_quantity": 300 + }, + "customer": { + "name": "Jeffrey Jenkins", + "age": 41, + "country": "Sao Tome and Principe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mendoza-Zhang'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mendoza-Zhang", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "simply", + "category": "wear", + "price": 613.84, + "stock_quantity": 392 + }, + "customer": { + "name": "Jeffrey Benitez", + "age": 24, + "country": "Luxembourg" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Fuller and Meyer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Fuller and Meyer", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "message", + "category": "trial", + "price": 688.75, + "stock_quantity": 619 + }, + "customer": { + "name": "Patty Williams", + "age": 18, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Vazquez-Jackson", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "decision", + "category": "will", + "price": 385.02, + "stock_quantity": 350 + }, + "customer": { + "name": "Karen Jackson", + "age": 26, + "country": "Macao" + } + }, + { + "natural_query": "List all products of Ellison, Lewis and Crosby ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Ellison, Lewis and Crosby' ORDER BY price ASC", + "company": { + "name": "Ellison, Lewis and Crosby", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "check", + "category": "deep", + "price": 861.1, + "stock_quantity": 361 + }, + "customer": { + "name": "Anthony Bush", + "age": 41, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Smith-Crane", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "husband", + "category": "speech", + "price": 474.38, + "stock_quantity": 846 + }, + "customer": { + "name": "William Baldwin", + "age": 21, + "country": "Myanmar" + } + }, + { + "natural_query": "How many orders were placed for Willis, Zavala and Wilkins between 2023-12-09 and 2024-06-21?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Willis, Zavala and Wilkins' AND order_date BETWEEN '2023-12-09' AND '2024-06-21'", + "company": { + "name": "Willis, Zavala and Wilkins", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "current", + "category": "shoulder", + "price": 68.6, + "stock_quantity": 503 + }, + "customer": { + "name": "Micheal Warren", + "age": 26, + "country": "Turks and Caicos Islands" + } + }, + { + "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'", + "company": { + "name": "Guzman, Reyes and Johnson", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "buy", + "category": "third", + "price": 752.32, + "stock_quantity": 777 + }, + "customer": { + "name": "Anthony Lee MD", + "age": 19, + "country": "Angola" + } + }, + { + "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'", + "company": { + "name": "Hernandez, Acosta and Gomez", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "sound", + "category": "catch", + "price": 285.27, + "stock_quantity": 373 + }, + "customer": { + "name": "Laura Hodge", + "age": 65, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Scott-Long", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "hospital", + "category": "memory", + "price": 66.6, + "stock_quantity": 831 + }, + "customer": { + "name": "Victoria Brown", + "age": 43, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Stevenson, Martinez and Duncan", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "cost", + "category": "management", + "price": 795.49, + "stock_quantity": 460 + }, + "customer": { + "name": "John Booth", + "age": 28, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Benson-Parker", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "throw", + "category": "individual", + "price": 489.54, + "stock_quantity": 583 + }, + "customer": { + "name": "Crystal Torres", + "age": 53, + "country": "Azerbaijan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Allen-Murray'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Allen-Murray", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "work", + "category": "prevent", + "price": 760.89, + "stock_quantity": 270 + }, + "customer": { + "name": "Scott Nelson", + "age": 37, + "country": "Tokelau" + } + }, + { + "natural_query": "What is the total price of all products for Romero-Hodges?", + "sql_query": "SELECT TOTAL(price) as result FROM products WHERE company_name = 'Romero-Hodges'", + "company": { + "name": "Romero-Hodges", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "name", + "category": "production", + "price": 39.82, + "stock_quantity": 801 + }, + "customer": { + "name": "James Maldonado", + "age": 20, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Zavala LLC", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "scientist", + "category": "guess", + "price": 442.24, + "stock_quantity": 662 + }, + "customer": { + "name": "Ryan Blackwell", + "age": 53, + "country": "French Polynesia" + } + }, + { + "natural_query": "List all customers and their total order value for Young-Acosta.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Young-Acosta' GROUP BY c.customer_id", + "company": { + "name": "Young-Acosta", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "safe", + "category": "interest", + "price": 483.77, + "stock_quantity": 103 + }, + "customer": { + "name": "Craig Taylor", + "age": 61, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Miller-Hoover", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "despite", + "category": "right", + "price": 324.96, + "stock_quantity": 282 + }, + "customer": { + "name": "Laura Hudson", + "age": 57, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Santos and Sons", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "series", + "category": "save", + "price": 422.64, + "stock_quantity": 836 + }, + "customer": { + "name": "Nicole Mathis", + "age": 33, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Mcgee-Harrison", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "opportunity", + "category": "father", + "price": 651.94, + "stock_quantity": 834 + }, + "customer": { + "name": "Robert Lang", + "age": 57, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Barrett-Rodriguez", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "outside", + "category": "fund", + "price": 122.93, + "stock_quantity": 899 + }, + "customer": { + "name": "Erika Brown", + "age": 62, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Meyers Inc", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "black", + "category": "level", + "price": 489.66, + "stock_quantity": 966 + }, + "customer": { + "name": "Christopher Orozco", + "age": 38, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Harris Group", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "reveal", + "category": "know", + "price": 605.07, + "stock_quantity": 400 + }, + "customer": { + "name": "Kayla Chandler", + "age": 53, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Gonzales, Stout and Rodriguez", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "main", + "category": "energy", + "price": 514.03, + "stock_quantity": 601 + }, + "customer": { + "name": "John Steele", + "age": 40, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Sullivan, Monroe and Gordon", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "page", + "category": "social", + "price": 754.08, + "stock_quantity": 879 + }, + "customer": { + "name": "Krista Green", + "age": 77, + "country": "Oman" + } + }, + { + "natural_query": "List all customers and their total order value for Huff, Mcdonald and Adams.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Huff, Mcdonald and Adams' GROUP BY c.customer_id", + "company": { + "name": "Huff, Mcdonald and Adams", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "whose", + "category": "occur", + "price": 604.2, + "stock_quantity": 759 + }, + "customer": { + "name": "Charles Wagner DDS", + "age": 41, + "country": "Algeria" + } + }, + { + "natural_query": "How many orders were placed for Odom Inc between 2023-11-01 and 2024-08-26?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Odom Inc' AND order_date BETWEEN '2023-11-01' AND '2024-08-26'", + "company": { + "name": "Odom Inc", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "late", + "category": "hundred", + "price": 261.27, + "stock_quantity": 459 + }, + "customer": { + "name": "Jessica Walters", + "age": 78, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Fletcher, Hayes and Whitehead", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "size", + "category": "part", + "price": 133.67, + "stock_quantity": 733 + }, + "customer": { + "name": "Kevin Grant", + "age": 72, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Werner Inc", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "true", + "category": "power", + "price": 407.47, + "stock_quantity": 392 + }, + "customer": { + "name": "Daniel Lane", + "age": 26, + "country": "Netherlands Antilles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson Inc", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "audience", + "category": "table", + "price": 629.43, + "stock_quantity": 5 + }, + "customer": { + "name": "Anthony Warren", + "age": 49, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Morgan LLC", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "whose", + "category": "offer", + "price": 54.65, + "stock_quantity": 573 + }, + "customer": { + "name": "Kenneth Frye", + "age": 21, + "country": "Sweden" + } + }, + { + "natural_query": "Show me all products in the too category with a price over $75.39.", + "sql_query": "SELECT * FROM products WHERE category = 'too' AND price > 75.39", + "company": { + "name": "Johnson, Jackson and Walker", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "strong", + "category": "too", + "price": 75.39, + "stock_quantity": 41 + }, + "customer": { + "name": "Justin Burgess", + "age": 65, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Thompson-Torres", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "value", + "category": "off", + "price": 419.93, + "stock_quantity": 562 + }, + "customer": { + "name": "Mark Brown", + "age": 23, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Brown-Santiago", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "try", + "category": "natural", + "price": 490.25, + "stock_quantity": 158 + }, + "customer": { + "name": "Brittany Chambers", + "age": 71, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Moss, Evans and Ortiz", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "ready", + "category": "play", + "price": 971.28, + "stock_quantity": 441 + }, + "customer": { + "name": "Darrell Clark", + "age": 54, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Morgan PLC", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "chair", + "category": "eye", + "price": 62.76, + "stock_quantity": 139 + }, + "customer": { + "name": "Krystal Butler MD", + "age": 33, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Morrow, Brown and Bullock", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "thousand", + "category": "face", + "price": 742.48, + "stock_quantity": 249 + }, + "customer": { + "name": "Tanya Kelly", + "age": 79, + "country": "Macao" + } + }, + { + "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'", + "company": { + "name": "Martin LLC", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "assume", + "category": "into", + "price": 217.69, + "stock_quantity": 751 + }, + "customer": { + "name": "George Lindsey", + "age": 73, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Larsen Inc", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "prevent", + "category": "real", + "price": 528.11, + "stock_quantity": 892 + }, + "customer": { + "name": "Kevin Owens", + "age": 76, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "natural_query": "List all customers and their total order value for Williams, Vargas and Perkins.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Williams, Vargas and Perkins' GROUP BY c.customer_id", + "company": { + "name": "Williams, Vargas and Perkins", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "eight", + "category": "save", + "price": 849.17, + "stock_quantity": 466 + }, + "customer": { + "name": "Bradley Davis", + "age": 18, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Huff LLC", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "recognize", + "category": "see", + "price": 576.81, + "stock_quantity": 417 + }, + "customer": { + "name": "Evan Barron", + "age": 64, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Melendez, Ray and Adams", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "trip", + "category": "hotel", + "price": 370.64, + "stock_quantity": 474 + }, + "customer": { + "name": "Crystal Ward", + "age": 21, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Huffman-Griffin", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "young", + "category": "option", + "price": 237.81, + "stock_quantity": 75 + }, + "customer": { + "name": "Susan Pearson", + "age": 28, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Gallagher, Short and Mckee", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "often", + "category": "any", + "price": 736.65, + "stock_quantity": 565 + }, + "customer": { + "name": "Jennifer Hooper", + "age": 34, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Warner Ltd", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "everybody", + "category": "be", + "price": 283.8, + "stock_quantity": 739 + }, + "customer": { + "name": "Michael Russo", + "age": 42, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Bradley, Keller and Middleton", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "success", + "category": "quality", + "price": 899.64, + "stock_quantity": 772 + }, + "customer": { + "name": "Tabitha Vance", + "age": 62, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Ramirez, Ward and Scott", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "order", + "category": "Democrat", + "price": 242.57, + "stock_quantity": 808 + }, + "customer": { + "name": "Robert Graves", + "age": 44, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Avery, Cook and Rice'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Avery, Cook and Rice", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "road", + "category": "rise", + "price": 16.92, + "stock_quantity": 592 + }, + "customer": { + "name": "David Mccarty", + "age": 19, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Williams, Baldwin and Palmer", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "police", + "category": "college", + "price": 562.89, + "stock_quantity": 194 + }, + "customer": { + "name": "Robert Pruitt", + "age": 69, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Russell, Wells and Harris", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "end", + "category": "pretty", + "price": 356.31, + "stock_quantity": 997 + }, + "customer": { + "name": "Lisa Hunt", + "age": 35, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Peters-Robinson", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "letter", + "category": "win", + "price": 827.91, + "stock_quantity": 141 + }, + "customer": { + "name": "Jerry Dodson", + "age": 42, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Gould-York", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "writer", + "category": "house", + "price": 503.17, + "stock_quantity": 914 + }, + "customer": { + "name": "Alex Munoz MD", + "age": 68, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Morris-Bird", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "environment", + "category": "skin", + "price": 989.65, + "stock_quantity": 934 + }, + "customer": { + "name": "Steven Davis", + "age": 67, + "country": "Brazil" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frederick and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frederick and Sons", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "institution", + "category": "evening", + "price": 433.79, + "stock_quantity": 906 + }, + "customer": { + "name": "Sarah Schultz DDS", + "age": 52, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Garcia-Martinez", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "organization", + "category": "seven", + "price": 698.72, + "stock_quantity": 976 + }, + "customer": { + "name": "Stacy Saunders", + "age": 39, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Taylor PLC", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "ask", + "category": "trip", + "price": 62.46, + "stock_quantity": 13 + }, + "customer": { + "name": "Gary Gregory", + "age": 54, + "country": "Iceland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Spears, Martin and Bean'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Spears, Martin and Bean", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "difference", + "category": "young", + "price": 997.25, + "stock_quantity": 279 + }, + "customer": { + "name": "Melissa Avila", + "age": 74, + "country": "Mauritius" + } + }, + { + "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'", + "company": { + "name": "Matthews-Shah", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "its", + "category": "me", + "price": 413.72, + "stock_quantity": 816 + }, + "customer": { + "name": "Todd Mcdaniel", + "age": 33, + "country": "North Macedonia" + } + }, + { + "natural_query": "Show me all products in the sister category with a price over $182.99.", + "sql_query": "SELECT * FROM products WHERE category = 'sister' AND price > 182.99", + "company": { + "name": "Banks-Hoffman", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "behavior", + "category": "sister", + "price": 182.99, + "stock_quantity": 306 + }, + "customer": { + "name": "Brittany Ortiz", + "age": 56, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "King-Swanson", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "effort", + "category": "research", + "price": 229.46, + "stock_quantity": 286 + }, + "customer": { + "name": "Jasmine Johnson", + "age": 65, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Duran, Cole and Lee", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "full", + "category": "economic", + "price": 82.2, + "stock_quantity": 536 + }, + "customer": { + "name": "Christopher Landry", + "age": 66, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Patterson-Morgan", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "democratic", + "category": "health", + "price": 749.26, + "stock_quantity": 2 + }, + "customer": { + "name": "Mary Davis", + "age": 34, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Joseph-Adams", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "else", + "category": "about", + "price": 396.31, + "stock_quantity": 990 + }, + "customer": { + "name": "Jennifer Savage", + "age": 45, + "country": "Barbados" + } + }, + { + "natural_query": "What is the minimum rating of all products for Rich, Schmitt and Brown?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Rich, Schmitt and Brown'", + "company": { + "name": "Rich, Schmitt and Brown", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "law", + "category": "my", + "price": 397.02, + "stock_quantity": 147 + }, + "customer": { + "name": "Vanessa Sanchez", + "age": 78, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Daniels-Rush", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "manage", + "category": "skill", + "price": 894.94, + "stock_quantity": 641 + }, + "customer": { + "name": "Thomas Campos", + "age": 21, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Riddle, Grant and Little", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "entire", + "category": "mission", + "price": 662.53, + "stock_quantity": 517 + }, + "customer": { + "name": "Thomas Mills", + "age": 51, + "country": "Serbia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Garza-Rice for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garza-Rice'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garza-Rice", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "economic", + "category": "result", + "price": 288.77, + "stock_quantity": 324 + }, + "customer": { + "name": "Carlos Hudson", + "age": 69, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Rodriguez PLC", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "face", + "category": "discuss", + "price": 231.2, + "stock_quantity": 804 + }, + "customer": { + "name": "Andrea Murphy", + "age": 38, + "country": "Liechtenstein" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Saunders-Cunningham for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Saunders-Cunningham'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Saunders-Cunningham", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "audience", + "category": "conference", + "price": 945.17, + "stock_quantity": 29 + }, + "customer": { + "name": "Stephanie Ryan", + "age": 22, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Ramirez-Sims", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "knowledge", + "category": "style", + "price": 47.05, + "stock_quantity": 775 + }, + "customer": { + "name": "Charles Rodriguez", + "age": 57, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Chavez and Sons", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "attorney", + "category": "arrive", + "price": 927.36, + "stock_quantity": 606 + }, + "customer": { + "name": "Zachary Lopez", + "age": 80, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Vasquez, Chavez and Swanson", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "including", + "category": "church", + "price": 590.47, + "stock_quantity": 606 + }, + "customer": { + "name": "Austin Guzman", + "age": 73, + "country": "Jersey" + } + }, + { + "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'", + "company": { + "name": "Martin, Morgan and Peters", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "politics", + "category": "group", + "price": 350.0, + "stock_quantity": 165 + }, + "customer": { + "name": "Tom Myers", + "age": 54, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Conner-Watts", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "adult", + "category": "if", + "price": 581.5, + "stock_quantity": 440 + }, + "customer": { + "name": "Harold Burnett", + "age": 24, + "country": "United Kingdom" + } + }, + { + "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'", + "company": { + "name": "Pena, Miller and Holt", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "table", + "category": "discuss", + "price": 314.97, + "stock_quantity": 76 + }, + "customer": { + "name": "Antonio Williams", + "age": 73, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Watkins-Haynes", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "onto", + "category": "pattern", + "price": 589.48, + "stock_quantity": 872 + }, + "customer": { + "name": "Shane Gentry", + "age": 52, + "country": "Nauru" + } + }, + { + "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'", + "company": { + "name": "Hunter Group", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "final", + "category": "most", + "price": 786.7, + "stock_quantity": 462 + }, + "customer": { + "name": "Robert Kelly", + "age": 27, + "country": "Tuvalu" + } + }, + { + "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'", + "company": { + "name": "James and Sons", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "some", + "category": "west", + "price": 460.11, + "stock_quantity": 81 + }, + "customer": { + "name": "Bradley Chavez", + "age": 41, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Dodson Inc", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "behind", + "category": "medical", + "price": 679.4, + "stock_quantity": 416 + }, + "customer": { + "name": "Stephen Le", + "age": 80, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Hunter, Davis and Peterson", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "seem", + "category": "fast", + "price": 651.33, + "stock_quantity": 922 + }, + "customer": { + "name": "Raven Mann", + "age": 46, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "natural_query": "What is the maximum price of all products for Brooks, Roberts and Campbell?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Brooks, Roberts and Campbell'", + "company": { + "name": "Brooks, Roberts and Campbell", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "inside", + "category": "sure", + "price": 745.69, + "stock_quantity": 867 + }, + "customer": { + "name": "Joseph Harvey", + "age": 80, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Montoya Group", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "deal", + "category": "make", + "price": 687.17, + "stock_quantity": 666 + }, + "customer": { + "name": "Matthew Martinez", + "age": 27, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Williams Inc", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "majority", + "category": "huge", + "price": 364.4, + "stock_quantity": 594 + }, + "customer": { + "name": "Jeffrey Lewis", + "age": 57, + "country": "French Polynesia" + } + }, + { + "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'", + "company": { + "name": "Campbell, Patel and Reid", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "whatever", + "category": "way", + "price": 770.8, + "stock_quantity": 480 + }, + "customer": { + "name": "Madeline Smith", + "age": 44, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Michael, Clayton and Moore", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "establish", + "category": "information", + "price": 909.37, + "stock_quantity": 715 + }, + "customer": { + "name": "Jessica Turner", + "age": 60, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Romero-Reeves", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "ability", + "category": "figure", + "price": 774.87, + "stock_quantity": 7 + }, + "customer": { + "name": "Seth Baldwin", + "age": 64, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Schneider Inc", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "stock", + "category": "help", + "price": 782.17, + "stock_quantity": 897 + }, + "customer": { + "name": "Stephanie Wallace", + "age": 43, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Lamb, Watts and Winters", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "themselves", + "category": "newspaper", + "price": 611.63, + "stock_quantity": 659 + }, + "customer": { + "name": "Joseph Johnson II", + "age": 46, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Fernandez Group", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "surface", + "category": "center", + "price": 112.32, + "stock_quantity": 990 + }, + "customer": { + "name": "Karen Jimenez", + "age": 73, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Adams LLC", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "answer", + "category": "food", + "price": 202.83, + "stock_quantity": 150 + }, + "customer": { + "name": "Jason Sutton", + "age": 68, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Herman Inc", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "school", + "category": "how", + "price": 542.75, + "stock_quantity": 149 + }, + "customer": { + "name": "Christopher Gonzalez", + "age": 31, + "country": "Barbados" + } + }, + { + "natural_query": "What is the total quantity for each category in Hudson, Woods and Myers?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hudson, Woods and Myers' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Hudson, Woods and Myers", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "indicate", + "category": "deep", + "price": 741.74, + "stock_quantity": 673 + }, + "customer": { + "name": "Amanda Foley", + "age": 53, + "country": "Chile" + } + }, + { + "natural_query": "What is the minimum price of all products for Wright-Taylor?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Wright-Taylor'", + "company": { + "name": "Wright-Taylor", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "kid", + "category": "support", + "price": 777.76, + "stock_quantity": 294 + }, + "customer": { + "name": "Elizabeth Suarez", + "age": 34, + "country": "Norway" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Marsh-Patterson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Marsh-Patterson", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "people", + "category": "want", + "price": 884.11, + "stock_quantity": 637 + }, + "customer": { + "name": "Isaac Greene", + "age": 74, + "country": "Guernsey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nguyen Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nguyen Ltd", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "eight", + "category": "class", + "price": 614.55, + "stock_quantity": 393 + }, + "customer": { + "name": "Robin Roberts", + "age": 68, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Oneill-Costa", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "so", + "category": "space", + "price": 53.65, + "stock_quantity": 425 + }, + "customer": { + "name": "Rachel Leblanc", + "age": 28, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Horton Group", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "security", + "category": "western", + "price": 849.63, + "stock_quantity": 880 + }, + "customer": { + "name": "Daniel Mcdaniel", + "age": 79, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Scott, Ray and Tucker", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "responsibility", + "category": "treat", + "price": 950.21, + "stock_quantity": 24 + }, + "customer": { + "name": "Nicole Hickman", + "age": 42, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Smith-Graham", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "week", + "category": "contain", + "price": 139.33, + "stock_quantity": 550 + }, + "customer": { + "name": "Alexis Shannon", + "age": 38, + "country": "Gabon" + } + }, + { + "natural_query": "List all products of Manning LLC ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Manning LLC' ORDER BY rating DESC", + "company": { + "name": "Manning LLC", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "without", + "category": "shake", + "price": 886.33, + "stock_quantity": 609 + }, + "customer": { + "name": "Andrew Terrell", + "age": 49, + "country": "Uganda" + } + }, + { + "natural_query": "What are the top 7 products by customers for Taylor PLC all time?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Taylor PLC' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7", + "company": { + "name": "Taylor PLC", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "inside", + "category": "specific", + "price": 137.85, + "stock_quantity": 619 + }, + "customer": { + "name": "Joshua Bennett", + "age": 72, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Patterson-Nash", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "star", + "category": "group", + "price": 648.7, + "stock_quantity": 331 + }, + "customer": { + "name": "Brandon Roberts", + "age": 57, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Harper, Robinson and Jacobs", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "send", + "category": "hard", + "price": 486.49, + "stock_quantity": 426 + }, + "customer": { + "name": "Douglas Levy", + "age": 39, + "country": "Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hughes LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hughes LLC", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "clear", + "category": "decade", + "price": 804.39, + "stock_quantity": 171 + }, + "customer": { + "name": "Lee Allen", + "age": 36, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Barker Inc", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "fear", + "category": "than", + "price": 258.08, + "stock_quantity": 686 + }, + "customer": { + "name": "Shelly Sandoval", + "age": 48, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Ibarra and Sons", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "morning", + "category": "eye", + "price": 106.6, + "stock_quantity": 733 + }, + "customer": { + "name": "Claudia Thomas", + "age": 69, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Stanley-Wyatt", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "art", + "category": "hand", + "price": 724.6, + "stock_quantity": 638 + }, + "customer": { + "name": "Dustin Smith", + "age": 33, + "country": "American Samoa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'King-Martinez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "King-Martinez", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "fire", + "category": "at", + "price": 603.87, + "stock_quantity": 44 + }, + "customer": { + "name": "Joshua Middleton", + "age": 42, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Calderon Ltd", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "themselves", + "category": "material", + "price": 550.98, + "stock_quantity": 373 + }, + "customer": { + "name": "Amber Rodgers", + "age": 21, + "country": "Namibia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stein and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stein and Sons", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "school", + "category": "never", + "price": 501.62, + "stock_quantity": 261 + }, + "customer": { + "name": "Heidi Dillon", + "age": 66, + "country": "Cocos (Keeling) Islands" + } + }, + { + "natural_query": "List all customers and their total order value for Soto-Reynolds.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Soto-Reynolds' GROUP BY c.customer_id", + "company": { + "name": "Soto-Reynolds", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "provide", + "category": "cold", + "price": 22.92, + "stock_quantity": 745 + }, + "customer": { + "name": "Madison Robinson", + "age": 75, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Chavez PLC", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "national", + "category": "camera", + "price": 881.43, + "stock_quantity": 357 + }, + "customer": { + "name": "Jennifer Graham", + "age": 41, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Hamilton, Wright and Thompson", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "risk", + "category": "score", + "price": 317.99, + "stock_quantity": 738 + }, + "customer": { + "name": "Dawn Rowe", + "age": 73, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Callahan, Carr and Graves", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "catch", + "category": "world", + "price": 890.06, + "stock_quantity": 781 + }, + "customer": { + "name": "Mark Williams", + "age": 76, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Mccoy, Nichols and Douglas", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "fear", + "category": "painting", + "price": 13.3, + "stock_quantity": 499 + }, + "customer": { + "name": "Christopher Deleon", + "age": 78, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Sanchez-Martin", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "them", + "category": "across", + "price": 26.36, + "stock_quantity": 236 + }, + "customer": { + "name": "Tamara Mathis", + "age": 75, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "York-Hicks", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "develop", + "category": "gun", + "price": 131.26, + "stock_quantity": 278 + }, + "customer": { + "name": "Deborah Aguirre", + "age": 58, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cook, Barr and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cook, Barr and Brown", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "age", + "category": "gun", + "price": 965.13, + "stock_quantity": 540 + }, + "customer": { + "name": "Alexandra Hodge", + "age": 50, + "country": "Zimbabwe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Walton Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Walton Group", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "give", + "category": "teacher", + "price": 939.45, + "stock_quantity": 195 + }, + "customer": { + "name": "Brandon Martinez", + "age": 36, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Taylor-Warren", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "participant", + "category": "trouble", + "price": 89.77, + "stock_quantity": 840 + }, + "customer": { + "name": "Brian Miller", + "age": 52, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Taylor-Strickland", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "name", + "category": "cell", + "price": 487.65, + "stock_quantity": 604 + }, + "customer": { + "name": "George Skinner", + "age": 21, + "country": "Indonesia" + } + }, + { + "natural_query": "What is the total profit for each country in Crawford-Wells?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Crawford-Wells' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Crawford-Wells", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "lead", + "category": "baby", + "price": 46.89, + "stock_quantity": 976 + }, + "customer": { + "name": "Sarah Tapia", + "age": 60, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Mckay, Bennett and White", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "everything", + "category": "money", + "price": 93.36, + "stock_quantity": 750 + }, + "customer": { + "name": "Heidi Murray", + "age": 53, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Martinez-Sparks", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "school", + "category": "among", + "price": 204.01, + "stock_quantity": 423 + }, + "customer": { + "name": "Paul Potter", + "age": 26, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Wright PLC", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "religious", + "category": "toward", + "price": 534.71, + "stock_quantity": 879 + }, + "customer": { + "name": "Alison Lee", + "age": 32, + "country": "Algeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith LLC", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "statement", + "category": "keep", + "price": 555.79, + "stock_quantity": 469 + }, + "customer": { + "name": "Emily Hess", + "age": 68, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Jones, Brennan and Santiago", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "growth", + "category": "attorney", + "price": 842.81, + "stock_quantity": 251 + }, + "customer": { + "name": "Kelly Richardson", + "age": 80, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Henderson Inc", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "sometimes", + "category": "suggest", + "price": 578.94, + "stock_quantity": 36 + }, + "customer": { + "name": "Lisa Jones", + "age": 31, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Hernandez-Klein", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "among", + "category": "least", + "price": 725.88, + "stock_quantity": 472 + }, + "customer": { + "name": "Stephanie Kim", + "age": 41, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Jones-Powers", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "defense", + "category": "our", + "price": 424.14, + "stock_quantity": 125 + }, + "customer": { + "name": "Bianca Livingston", + "age": 34, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Espinoza, Chandler and Jones", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "population", + "category": "popular", + "price": 499.16, + "stock_quantity": 968 + }, + "customer": { + "name": "Eric Turner", + "age": 46, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Robinson-Yates'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Robinson-Yates", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "reflect", + "category": "politics", + "price": 588.25, + "stock_quantity": 319 + }, + "customer": { + "name": "Brittany Brown", + "age": 62, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Lewis and Sons", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "carry", + "category": "bank", + "price": 334.58, + "stock_quantity": 41 + }, + "customer": { + "name": "Sheila Tran", + "age": 63, + "country": "Saint Helena" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Schwartz, Dunn and Andrews'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Schwartz, Dunn and Andrews", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "upon", + "category": "policy", + "price": 293.8, + "stock_quantity": 424 + }, + "customer": { + "name": "Samantha Jackson", + "age": 80, + "country": "Chad" + } + }, + { + "natural_query": "What is the total rating of all products for Shaffer and Sons?", + "sql_query": "SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Shaffer and Sons'", + "company": { + "name": "Shaffer and Sons", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "suffer", + "category": "life", + "price": 89.82, + "stock_quantity": 485 + }, + "customer": { + "name": "Rachel Jenkins", + "age": 80, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Peterson Ltd", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "put", + "category": "trip", + "price": 783.37, + "stock_quantity": 97 + }, + "customer": { + "name": "David Roman", + "age": 40, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Jenkins-Smith", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "garden", + "category": "old", + "price": 383.17, + "stock_quantity": 807 + }, + "customer": { + "name": "Aaron Shaw", + "age": 33, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Roberts-Valdez", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "pretty", + "category": "local", + "price": 857.85, + "stock_quantity": 464 + }, + "customer": { + "name": "Charles Gross", + "age": 40, + "country": "Finland" + } + }, + { + "natural_query": "What are the top 7 products by orders for Frey-Fuentes last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Frey-Fuentes' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7", + "company": { + "name": "Frey-Fuentes", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "idea", + "category": "unit", + "price": 283.68, + "stock_quantity": 281 + }, + "customer": { + "name": "Robert Chandler", + "age": 65, + "country": "Iraq" + } + }, + { + "natural_query": "How many orders were placed for Wells Group between 2024-02-13 and 2024-09-16?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Wells Group' AND order_date BETWEEN '2024-02-13' AND '2024-09-16'", + "company": { + "name": "Wells Group", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "continue", + "category": "feeling", + "price": 161.29, + "stock_quantity": 541 + }, + "customer": { + "name": "Caitlin Wallace", + "age": 37, + "country": "Eritrea" + } + }, + { + "natural_query": "Show me all products in the large category with a price over $105.14.", + "sql_query": "SELECT * FROM products WHERE category = 'large' AND price > 105.14", + "company": { + "name": "Johnson Group", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "boy", + "category": "large", + "price": 105.14, + "stock_quantity": 293 + }, + "customer": { + "name": "Makayla Williams", + "age": 23, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Morris-Saunders", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "situation", + "category": "crime", + "price": 850.8, + "stock_quantity": 185 + }, + "customer": { + "name": "Marissa Richardson MD", + "age": 52, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Mcbride-Watson", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "actually", + "category": "help", + "price": 213.12, + "stock_quantity": 755 + }, + "customer": { + "name": "Kent Middleton", + "age": 71, + "country": "Turks and Caicos Islands" + } + }, + { + "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'", + "company": { + "name": "Edwards LLC", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "listen", + "category": "television", + "price": 607.85, + "stock_quantity": 315 + }, + "customer": { + "name": "Michael Dominguez", + "age": 64, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Haynes, Taylor and Chan", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "charge", + "category": "bank", + "price": 302.74, + "stock_quantity": 535 + }, + "customer": { + "name": "Patrick Thornton", + "age": 75, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Smith, Hamilton and Davis", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "keep", + "category": "office", + "price": 790.67, + "stock_quantity": 357 + }, + "customer": { + "name": "Alan Hernandez", + "age": 32, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Benitez and Sons", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "friend", + "category": "quality", + "price": 703.86, + "stock_quantity": 235 + }, + "customer": { + "name": "Brandon Wagner", + "age": 70, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Huber LLC", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "interview", + "category": "coach", + "price": 967.77, + "stock_quantity": 789 + }, + "customer": { + "name": "Elizabeth Krause", + "age": 61, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Medina PLC", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "line", + "category": "thus", + "price": 427.8, + "stock_quantity": 82 + }, + "customer": { + "name": "Aaron Salazar", + "age": 80, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Douglas, Bryant and Carr", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "suffer", + "category": "purpose", + "price": 175.66, + "stock_quantity": 505 + }, + "customer": { + "name": "Robert Bates", + "age": 48, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Velazquez-Smith", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "drive", + "category": "cup", + "price": 509.85, + "stock_quantity": 548 + }, + "customer": { + "name": "James Caldwell", + "age": 24, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Stanley Ltd", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "child", + "category": "dark", + "price": 990.73, + "stock_quantity": 725 + }, + "customer": { + "name": "Lawrence Diaz", + "age": 67, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Marshall LLC", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "agree", + "category": "back", + "price": 316.83, + "stock_quantity": 836 + }, + "customer": { + "name": "Chad Richardson", + "age": 78, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Anderson-Day", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "someone", + "category": "report", + "price": 884.69, + "stock_quantity": 213 + }, + "customer": { + "name": "Brenda Wyatt", + "age": 41, + "country": "Azerbaijan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green, Patterson and Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green, Patterson and Johnson", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "enjoy", + "category": "stock", + "price": 860.62, + "stock_quantity": 730 + }, + "customer": { + "name": "Chelsea Martinez", + "age": 50, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Davis and Sons", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "call", + "category": "year", + "price": 875.22, + "stock_quantity": 875 + }, + "customer": { + "name": "Tracy Hutchinson", + "age": 21, + "country": "Namibia" + } + }, + { + "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'", + "company": { + "name": "Sanders, Young and Henderson", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "should", + "category": "child", + "price": 966.7, + "stock_quantity": 565 + }, + "customer": { + "name": "Patricia Franklin", + "age": 74, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Tucker-Brown", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "method", + "category": "friend", + "price": 440.86, + "stock_quantity": 861 + }, + "customer": { + "name": "Richard Clayton", + "age": 57, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "White-Chapman", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "able", + "category": "short", + "price": 236.53, + "stock_quantity": 822 + }, + "customer": { + "name": "Philip Morgan", + "age": 50, + "country": "Brunei Darussalam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Howard PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Howard PLC", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "campaign", + "category": "operation", + "price": 777.86, + "stock_quantity": 438 + }, + "customer": { + "name": "Lindsay Hill", + "age": 73, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Russell Inc", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "something", + "category": "between", + "price": 928.39, + "stock_quantity": 330 + }, + "customer": { + "name": "Daniel Simmons", + "age": 33, + "country": "Guatemala" + } + }, + { + "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'", + "company": { + "name": "Ellis-Terry", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "might", + "category": "article", + "price": 751.12, + "stock_quantity": 543 + }, + "customer": { + "name": "Kelly Frank", + "age": 40, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Rivera, Hall and Moss", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "protect", + "category": "from", + "price": 846.17, + "stock_quantity": 705 + }, + "customer": { + "name": "Ashley Sosa", + "age": 34, + "country": "Taiwan" + } + }, + { + "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'", + "company": { + "name": "Bell-Adams", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "employee", + "category": "ball", + "price": 306.23, + "stock_quantity": 626 + }, + "customer": { + "name": "Catherine Gross", + "age": 53, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Sanders-Lynn", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "apply", + "category": "work", + "price": 934.66, + "stock_quantity": 803 + }, + "customer": { + "name": "Shannon Booker", + "age": 21, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Davis-Rice", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "look", + "category": "open", + "price": 192.27, + "stock_quantity": 487 + }, + "customer": { + "name": "Gregory Campos", + "age": 30, + "country": "Uruguay" + } + }, + { + "natural_query": "List all products of Morrow, Robinson and Ross ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Morrow, Robinson and Ross' ORDER BY price DESC", + "company": { + "name": "Morrow, Robinson and Ross", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "price", + "category": "movement", + "price": 242.38, + "stock_quantity": 333 + }, + "customer": { + "name": "Dr. Beth Jackson", + "age": 80, + "country": "Ireland" + } + }, + { + "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'", + "company": { + "name": "Charles LLC", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "over", + "category": "group", + "price": 687.49, + "stock_quantity": 189 + }, + "customer": { + "name": "Elizabeth Byrd", + "age": 63, + "country": "Holy See (Vatican City State)" + } + }, + { + "natural_query": "What is the total profit for each country in Barr, Sanchez and Johnson?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Barr, Sanchez and Johnson' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Barr, Sanchez and Johnson", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "figure", + "category": "two", + "price": 386.85, + "stock_quantity": 816 + }, + "customer": { + "name": "Colin Johnson", + "age": 73, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Johnson Inc", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "inside", + "category": "provide", + "price": 554.12, + "stock_quantity": 367 + }, + "customer": { + "name": "Brian Williams", + "age": 80, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Bridges, Schneider and Harrington", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "feel", + "category": "audience", + "price": 607.28, + "stock_quantity": 631 + }, + "customer": { + "name": "Lori Hill MD", + "age": 42, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Mcneil LLC", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "first", + "category": "various", + "price": 745.2, + "stock_quantity": 271 + }, + "customer": { + "name": "Matthew Barrett", + "age": 52, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Fitzgerald Ltd", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "mouth", + "category": "nor", + "price": 748.43, + "stock_quantity": 851 + }, + "customer": { + "name": "Nancy Smith", + "age": 64, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Flores-Johnson", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "expect", + "category": "commercial", + "price": 943.17, + "stock_quantity": 215 + }, + "customer": { + "name": "Justin Estrada", + "age": 44, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Garcia, Burke and Wolf", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "drop", + "category": "great", + "price": 322.74, + "stock_quantity": 773 + }, + "customer": { + "name": "Kyle Allen", + "age": 76, + "country": "Cameroon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green, Turner and Harrison'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green, Turner and Harrison", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "pressure", + "category": "design", + "price": 475.23, + "stock_quantity": 553 + }, + "customer": { + "name": "Jeffery Fox", + "age": 53, + "country": "Anguilla" + } + }, + { + "natural_query": "List all products of Jones-Montgomery ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Jones-Montgomery' ORDER BY rating ASC", + "company": { + "name": "Jones-Montgomery", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "alone", + "category": "claim", + "price": 663.75, + "stock_quantity": 566 + }, + "customer": { + "name": "Connor Goodman", + "age": 77, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Robinson Group", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "tell", + "category": "politics", + "price": 810.47, + "stock_quantity": 980 + }, + "customer": { + "name": "Laura Santos", + "age": 38, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Conrad PLC", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "what", + "category": "inside", + "price": 804.06, + "stock_quantity": 468 + }, + "customer": { + "name": "Kristen Hudson", + "age": 54, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Cardenas Inc", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "much", + "category": "knowledge", + "price": 129.8, + "stock_quantity": 540 + }, + "customer": { + "name": "Victoria Howell", + "age": 73, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Gray-Palmer", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "campaign", + "category": "next", + "price": 759.75, + "stock_quantity": 642 + }, + "customer": { + "name": "Jeff Ortiz", + "age": 31, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Castaneda, Smith and Garcia", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "exist", + "category": "news", + "price": 126.19, + "stock_quantity": 972 + }, + "customer": { + "name": "James Cox", + "age": 79, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Johnson-Miller", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "practice", + "category": "contain", + "price": 774.43, + "stock_quantity": 816 + }, + "customer": { + "name": "Taylor Cook", + "age": 74, + "country": "New Zealand" + } + }, + { + "natural_query": "What are the top 5 products by customers for Thomas, Mckee and Cooper this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Thomas, Mckee and Cooper' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5", + "company": { + "name": "Thomas, Mckee and Cooper", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "friend", + "category": "indicate", + "price": 792.27, + "stock_quantity": 63 + }, + "customer": { + "name": "Jason Freeman", + "age": 30, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Smith Group", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "night", + "category": "cost", + "price": 294.18, + "stock_quantity": 792 + }, + "customer": { + "name": "Lindsey Johnson", + "age": 75, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Andrews Inc", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "base", + "category": "manage", + "price": 683.09, + "stock_quantity": 345 + }, + "customer": { + "name": "Mrs. Selena Li", + "age": 74, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Roberson Group", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "language", + "category": "material", + "price": 84.26, + "stock_quantity": 684 + }, + "customer": { + "name": "Melissa Gonzalez", + "age": 52, + "country": "Netherlands" + } + }, + { + "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'", + "company": { + "name": "Swanson, Alexander and Chase", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "edge", + "category": "clearly", + "price": 565.18, + "stock_quantity": 260 + }, + "customer": { + "name": "Helen Kirby", + "age": 65, + "country": "Kenya" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Coleman-Phillips'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Coleman-Phillips", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "thing", + "category": "reveal", + "price": 377.95, + "stock_quantity": 547 + }, + "customer": { + "name": "Brandy French", + "age": 34, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Ellison Ltd", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "gun", + "category": "least", + "price": 70.19, + "stock_quantity": 842 + }, + "customer": { + "name": "Lisa Bautista", + "age": 68, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Shaw-Berry", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "film", + "category": "heavy", + "price": 210.45, + "stock_quantity": 456 + }, + "customer": { + "name": "Mr. John Solomon", + "age": 23, + "country": "Macao" + } + }, + { + "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'", + "company": { + "name": "Vazquez Ltd", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "store", + "category": "car", + "price": 481.16, + "stock_quantity": 601 + }, + "customer": { + "name": "Gary Rogers", + "age": 68, + "country": "Nauru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Warren Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Warren Ltd", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "speak", + "category": "factor", + "price": 923.31, + "stock_quantity": 931 + }, + "customer": { + "name": "Nancy Glover", + "age": 62, + "country": "Vanuatu" + } + }, + { + "natural_query": "Show me all products in the writer category with a price over $645.21.", + "sql_query": "SELECT * FROM products WHERE category = 'writer' AND price > 645.21", + "company": { + "name": "Moore and Sons", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "position", + "category": "writer", + "price": 645.21, + "stock_quantity": 267 + }, + "customer": { + "name": "Michelle Roberts", + "age": 54, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Smith-Alexander", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "ball", + "category": "here", + "price": 199.7, + "stock_quantity": 458 + }, + "customer": { + "name": "Richard Koch", + "age": 52, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Pope-Mckenzie", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "some", + "category": "be", + "price": 889.96, + "stock_quantity": 603 + }, + "customer": { + "name": "Jesse Burns", + "age": 54, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Barr-Williamson", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "area", + "category": "water", + "price": 406.65, + "stock_quantity": 503 + }, + "customer": { + "name": "Christopher Campos", + "age": 58, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Hughes-Schroeder", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "poor", + "category": "hit", + "price": 103.06, + "stock_quantity": 827 + }, + "customer": { + "name": "Gregory Elliott", + "age": 79, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Brown, West and Henry", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "meeting", + "category": "information", + "price": 935.2, + "stock_quantity": 702 + }, + "customer": { + "name": "Angela Jenkins", + "age": 53, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Kirk Inc", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "possible", + "category": "yeah", + "price": 62.09, + "stock_quantity": 894 + }, + "customer": { + "name": "Robert Mcbride", + "age": 57, + "country": "Vietnam" + } + }, + { + "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'", + "company": { + "name": "Torres-Pacheco", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "create", + "category": "require", + "price": 783.87, + "stock_quantity": 987 + }, + "customer": { + "name": "Robert Anderson", + "age": 74, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Johnston Group", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "project", + "category": "Congress", + "price": 599.77, + "stock_quantity": 558 + }, + "customer": { + "name": "William Mason", + "age": 37, + "country": "Bolivia" + } + }, + { + "natural_query": "What is the total sales for each country in Dennis, Woods and Smith?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dennis, Woods and Smith' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Dennis, Woods and Smith", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "reflect", + "category": "whatever", + "price": 665.87, + "stock_quantity": 496 + }, + "customer": { + "name": "Colleen Garrett", + "age": 41, + "country": "Serbia" + } + }, + { + "natural_query": "List all products of Walton Ltd ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Walton Ltd' ORDER BY stock_quantity ASC", + "company": { + "name": "Walton Ltd", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "to", + "category": "meeting", + "price": 539.81, + "stock_quantity": 520 + }, + "customer": { + "name": "Brittany Martinez", + "age": 75, + "country": "Palestinian Territory" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Adams, Grimes and Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Adams, Grimes and Johnson", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "effect", + "category": "dream", + "price": 397.87, + "stock_quantity": 701 + }, + "customer": { + "name": "Charles Simmons", + "age": 76, + "country": "Turks and Caicos Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hansen, Medina and Cunningham'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hansen, Medina and Cunningham", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "today", + "category": "work", + "price": 867.1, + "stock_quantity": 619 + }, + "customer": { + "name": "Carol Foster", + "age": 21, + "country": "Maldives" + } + }, + { + "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'", + "company": { + "name": "Gomez, Hess and Cooke", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "art", + "category": "everything", + "price": 199.37, + "stock_quantity": 29 + }, + "customer": { + "name": "Kathleen Rodriguez", + "age": 27, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Boyd Ltd", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "seem", + "category": "matter", + "price": 42.2, + "stock_quantity": 382 + }, + "customer": { + "name": "Stephen Hardy", + "age": 60, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Schmidt Inc", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "throughout", + "category": "media", + "price": 59.09, + "stock_quantity": 153 + }, + "customer": { + "name": "Daniel Hinton", + "age": 58, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Chan-Diaz", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "you", + "category": "not", + "price": 923.48, + "stock_quantity": 960 + }, + "customer": { + "name": "Kathleen Craig", + "age": 32, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Peterson PLC", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "international", + "category": "mother", + "price": 902.97, + "stock_quantity": 377 + }, + "customer": { + "name": "Mary Saunders", + "age": 34, + "country": "Fiji" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Hunt, Dawson and Ross for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hunt, Dawson and Ross'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hunt, Dawson and Ross", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "affect", + "category": "college", + "price": 253.07, + "stock_quantity": 471 + }, + "customer": { + "name": "David Hammond", + "age": 70, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Wiggins-Gallagher", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "spend", + "category": "enjoy", + "price": 601.23, + "stock_quantity": 208 + }, + "customer": { + "name": "Phillip Fox", + "age": 33, + "country": "Cuba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Graham, Jackson and Pollard'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Graham, Jackson and Pollard", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "chance", + "category": "worker", + "price": 997.99, + "stock_quantity": 332 + }, + "customer": { + "name": "Laura Wong", + "age": 37, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Vazquez-Harris", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "body", + "category": "age", + "price": 359.68, + "stock_quantity": 215 + }, + "customer": { + "name": "Charles Stewart", + "age": 29, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Hammond, Edwards and Wagner", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "audience", + "category": "organization", + "price": 121.9, + "stock_quantity": 982 + }, + "customer": { + "name": "Kristina Branch", + "age": 40, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Ward Inc", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "hit", + "category": "rest", + "price": 734.73, + "stock_quantity": 125 + }, + "customer": { + "name": "Joshua Grant MD", + "age": 38, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Fischer and Sons", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "again", + "category": "top", + "price": 481.98, + "stock_quantity": 529 + }, + "customer": { + "name": "Ashley Ferguson", + "age": 66, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Rogers-Greene", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "traditional", + "category": "season", + "price": 161.92, + "stock_quantity": 351 + }, + "customer": { + "name": "Shelia Miller", + "age": 37, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Mitchell-Lewis", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "all", + "category": "challenge", + "price": 768.06, + "stock_quantity": 303 + }, + "customer": { + "name": "Benjamin Walter", + "age": 34, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Mueller, Daniel and Thomas", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "story", + "category": "nice", + "price": 183.47, + "stock_quantity": 22 + }, + "customer": { + "name": "Stephen Frazier", + "age": 43, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Vazquez and Sons", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "describe", + "category": "management", + "price": 671.11, + "stock_quantity": 50 + }, + "customer": { + "name": "Kristopher Harrison", + "age": 76, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Mcdaniel, Harris and Harrington", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "behavior", + "category": "personal", + "price": 842.71, + "stock_quantity": 188 + }, + "customer": { + "name": "Andrea Reed", + "age": 33, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Jackson-Williams", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "interesting", + "category": "nice", + "price": 728.71, + "stock_quantity": 203 + }, + "customer": { + "name": "Michael Howard", + "age": 59, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Giles, Miller and Burke", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "water", + "category": "behind", + "price": 634.73, + "stock_quantity": 565 + }, + "customer": { + "name": "Brian Butler", + "age": 67, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Maxwell, Jackson and Franklin", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "do", + "category": "quite", + "price": 524.63, + "stock_quantity": 78 + }, + "customer": { + "name": "Robert Berger", + "age": 70, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Abbott Group", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "door", + "category": "commercial", + "price": 906.29, + "stock_quantity": 772 + }, + "customer": { + "name": "Autumn Byrd", + "age": 39, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Ramirez-Clark", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "instead", + "category": "thus", + "price": 511.75, + "stock_quantity": 146 + }, + "customer": { + "name": "Dawn Jackson", + "age": 27, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Thomas, Miller and Brown", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "lead", + "category": "such", + "price": 839.26, + "stock_quantity": 506 + }, + "customer": { + "name": "Joseph Ashley", + "age": 48, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Hoover-Cardenas", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "kid", + "category": "court", + "price": 535.22, + "stock_quantity": 233 + }, + "customer": { + "name": "James Parker", + "age": 59, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Henson-Nixon", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "practice", + "category": "find", + "price": 779.89, + "stock_quantity": 725 + }, + "customer": { + "name": "Gregory Reynolds", + "age": 57, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Maddox and Sons", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "daughter", + "category": "all", + "price": 395.01, + "stock_quantity": 623 + }, + "customer": { + "name": "Julie Guerra", + "age": 23, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Schroeder-Wilson", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "stage", + "category": "left", + "price": 870.63, + "stock_quantity": 283 + }, + "customer": { + "name": "Mrs. Katherine Nguyen", + "age": 57, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Moody-Leonard", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "guy", + "category": "development", + "price": 510.21, + "stock_quantity": 76 + }, + "customer": { + "name": "Angela Elliott", + "age": 45, + "country": "Trinidad and Tobago" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wagner, Williams and Rowe'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wagner, Williams and Rowe", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "add", + "category": "center", + "price": 566.35, + "stock_quantity": 462 + }, + "customer": { + "name": "Grace Richardson", + "age": 30, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Nelson, Potts and Fernandez", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "world", + "category": "while", + "price": 654.89, + "stock_quantity": 184 + }, + "customer": { + "name": "Luis West", + "age": 34, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Byrd Ltd", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "race", + "category": "house", + "price": 911.16, + "stock_quantity": 310 + }, + "customer": { + "name": "Jeffrey Hammond", + "age": 32, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Stuart Ltd", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "administration", + "category": "fast", + "price": 946.73, + "stock_quantity": 290 + }, + "customer": { + "name": "Samantha Le", + "age": 38, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Hill-Hall", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "possible", + "category": "budget", + "price": 71.66, + "stock_quantity": 531 + }, + "customer": { + "name": "Jesse Kelly", + "age": 54, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Forbes-Adams", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "sell", + "category": "bit", + "price": 735.07, + "stock_quantity": 342 + }, + "customer": { + "name": "Tanner Mcclain", + "age": 20, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Watson, Morales and Johnson", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "account", + "category": "interesting", + "price": 350.06, + "stock_quantity": 882 + }, + "customer": { + "name": "Terri Lewis", + "age": 57, + "country": "Sudan" + } + }, + { + "natural_query": "List all customers and their total order value for Mcbride-Johnson.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Mcbride-Johnson' GROUP BY c.customer_id", + "company": { + "name": "Mcbride-Johnson", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "them", + "category": "chance", + "price": 744.92, + "stock_quantity": 926 + }, + "customer": { + "name": "Stephen Wade", + "age": 28, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Cruz Group", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "night", + "category": "box", + "price": 737.25, + "stock_quantity": 712 + }, + "customer": { + "name": "Kelsey Welch", + "age": 51, + "country": "Cuba" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Tucker, Baldwin and Castillo for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Tucker, Baldwin and Castillo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Tucker, Baldwin and Castillo", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "rule", + "category": "my", + "price": 606.58, + "stock_quantity": 233 + }, + "customer": { + "name": "Christina Cox", + "age": 55, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Fowler-Bryant", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "line", + "category": "example", + "price": 219.64, + "stock_quantity": 587 + }, + "customer": { + "name": "Michelle Jones", + "age": 54, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Thomas and Sons", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "forget", + "category": "human", + "price": 68.08, + "stock_quantity": 857 + }, + "customer": { + "name": "Rebecca Williams", + "age": 64, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Luna, Pope and Green", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "couple", + "category": "rate", + "price": 729.9, + "stock_quantity": 658 + }, + "customer": { + "name": "Laura Young", + "age": 54, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Bowen-Atkins", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "help", + "category": "decide", + "price": 241.12, + "stock_quantity": 729 + }, + "customer": { + "name": "Jonathan Valdez", + "age": 76, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Rose, Cooper and Huerta", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "hear", + "category": "ahead", + "price": 748.68, + "stock_quantity": 326 + }, + "customer": { + "name": "David Beasley", + "age": 37, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Skinner, Gilmore and Hernandez", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "executive", + "category": "him", + "price": 151.78, + "stock_quantity": 92 + }, + "customer": { + "name": "Edward Stevens", + "age": 62, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Glass-Oconnor", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "participant", + "category": "democratic", + "price": 414.26, + "stock_quantity": 864 + }, + "customer": { + "name": "Christy Mitchell", + "age": 32, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Bell PLC", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "why", + "category": "store", + "price": 586.32, + "stock_quantity": 559 + }, + "customer": { + "name": "Stephanie Tran", + "age": 27, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Burns Group", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "left", + "category": "provide", + "price": 320.12, + "stock_quantity": 125 + }, + "customer": { + "name": "Allen Russell", + "age": 35, + "country": "Tuvalu" + } + }, + { + "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'", + "company": { + "name": "Nicholson, Choi and Roberts", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "contain", + "category": "few", + "price": 639.7, + "stock_quantity": 888 + }, + "customer": { + "name": "Laura Rodgers", + "age": 46, + "country": "Mauritania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia, Le and Malone'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia, Le and Malone", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "conference", + "category": "from", + "price": 631.95, + "stock_quantity": 509 + }, + "customer": { + "name": "Karen Moss", + "age": 28, + "country": "Malaysia" + } + }, + { + "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'", + "company": { + "name": "Collins, Reyes and Gray", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "case", + "category": "edge", + "price": 668.25, + "stock_quantity": 683 + }, + "customer": { + "name": "Frederick Owen", + "age": 44, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Brooks, Meyer and Williams", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "leave", + "category": "natural", + "price": 128.41, + "stock_quantity": 515 + }, + "customer": { + "name": "Donna Mitchell", + "age": 66, + "country": "Palestinian Territory" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roth-Gilmore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roth-Gilmore", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "water", + "category": "food", + "price": 176.87, + "stock_quantity": 99 + }, + "customer": { + "name": "Ashley Hill", + "age": 20, + "country": "Tunisia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Foster LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Foster LLC", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "daughter", + "category": "baby", + "price": 73.93, + "stock_quantity": 645 + }, + "customer": { + "name": "Adam Williams", + "age": 46, + "country": "Cayman Islands" + } + }, + { + "natural_query": "What are the top 5 products by revenue for Deleon-Sampson all time?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Deleon-Sampson' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5", + "company": { + "name": "Deleon-Sampson", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "receive", + "category": "away", + "price": 562.29, + "stock_quantity": 424 + }, + "customer": { + "name": "David Ford", + "age": 78, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Evans, Walton and Charles", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "very", + "category": "reduce", + "price": 319.36, + "stock_quantity": 826 + }, + "customer": { + "name": "Steven Ingram", + "age": 73, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Schroeder-Gonzalez", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "certainly", + "category": "wonder", + "price": 58.38, + "stock_quantity": 264 + }, + "customer": { + "name": "Linda Walton", + "age": 62, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Smith-Webb", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "degree", + "category": "task", + "price": 952.18, + "stock_quantity": 658 + }, + "customer": { + "name": "Dean Howard", + "age": 28, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Morris-Elliott", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "environmental", + "category": "Mr", + "price": 172.12, + "stock_quantity": 67 + }, + "customer": { + "name": "Mark Garcia DDS", + "age": 62, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Bradford, Dixon and Harmon", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "little", + "category": "issue", + "price": 552.86, + "stock_quantity": 118 + }, + "customer": { + "name": "Derek Nguyen", + "age": 45, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Cole Inc", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "heavy", + "category": "design", + "price": 130.53, + "stock_quantity": 569 + }, + "customer": { + "name": "Carol Baker", + "age": 73, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Fuller LLC", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "question", + "category": "environment", + "price": 79.55, + "stock_quantity": 782 + }, + "customer": { + "name": "Amy Quinn", + "age": 45, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Beck LLC", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "authority", + "category": "sense", + "price": 520.84, + "stock_quantity": 999 + }, + "customer": { + "name": "Megan Whitney", + "age": 64, + "country": "China" + } + }, + { + "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'", + "company": { + "name": "Haynes, Berger and Smith", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "current", + "category": "sport", + "price": 563.94, + "stock_quantity": 555 + }, + "customer": { + "name": "Denise Tanner", + "age": 38, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Howard, Allen and Garrett", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "laugh", + "category": "economic", + "price": 498.49, + "stock_quantity": 729 + }, + "customer": { + "name": "Joshua Houston", + "age": 26, + "country": "France" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Reid, Brown and Guerra for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reid, Brown and Guerra'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reid, Brown and Guerra", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "share", + "category": "goal", + "price": 103.09, + "stock_quantity": 319 + }, + "customer": { + "name": "Miss Christina Pearson", + "age": 33, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Carlson, Brooks and Pitts", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "memory", + "category": "half", + "price": 119.38, + "stock_quantity": 830 + }, + "customer": { + "name": "Patrick Knight", + "age": 78, + "country": "Madagascar" + } + }, + { + "natural_query": "List all products of Wheeler and Sons ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Wheeler and Sons' ORDER BY rating DESC", + "company": { + "name": "Wheeler and Sons", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "history", + "category": "back", + "price": 345.68, + "stock_quantity": 885 + }, + "customer": { + "name": "Charlotte Harris", + "age": 68, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Francis, Guzman and Diaz", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "drive", + "category": "skill", + "price": 659.46, + "stock_quantity": 181 + }, + "customer": { + "name": "Gabriel Rhodes", + "age": 39, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Mason PLC", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "reduce", + "category": "media", + "price": 329.63, + "stock_quantity": 525 + }, + "customer": { + "name": "Ryan Smith", + "age": 63, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Villa Ltd", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "minute", + "category": "later", + "price": 353.15, + "stock_quantity": 316 + }, + "customer": { + "name": "Kevin Combs", + "age": 37, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Martinez, Jackson and Keith", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "method", + "category": "edge", + "price": 478.6, + "stock_quantity": 604 + }, + "customer": { + "name": "Susan Greene", + "age": 25, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Miller-Moore", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "exactly", + "category": "discuss", + "price": 585.45, + "stock_quantity": 549 + }, + "customer": { + "name": "Joseph James", + "age": 36, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Johnson-Matthews", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "affect", + "category": "set", + "price": 771.91, + "stock_quantity": 7 + }, + "customer": { + "name": "Timothy Williams", + "age": 27, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Moran, Thomas and Golden", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "happy", + "category": "or", + "price": 187.69, + "stock_quantity": 688 + }, + "customer": { + "name": "Daniel Solis", + "age": 33, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sanchez-Wolf'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sanchez-Wolf", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "safe", + "category": "hit", + "price": 790.43, + "stock_quantity": 87 + }, + "customer": { + "name": "Linda Marshall", + "age": 34, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Patterson, Pineda and Jones", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "protect", + "category": "across", + "price": 496.36, + "stock_quantity": 747 + }, + "customer": { + "name": "Marcus Anderson", + "age": 35, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Brown and Sons", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "major", + "category": "agreement", + "price": 303.82, + "stock_quantity": 664 + }, + "customer": { + "name": "Zachary Ramirez", + "age": 26, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rogers, Hinton and Carrillo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rogers, Hinton and Carrillo", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "every", + "category": "two", + "price": 383.4, + "stock_quantity": 561 + }, + "customer": { + "name": "Brian Mcguire", + "age": 32, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Taylor Group", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "join", + "category": "record", + "price": 976.29, + "stock_quantity": 981 + }, + "customer": { + "name": "Jerry Harris", + "age": 56, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Butler-Case", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "others", + "category": "each", + "price": 49.25, + "stock_quantity": 628 + }, + "customer": { + "name": "Patricia Martinez", + "age": 27, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Dean-Davis", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "gun", + "category": "evening", + "price": 322.4, + "stock_quantity": 921 + }, + "customer": { + "name": "Todd Bailey", + "age": 75, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Diaz PLC", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "decade", + "category": "fish", + "price": 218.82, + "stock_quantity": 551 + }, + "customer": { + "name": "Michele Hanson", + "age": 43, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Pacheco and Sons", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "buy", + "category": "story", + "price": 250.9, + "stock_quantity": 538 + }, + "customer": { + "name": "Karen Mccarthy", + "age": 77, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Lester, Lee and Blake", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "purpose", + "category": "build", + "price": 402.98, + "stock_quantity": 781 + }, + "customer": { + "name": "Beth Wilson", + "age": 75, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Trujillo-Cooper", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "money", + "category": "central", + "price": 369.54, + "stock_quantity": 361 + }, + "customer": { + "name": "Michael Gray", + "age": 79, + "country": "Chad" + } + }, + { + "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'", + "company": { + "name": "Hart PLC", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "possible", + "category": "voice", + "price": 10.83, + "stock_quantity": 569 + }, + "customer": { + "name": "Ricky Kennedy", + "age": 28, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Cooper, Williams and Hines", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "network", + "category": "safe", + "price": 888.36, + "stock_quantity": 468 + }, + "customer": { + "name": "Tammy Stewart", + "age": 80, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Wells and Sons", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "tonight", + "category": "character", + "price": 211.27, + "stock_quantity": 181 + }, + "customer": { + "name": "Donna Baker", + "age": 52, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Bates-Hunter", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "sort", + "category": "these", + "price": 868.78, + "stock_quantity": 47 + }, + "customer": { + "name": "Leah Williams", + "age": 32, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Gibson, Boyle and Collins", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "system", + "category": "director", + "price": 436.98, + "stock_quantity": 722 + }, + "customer": { + "name": "Tammy Robbins", + "age": 39, + "country": "Christmas Island" + } + }, + { + "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'", + "company": { + "name": "Clayton, Barnes and Green", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "modern", + "category": "word", + "price": 277.68, + "stock_quantity": 879 + }, + "customer": { + "name": "Shawn Murphy", + "age": 22, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Olson-Fowler", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "to", + "category": "public", + "price": 404.1, + "stock_quantity": 72 + }, + "customer": { + "name": "Kristin Smith", + "age": 69, + "country": "Vietnam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garrison Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garrison Ltd", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "morning", + "category": "family", + "price": 925.12, + "stock_quantity": 526 + }, + "customer": { + "name": "Thomas Baker", + "age": 62, + "country": "Antigua and Barbuda" + } + }, + { + "natural_query": "List all products of Sosa-Ball ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Sosa-Ball' ORDER BY stock_quantity DESC", + "company": { + "name": "Sosa-Ball", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "short", + "category": "mind", + "price": 80.14, + "stock_quantity": 861 + }, + "customer": { + "name": "Stephanie Baker", + "age": 70, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Chambers-Ellis", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "protect", + "category": "cultural", + "price": 739.38, + "stock_quantity": 842 + }, + "customer": { + "name": "Robert Ford", + "age": 63, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Park-Fritz", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "hit", + "category": "recently", + "price": 29.89, + "stock_quantity": 412 + }, + "customer": { + "name": "Glen Moore", + "age": 58, + "country": "Bosnia and Herzegovina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Higgins-Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Higgins-Moore", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "right", + "category": "coach", + "price": 895.34, + "stock_quantity": 605 + }, + "customer": { + "name": "Yvette Gomez", + "age": 50, + "country": "Guatemala" + } + }, + { + "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'", + "company": { + "name": "Wood Ltd", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "reveal", + "category": "foot", + "price": 146.53, + "stock_quantity": 499 + }, + "customer": { + "name": "Zachary Everett", + "age": 34, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Olson and Sons", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "join", + "category": "defense", + "price": 77.94, + "stock_quantity": 250 + }, + "customer": { + "name": "Deborah Hernandez", + "age": 66, + "country": "Palau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris-Baker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris-Baker", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "say", + "category": "something", + "price": 624.21, + "stock_quantity": 22 + }, + "customer": { + "name": "April Watts", + "age": 28, + "country": "Vanuatu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Myers PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Myers PLC", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "describe", + "category": "civil", + "price": 686.84, + "stock_quantity": 910 + }, + "customer": { + "name": "Christy Jackson", + "age": 27, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Montgomery, Taylor and Lewis", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "trip", + "category": "none", + "price": 259.6, + "stock_quantity": 328 + }, + "customer": { + "name": "James Rodriguez", + "age": 33, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Reyes-Adams", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "lead", + "category": "official", + "price": 685.38, + "stock_quantity": 798 + }, + "customer": { + "name": "Jerry Strickland", + "age": 77, + "country": "Eritrea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carroll, Arnold and Garcia'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carroll, Arnold and Garcia", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "development", + "category": "cold", + "price": 516.71, + "stock_quantity": 306 + }, + "customer": { + "name": "Jason Hogan", + "age": 40, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "White, Campbell and Murray", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "go", + "category": "that", + "price": 201.36, + "stock_quantity": 147 + }, + "customer": { + "name": "Robert Davis", + "age": 22, + "country": "Uganda" + } + }, + { + "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'", + "company": { + "name": "Hammond, Ray and Jackson", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "either", + "category": "science", + "price": 634.12, + "stock_quantity": 644 + }, + "customer": { + "name": "Taylor Mccarthy", + "age": 65, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Rodriguez PLC", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "dinner", + "category": "capital", + "price": 570.28, + "stock_quantity": 266 + }, + "customer": { + "name": "Terri Fields", + "age": 67, + "country": "French Guiana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rogers, Gallegos and Stanley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rogers, Gallegos and Stanley", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "senior", + "category": "short", + "price": 277.14, + "stock_quantity": 423 + }, + "customer": { + "name": "Anthony Schaefer", + "age": 54, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Moore Group", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "realize", + "category": "despite", + "price": 84.71, + "stock_quantity": 342 + }, + "customer": { + "name": "Frank Lewis", + "age": 38, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Young LLC", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "almost", + "category": "win", + "price": 971.0, + "stock_quantity": 323 + }, + "customer": { + "name": "Sharon Bradley", + "age": 77, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Bates, Bender and Hanson", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "free", + "category": "answer", + "price": 909.58, + "stock_quantity": 852 + }, + "customer": { + "name": "Joshua Wilson", + "age": 36, + "country": "Ethiopia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Duncan Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Duncan Group", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "pay", + "category": "yard", + "price": 161.21, + "stock_quantity": 759 + }, + "customer": { + "name": "Lisa Lee DVM", + "age": 70, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Miller, Keith and Lucero", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "around", + "category": "together", + "price": 72.33, + "stock_quantity": 953 + }, + "customer": { + "name": "Daniel Downs", + "age": 70, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Padilla Inc", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "just", + "category": "page", + "price": 383.44, + "stock_quantity": 930 + }, + "customer": { + "name": "Rebecca Hall", + "age": 24, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Morrow-Miller", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "enter", + "category": "nature", + "price": 716.07, + "stock_quantity": 533 + }, + "customer": { + "name": "Kristina Jarvis", + "age": 47, + "country": "Belarus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wright, Silva and Chang'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wright, Silva and Chang", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "foreign", + "category": "employee", + "price": 417.64, + "stock_quantity": 802 + }, + "customer": { + "name": "Tammy Ward", + "age": 47, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Carrillo-Lee", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "happy", + "category": "watch", + "price": 812.87, + "stock_quantity": 815 + }, + "customer": { + "name": "Anthony Daniel", + "age": 58, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Reeves-Taylor", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "state", + "category": "between", + "price": 648.67, + "stock_quantity": 513 + }, + "customer": { + "name": "Daniel Rowe", + "age": 33, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Williamson, Maldonado and Adams", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "half", + "category": "word", + "price": 851.03, + "stock_quantity": 631 + }, + "customer": { + "name": "Douglas Bird", + "age": 32, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Morrison, Winters and Simpson", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "general", + "category": "agency", + "price": 684.63, + "stock_quantity": 858 + }, + "customer": { + "name": "David Ramirez", + "age": 79, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Rice, Mcintyre and Morris", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "see", + "category": "knowledge", + "price": 777.57, + "stock_quantity": 841 + }, + "customer": { + "name": "Samuel David", + "age": 60, + "country": "Ukraine" + } + }, + { + "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'", + "company": { + "name": "Martin-Ayala", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "physical", + "category": "no", + "price": 463.15, + "stock_quantity": 672 + }, + "customer": { + "name": "Frank Lam", + "age": 29, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Watson-Cooper", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "system", + "category": "girl", + "price": 643.69, + "stock_quantity": 999 + }, + "customer": { + "name": "Heather Sanders", + "age": 67, + "country": "Jersey" + } + }, + { + "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'", + "company": { + "name": "Martin, Jimenez and Andrews", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "expect", + "category": "support", + "price": 838.1, + "stock_quantity": 73 + }, + "customer": { + "name": "Amanda Hardy", + "age": 47, + "country": "United States Minor Outlying Islands" + } + }, + { + "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'", + "company": { + "name": "Murray-Hall", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "compare", + "category": "family", + "price": 420.62, + "stock_quantity": 395 + }, + "customer": { + "name": "Mark Carlson", + "age": 34, + "country": "French Polynesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stokes PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stokes PLC", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "certainly", + "category": "fight", + "price": 207.72, + "stock_quantity": 346 + }, + "customer": { + "name": "Timothy Reynolds", + "age": 60, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Kelly-Patterson", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "middle", + "category": "direction", + "price": 79.08, + "stock_quantity": 560 + }, + "customer": { + "name": "Daniel Murphy", + "age": 33, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Hill-Romero", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "blue", + "category": "last", + "price": 620.39, + "stock_quantity": 583 + }, + "customer": { + "name": "Tara Woodard", + "age": 66, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Foley-Soto", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "voice", + "category": "impact", + "price": 762.47, + "stock_quantity": 967 + }, + "customer": { + "name": "Ryan Lee", + "age": 44, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Stewart, Taylor and Goodman", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "involve", + "category": "painting", + "price": 523.4, + "stock_quantity": 427 + }, + "customer": { + "name": "William Giles", + "age": 47, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Huber, Mills and Gonzalez", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "reveal", + "category": "food", + "price": 604.72, + "stock_quantity": 248 + }, + "customer": { + "name": "Antonio Boone", + "age": 50, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Manning-Wood", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "serious", + "category": "food", + "price": 450.93, + "stock_quantity": 536 + }, + "customer": { + "name": "Christopher James", + "age": 36, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Cunningham-Wright", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "available", + "category": "themselves", + "price": 735.49, + "stock_quantity": 927 + }, + "customer": { + "name": "Bonnie Sullivan", + "age": 33, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Ramsey, Morse and Luna", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "thousand", + "category": "offer", + "price": 225.19, + "stock_quantity": 990 + }, + "customer": { + "name": "Andrea Foster", + "age": 31, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Anderson Group", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "environmental", + "category": "recent", + "price": 214.29, + "stock_quantity": 822 + }, + "customer": { + "name": "Brenda Holmes", + "age": 67, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Holloway Group", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "land", + "category": "certain", + "price": 806.04, + "stock_quantity": 493 + }, + "customer": { + "name": "Eduardo Ferguson", + "age": 37, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "Anderson Ltd", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "make", + "category": "machine", + "price": 942.81, + "stock_quantity": 539 + }, + "customer": { + "name": "Larry Kelly", + "age": 57, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Joyce, Livingston and Smith", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "whose", + "category": "debate", + "price": 570.92, + "stock_quantity": 50 + }, + "customer": { + "name": "Amanda Wagner", + "age": 50, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson PLC", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "capital", + "category": "herself", + "price": 320.49, + "stock_quantity": 319 + }, + "customer": { + "name": "Kyle Williams", + "age": 19, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Robertson, Woods and Martin", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "still", + "category": "including", + "price": 703.99, + "stock_quantity": 68 + }, + "customer": { + "name": "Christopher Keller", + "age": 52, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Ramirez-Kemp", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "turn", + "category": "impact", + "price": 298.79, + "stock_quantity": 156 + }, + "customer": { + "name": "Mrs. Kristin Sanders", + "age": 47, + "country": "North Macedonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller-Garcia'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller-Garcia", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "less", + "category": "right", + "price": 303.18, + "stock_quantity": 858 + }, + "customer": { + "name": "Emma Villanueva", + "age": 44, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Charles, Miller and Larsen", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "cut", + "category": "cell", + "price": 679.43, + "stock_quantity": 825 + }, + "customer": { + "name": "Ashley Tucker", + "age": 34, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "natural_query": "How many orders were placed for Lopez, Hoover and Bowen between 2024-01-07 and 2024-04-23?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lopez, Hoover and Bowen' AND order_date BETWEEN '2024-01-07' AND '2024-04-23'", + "company": { + "name": "Lopez, Hoover and Bowen", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "although", + "category": "security", + "price": 151.29, + "stock_quantity": 354 + }, + "customer": { + "name": "Mary Pierce", + "age": 23, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Williams-Henry", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "detail", + "category": "Congress", + "price": 774.55, + "stock_quantity": 838 + }, + "customer": { + "name": "Stephen Vargas", + "age": 55, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Woods-Miller", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "edge", + "category": "rich", + "price": 552.94, + "stock_quantity": 856 + }, + "customer": { + "name": "Samuel Jensen", + "age": 27, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Ferguson, Banks and Morgan", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "production", + "category": "stand", + "price": 696.84, + "stock_quantity": 815 + }, + "customer": { + "name": "Troy Thompson", + "age": 80, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Phillips-Garrison", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "church", + "category": "more", + "price": 470.37, + "stock_quantity": 84 + }, + "customer": { + "name": "Krista Dalton", + "age": 66, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Jackson LLC", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "out", + "category": "amount", + "price": 698.86, + "stock_quantity": 220 + }, + "customer": { + "name": "Sean West MD", + "age": 19, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Frye and Sons", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "spend", + "category": "home", + "price": 574.13, + "stock_quantity": 803 + }, + "customer": { + "name": "Harry Thompson", + "age": 30, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Burton, Gonzalez and Wright", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "help", + "category": "bag", + "price": 808.8, + "stock_quantity": 47 + }, + "customer": { + "name": "Daniel Wood Jr.", + "age": 80, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Miller, Miller and Miller", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "pass", + "category": "thought", + "price": 274.38, + "stock_quantity": 443 + }, + "customer": { + "name": "Stephanie Rogers", + "age": 68, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Leach PLC", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "listen", + "category": "president", + "price": 670.99, + "stock_quantity": 587 + }, + "customer": { + "name": "Daniel Hall", + "age": 67, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Torres-Green", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "fire", + "category": "even", + "price": 750.77, + "stock_quantity": 584 + }, + "customer": { + "name": "Megan Cook", + "age": 60, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "White, Henderson and Davis", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "avoid", + "category": "girl", + "price": 18.18, + "stock_quantity": 391 + }, + "customer": { + "name": "Heather Golden", + "age": 49, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Benson Ltd", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "cup", + "category": "appear", + "price": 459.04, + "stock_quantity": 449 + }, + "customer": { + "name": "Ryan Sanford", + "age": 66, + "country": "Taiwan" + } + }, + { + "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'", + "company": { + "name": "Miller and Sons", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "large", + "category": "between", + "price": 581.05, + "stock_quantity": 845 + }, + "customer": { + "name": "Oscar Davis", + "age": 80, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Erickson PLC", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "play", + "category": "other", + "price": 733.8, + "stock_quantity": 987 + }, + "customer": { + "name": "Philip Williams", + "age": 44, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Smith, Giles and Reyes", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "up", + "category": "too", + "price": 393.25, + "stock_quantity": 165 + }, + "customer": { + "name": "Sherri Thompson", + "age": 59, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Montes-Hardin", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "Democrat", + "category": "role", + "price": 235.54, + "stock_quantity": 513 + }, + "customer": { + "name": "Douglas Turner", + "age": 78, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Willis, Anderson and Smith", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "professor", + "category": "table", + "price": 160.55, + "stock_quantity": 130 + }, + "customer": { + "name": "Michelle Gonzalez", + "age": 74, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Aguilar-Wade", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "exist", + "category": "head", + "price": 922.02, + "stock_quantity": 4 + }, + "customer": { + "name": "Amanda Landry", + "age": 27, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Robertson, Howard and Harrington", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "bill", + "category": "between", + "price": 525.94, + "stock_quantity": 669 + }, + "customer": { + "name": "Todd Carson", + "age": 29, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Franklin-Mathews", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "account", + "category": "quite", + "price": 993.14, + "stock_quantity": 846 + }, + "customer": { + "name": "Rebecca Cooper", + "age": 75, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Tate-Stevens", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "often", + "category": "movie", + "price": 821.8, + "stock_quantity": 805 + }, + "customer": { + "name": "Jane Valencia", + "age": 33, + "country": "United States Minor Outlying Islands" + } + }, + { + "natural_query": "What is the average quantity of all products for Gibson-Powers?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Gibson-Powers'", + "company": { + "name": "Gibson-Powers", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "physical", + "category": "hold", + "price": 472.53, + "stock_quantity": 943 + }, + "customer": { + "name": "George Frazier", + "age": 50, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Phillips LLC", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "town", + "category": "his", + "price": 196.97, + "stock_quantity": 342 + }, + "customer": { + "name": "Melanie Tapia", + "age": 27, + "country": "Japan" + } + }, + { + "natural_query": "What is the total quantity of all products for Greene and Sons?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Greene and Sons'", + "company": { + "name": "Greene and Sons", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "still", + "category": "full", + "price": 458.51, + "stock_quantity": 803 + }, + "customer": { + "name": "Adam Thomas", + "age": 49, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Randall Group", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "ok", + "category": "rather", + "price": 154.91, + "stock_quantity": 765 + }, + "customer": { + "name": "Brent Sims", + "age": 50, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Delgado-Bowman", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "assume", + "category": "store", + "price": 819.33, + "stock_quantity": 80 + }, + "customer": { + "name": "Shannon Nguyen", + "age": 37, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Gomez Group", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "plan", + "category": "ok", + "price": 778.84, + "stock_quantity": 140 + }, + "customer": { + "name": "Doris Thornton", + "age": 30, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Mcdonald-Nguyen", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "very", + "category": "hour", + "price": 935.2, + "stock_quantity": 597 + }, + "customer": { + "name": "Mark Fleming", + "age": 20, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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'", + "company": { + "name": "Nelson-Hanson", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "especially", + "category": "kid", + "price": 308.89, + "stock_quantity": 539 + }, + "customer": { + "name": "Cheyenne Moore", + "age": 77, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Spencer Inc", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "military", + "category": "quickly", + "price": 726.61, + "stock_quantity": 987 + }, + "customer": { + "name": "Jeff Todd", + "age": 52, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Sutton Inc", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "think", + "category": "soldier", + "price": 469.18, + "stock_quantity": 44 + }, + "customer": { + "name": "James Chase", + "age": 22, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Valdez, Hopkins and Cochran", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "happen", + "category": "since", + "price": 707.46, + "stock_quantity": 267 + }, + "customer": { + "name": "Elizabeth Huffman", + "age": 58, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Jones-Smith", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "television", + "category": "than", + "price": 614.67, + "stock_quantity": 930 + }, + "customer": { + "name": "Yvette Stephens", + "age": 28, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Lyons PLC", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "red", + "category": "measure", + "price": 488.37, + "stock_quantity": 671 + }, + "customer": { + "name": "Robert Wright", + "age": 59, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Gentry LLC", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "activity", + "category": "able", + "price": 63.79, + "stock_quantity": 939 + }, + "customer": { + "name": "Joseph Simmons", + "age": 63, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Zavala-Torres", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "pass", + "category": "music", + "price": 579.42, + "stock_quantity": 805 + }, + "customer": { + "name": "Stephanie Mullins", + "age": 45, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Russo-Rodriguez", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "whom", + "category": "experience", + "price": 894.59, + "stock_quantity": 815 + }, + "customer": { + "name": "Erika Sexton", + "age": 62, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Swanson-Ramirez", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "authority", + "category": "cold", + "price": 668.59, + "stock_quantity": 447 + }, + "customer": { + "name": "Tanner Boyer", + "age": 41, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Rosales-Carter", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "character", + "category": "five", + "price": 609.77, + "stock_quantity": 395 + }, + "customer": { + "name": "Alan Perry", + "age": 43, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Martin, Abbott and Smith", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "dream", + "category": "do", + "price": 862.41, + "stock_quantity": 881 + }, + "customer": { + "name": "Steven Miller", + "age": 71, + "country": "China" + } + }, + { + "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'", + "company": { + "name": "Villanueva-Hale", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "name", + "category": "first", + "price": 495.91, + "stock_quantity": 979 + }, + "customer": { + "name": "Robert Gordon", + "age": 70, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Andrews PLC", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "sort", + "category": "allow", + "price": 466.97, + "stock_quantity": 724 + }, + "customer": { + "name": "Sharon Olsen", + "age": 23, + "country": "Solomon Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Haley, Perez and Alexander'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Haley, Perez and Alexander", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "art", + "category": "receive", + "price": 123.84, + "stock_quantity": 527 + }, + "customer": { + "name": "Dana Anderson", + "age": 33, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Schroeder, Woodard and Rodriguez", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "would", + "category": "board", + "price": 247.57, + "stock_quantity": 672 + }, + "customer": { + "name": "Dana Lawrence", + "age": 76, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Anderson PLC", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "process", + "category": "their", + "price": 274.16, + "stock_quantity": 829 + }, + "customer": { + "name": "Philip Chapman", + "age": 50, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Hall-King", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "next", + "category": "single", + "price": 447.95, + "stock_quantity": 261 + }, + "customer": { + "name": "Nichole Robbins", + "age": 34, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Callahan, Porter and Oliver", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "event", + "category": "attorney", + "price": 506.24, + "stock_quantity": 680 + }, + "customer": { + "name": "Jessica Ramirez", + "age": 24, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Brooks, Garrett and Curry", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "myself", + "category": "some", + "price": 869.74, + "stock_quantity": 391 + }, + "customer": { + "name": "Andre Sheppard", + "age": 41, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Robinson, Martinez and Smith", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "factor", + "category": "city", + "price": 419.29, + "stock_quantity": 351 + }, + "customer": { + "name": "Nicole Hall", + "age": 60, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Ramos-Edwards", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "wrong", + "category": "a", + "price": 691.73, + "stock_quantity": 107 + }, + "customer": { + "name": "Kylie Davis", + "age": 60, + "country": "Panama" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Holden, Bush and Mitchell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Holden, Bush and Mitchell", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "Democrat", + "category": "among", + "price": 957.28, + "stock_quantity": 545 + }, + "customer": { + "name": "Paul Olson", + "age": 45, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Williams, Silva and Hernandez", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "future", + "category": "series", + "price": 654.27, + "stock_quantity": 882 + }, + "customer": { + "name": "Jason Hernandez", + "age": 45, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Sandoval PLC", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "before", + "category": "shake", + "price": 255.76, + "stock_quantity": 391 + }, + "customer": { + "name": "Nicholas Chapman", + "age": 41, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Torres, Newman and Cox", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "century", + "category": "task", + "price": 402.09, + "stock_quantity": 740 + }, + "customer": { + "name": "Jordan Olson", + "age": 36, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Lewis, Brock and Wilson", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "page", + "category": "quite", + "price": 36.01, + "stock_quantity": 376 + }, + "customer": { + "name": "David Guzman", + "age": 70, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Barry-Scott", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "list", + "category": "career", + "price": 694.9, + "stock_quantity": 298 + }, + "customer": { + "name": "Donna Morris", + "age": 27, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Rodriguez Inc", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "ask", + "category": "a", + "price": 997.18, + "stock_quantity": 376 + }, + "customer": { + "name": "Natalie Cummings", + "age": 36, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Gilbert, Johnson and Garza", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "establish", + "category": "partner", + "price": 391.27, + "stock_quantity": 793 + }, + "customer": { + "name": "Paul Tucker", + "age": 62, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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'", + "company": { + "name": "Waters, Pearson and Hunt", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "difficult", + "category": "song", + "price": 215.59, + "stock_quantity": 98 + }, + "customer": { + "name": "Jacqueline Lindsey", + "age": 71, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Gallegos, Adams and Walker", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "relate", + "category": "control", + "price": 804.57, + "stock_quantity": 179 + }, + "customer": { + "name": "Rachel Martinez", + "age": 29, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Schwartz and Newton", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "community", + "category": "everyone", + "price": 847.95, + "stock_quantity": 862 + }, + "customer": { + "name": "Paul Lowe", + "age": 61, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Riley-Morgan", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "American", + "category": "the", + "price": 125.74, + "stock_quantity": 772 + }, + "customer": { + "name": "Mrs. Alicia Rubio DDS", + "age": 80, + "country": "Botswana" + } + }, + { + "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'", + "company": { + "name": "Burns, Griffith and Smith", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "performance", + "category": "computer", + "price": 978.58, + "stock_quantity": 655 + }, + "customer": { + "name": "Rebecca Edwards", + "age": 54, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Smith, Huber and Harrison", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "let", + "category": "positive", + "price": 150.91, + "stock_quantity": 229 + }, + "customer": { + "name": "Jessica Frazier", + "age": 35, + "country": "Sri Lanka" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frazier-Castillo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frazier-Castillo", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "around", + "category": "writer", + "price": 697.84, + "stock_quantity": 340 + }, + "customer": { + "name": "Heather Smith", + "age": 70, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Harrison, Miller and Conrad", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "him", + "category": "baby", + "price": 991.67, + "stock_quantity": 948 + }, + "customer": { + "name": "Matthew Rogers", + "age": 52, + "country": "Saint Kitts and Nevis" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wang-Erickson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wang-Erickson", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "offer", + "category": "speech", + "price": 387.89, + "stock_quantity": 97 + }, + "customer": { + "name": "Anthony Cook", + "age": 35, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Petty Inc", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "wide", + "category": "clear", + "price": 200.15, + "stock_quantity": 562 + }, + "customer": { + "name": "Beth Phillips", + "age": 70, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Pittman Ltd", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "now", + "category": "rule", + "price": 187.13, + "stock_quantity": 51 + }, + "customer": { + "name": "Eric Lutz", + "age": 57, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Sandoval, Dennis and Smith", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "tree", + "category": "enter", + "price": 675.39, + "stock_quantity": 807 + }, + "customer": { + "name": "Jennifer Ryan", + "age": 69, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Johnson, Elliott and Herrera", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "enter", + "category": "win", + "price": 730.61, + "stock_quantity": 341 + }, + "customer": { + "name": "Angela Vaughn", + "age": 27, + "country": "Maldives" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Duncan and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Duncan and Sons", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "onto", + "category": "first", + "price": 763.17, + "stock_quantity": 30 + }, + "customer": { + "name": "Sandra Thompson", + "age": 36, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Robinson Inc", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "when", + "category": "defense", + "price": 156.72, + "stock_quantity": 304 + }, + "customer": { + "name": "Ryan Bradley", + "age": 73, + "country": "Turks and Caicos Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Calhoun, Burns and Howell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Calhoun, Burns and Howell", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "stock", + "category": "health", + "price": 263.68, + "stock_quantity": 845 + }, + "customer": { + "name": "John Brown", + "age": 76, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "David-Johnson", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "hit", + "category": "machine", + "price": 183.32, + "stock_quantity": 262 + }, + "customer": { + "name": "Joseph Lewis", + "age": 50, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Clark, Martinez and Phillips", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "less", + "category": "can", + "price": 689.07, + "stock_quantity": 607 + }, + "customer": { + "name": "Todd Chapman", + "age": 56, + "country": "Comoros" + } + }, + { + "natural_query": "List all customers and their total order value for Nguyen, Johnson and Obrien.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Nguyen, Johnson and Obrien' GROUP BY c.customer_id", + "company": { + "name": "Nguyen, Johnson and Obrien", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "gas", + "category": "record", + "price": 352.64, + "stock_quantity": 980 + }, + "customer": { + "name": "Dylan Buchanan", + "age": 20, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Jimenez-Owens", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "about", + "category": "travel", + "price": 816.68, + "stock_quantity": 957 + }, + "customer": { + "name": "Tara Robles", + "age": 75, + "country": "Isle of Man" + } + }, + { + "natural_query": "List all customers and their total order value for Graham-Newton.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Graham-Newton' GROUP BY c.customer_id", + "company": { + "name": "Graham-Newton", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "if", + "category": "less", + "price": 19.43, + "stock_quantity": 902 + }, + "customer": { + "name": "Patricia Giles", + "age": 56, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Johnson and Sons", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "attorney", + "category": "human", + "price": 558.6, + "stock_quantity": 22 + }, + "customer": { + "name": "Joshua Hart", + "age": 38, + "country": "Kenya" + } + }, + { + "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'", + "company": { + "name": "Jenkins, Russell and Miller", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "over", + "category": "who", + "price": 651.95, + "stock_quantity": 672 + }, + "customer": { + "name": "Carly Hayes", + "age": 21, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Payne, Hall and Hendricks", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "word", + "category": "show", + "price": 978.94, + "stock_quantity": 973 + }, + "customer": { + "name": "Linda Thompson", + "age": 46, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Pittman, Shaw and Cook", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "remember", + "category": "huge", + "price": 948.11, + "stock_quantity": 185 + }, + "customer": { + "name": "Christopher Miller", + "age": 61, + "country": "Lao People's Democratic Republic" + } + }, + { + "natural_query": "What is the average price of all products for Allen Group?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Allen Group'", + "company": { + "name": "Allen Group", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "item", + "category": "their", + "price": 485.5, + "stock_quantity": 615 + }, + "customer": { + "name": "Norma Romero", + "age": 76, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Lozano-Owen", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "fall", + "category": "catch", + "price": 77.91, + "stock_quantity": 703 + }, + "customer": { + "name": "Anne Morgan", + "age": 19, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Reid Group", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "compare", + "category": "father", + "price": 90.99, + "stock_quantity": 434 + }, + "customer": { + "name": "Jonathan Lindsey", + "age": 70, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Hill, Callahan and Johnson", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "raise", + "category": "less", + "price": 143.32, + "stock_quantity": 162 + }, + "customer": { + "name": "Michael Blake", + "age": 24, + "country": "United Arab Emirates" + } + }, + { + "natural_query": "List all customers and their total order value for Curtis PLC.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Curtis PLC' GROUP BY c.customer_id", + "company": { + "name": "Curtis PLC", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "day", + "category": "mean", + "price": 265.95, + "stock_quantity": 812 + }, + "customer": { + "name": "John Brown", + "age": 49, + "country": "American Samoa" + } + }, + { + "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'", + "company": { + "name": "Hoffman-Patterson", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "bag", + "category": "traditional", + "price": 743.86, + "stock_quantity": 527 + }, + "customer": { + "name": "Stephanie Hart", + "age": 58, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Miller-Melton", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "term", + "category": "great", + "price": 708.88, + "stock_quantity": 534 + }, + "customer": { + "name": "Jamie Chen", + "age": 24, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Lawrence-Jackson", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "production", + "category": "mother", + "price": 222.14, + "stock_quantity": 553 + }, + "customer": { + "name": "Larry Warren", + "age": 54, + "country": "Morocco" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rios, Miles and Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rios, Miles and Moore", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "evidence", + "category": "agency", + "price": 857.85, + "stock_quantity": 248 + }, + "customer": { + "name": "Shawn Gomez", + "age": 23, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Anderson Inc", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "all", + "category": "hundred", + "price": 442.15, + "stock_quantity": 440 + }, + "customer": { + "name": "Janice Norris", + "age": 25, + "country": "New Caledonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wheeler-Reynolds'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wheeler-Reynolds", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "radio", + "category": "statement", + "price": 171.54, + "stock_quantity": 815 + }, + "customer": { + "name": "Dale Henry", + "age": 63, + "country": "Faroe Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fox LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fox LLC", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "focus", + "category": "their", + "price": 22.14, + "stock_quantity": 978 + }, + "customer": { + "name": "Lauren King", + "age": 30, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Martin, Leon and Harper", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "market", + "category": "itself", + "price": 923.61, + "stock_quantity": 372 + }, + "customer": { + "name": "Tiffany Lewis", + "age": 58, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Smith, Moreno and Strickland", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "foot", + "category": "gun", + "price": 707.16, + "stock_quantity": 995 + }, + "customer": { + "name": "Anthony Garcia", + "age": 35, + "country": "Ghana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson, Jenkins and Rodgers'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson, Jenkins and Rodgers", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "modern", + "category": "first", + "price": 309.55, + "stock_quantity": 973 + }, + "customer": { + "name": "Paige Novak MD", + "age": 55, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Graham-Quinn", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "health", + "category": "during", + "price": 584.15, + "stock_quantity": 873 + }, + "customer": { + "name": "Jessica Mcdonald", + "age": 51, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Jackson, Kelly and Petersen", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "thank", + "category": "realize", + "price": 429.65, + "stock_quantity": 629 + }, + "customer": { + "name": "Stephanie Thomas", + "age": 47, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Harris Ltd", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "yourself", + "category": "create", + "price": 149.3, + "stock_quantity": 919 + }, + "customer": { + "name": "Scott Barrett", + "age": 75, + "country": "Austria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hayes, Evans and Gonzalez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hayes, Evans and Gonzalez", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "clearly", + "category": "policy", + "price": 263.74, + "stock_quantity": 354 + }, + "customer": { + "name": "Raymond Bennett", + "age": 24, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Thompson, Holder and Walton", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "write", + "category": "adult", + "price": 354.3, + "stock_quantity": 971 + }, + "customer": { + "name": "Sherry Hernandez", + "age": 60, + "country": "Canada" + } + }, + { + "natural_query": "What is the total sales for each supplier in Hanson Group?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hanson Group' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Hanson Group", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "prepare", + "category": "radio", + "price": 264.9, + "stock_quantity": 658 + }, + "customer": { + "name": "David Scott", + "age": 27, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Gay and Sons", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "several", + "category": "after", + "price": 428.52, + "stock_quantity": 65 + }, + "customer": { + "name": "Kristin Harmon", + "age": 26, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Gallegos-Diaz", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "upon", + "category": "similar", + "price": 297.26, + "stock_quantity": 545 + }, + "customer": { + "name": "Michael Fry", + "age": 38, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Evans Inc", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "take", + "category": "whether", + "price": 895.73, + "stock_quantity": 922 + }, + "customer": { + "name": "Brian Garcia", + "age": 21, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Stephens, Olson and Hernandez", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "week", + "category": "positive", + "price": 277.2, + "stock_quantity": 612 + }, + "customer": { + "name": "Douglas White", + "age": 32, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Harris-Gomez", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "tell", + "category": "under", + "price": 120.66, + "stock_quantity": 100 + }, + "customer": { + "name": "Dalton Ramirez", + "age": 63, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Robbins-Jimenez", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "official", + "category": "charge", + "price": 724.93, + "stock_quantity": 160 + }, + "customer": { + "name": "Amanda Evans", + "age": 76, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Weber-Dennis", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "man", + "category": "pretty", + "price": 614.11, + "stock_quantity": 685 + }, + "customer": { + "name": "Leah Abbott", + "age": 55, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Wright-Hernandez", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "assume", + "category": "beat", + "price": 861.05, + "stock_quantity": 477 + }, + "customer": { + "name": "Kimberly Lee", + "age": 65, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Powers-Wallace", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "into", + "category": "ability", + "price": 890.59, + "stock_quantity": 160 + }, + "customer": { + "name": "Paul Jones", + "age": 50, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Williams, Powell and Wilson", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "fall", + "category": "forget", + "price": 383.43, + "stock_quantity": 926 + }, + "customer": { + "name": "Duane Murphy", + "age": 18, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Garcia-Meyer", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "some", + "category": "foreign", + "price": 42.4, + "stock_quantity": 820 + }, + "customer": { + "name": "Teresa Perez", + "age": 72, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Byrd, Warren and Matthews", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "course", + "category": "carry", + "price": 280.96, + "stock_quantity": 713 + }, + "customer": { + "name": "Mary Campbell", + "age": 68, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Clark-White", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "design", + "category": "return", + "price": 175.73, + "stock_quantity": 50 + }, + "customer": { + "name": "Ashley Morgan", + "age": 18, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Reynolds PLC", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "night", + "category": "here", + "price": 799.38, + "stock_quantity": 849 + }, + "customer": { + "name": "Nicholas Lane", + "age": 27, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Moon-Rhodes", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "next", + "category": "street", + "price": 516.88, + "stock_quantity": 893 + }, + "customer": { + "name": "Michelle Glenn PhD", + "age": 67, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Clark-Melton", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "he", + "category": "deal", + "price": 116.67, + "stock_quantity": 271 + }, + "customer": { + "name": "Kimberly Dickson", + "age": 65, + "country": "Taiwan" + } + }, + { + "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'", + "company": { + "name": "Wood Ltd", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "sport", + "category": "up", + "price": 674.34, + "stock_quantity": 938 + }, + "customer": { + "name": "Sabrina Anderson", + "age": 44, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Burton, Delgado and Mccoy", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "about", + "category": "rate", + "price": 986.03, + "stock_quantity": 137 + }, + "customer": { + "name": "Peter Bates", + "age": 22, + "country": "Mexico" + } + }, + { + "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'", + "company": { + "name": "Obrien PLC", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "any", + "category": "water", + "price": 223.17, + "stock_quantity": 376 + }, + "customer": { + "name": "Krista Hansen", + "age": 78, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Davis and Sons", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "actually", + "category": "run", + "price": 187.01, + "stock_quantity": 597 + }, + "customer": { + "name": "Bailey Mejia", + "age": 24, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Flores LLC", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "whether", + "category": "music", + "price": 644.59, + "stock_quantity": 632 + }, + "customer": { + "name": "Nancy Morales", + "age": 58, + "country": "Bosnia and Herzegovina" + } + }, + { + "natural_query": "Show me all products in the cultural category with a price over $700.47.", + "sql_query": "SELECT * FROM products WHERE category = 'cultural' AND price > 700.47", + "company": { + "name": "Short, Lyons and Wallace", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "method", + "category": "cultural", + "price": 700.47, + "stock_quantity": 224 + }, + "customer": { + "name": "Joseph Boyd", + "age": 41, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Hopkins-Williams", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "simply", + "category": "daughter", + "price": 601.34, + "stock_quantity": 120 + }, + "customer": { + "name": "Gary Goodwin", + "age": 53, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Castillo-Cox", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "fish", + "category": "black", + "price": 535.57, + "stock_quantity": 914 + }, + "customer": { + "name": "Amanda Scott", + "age": 80, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Smith, Ramirez and Howard", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "strategy", + "category": "civil", + "price": 275.0, + "stock_quantity": 159 + }, + "customer": { + "name": "Samuel Buckley", + "age": 60, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "White PLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "provide", + "category": "form", + "price": 642.87, + "stock_quantity": 504 + }, + "customer": { + "name": "Christopher Sweeney", + "age": 35, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Hubbard-Valdez", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "positive", + "category": "part", + "price": 256.98, + "stock_quantity": 286 + }, + "customer": { + "name": "Andrew Evans", + "age": 69, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Miller-Fitzpatrick", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "sound", + "category": "compare", + "price": 124.74, + "stock_quantity": 780 + }, + "customer": { + "name": "John Perez", + "age": 40, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Thompson, Thompson and Spencer", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "democratic", + "category": "beautiful", + "price": 70.65, + "stock_quantity": 13 + }, + "customer": { + "name": "Victoria Harper", + "age": 45, + "country": "Afghanistan" + } + }, + { + "natural_query": "How many orders were placed for Ayala Group between 2023-12-28 and 2024-05-31?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ayala Group' AND order_date BETWEEN '2023-12-28' AND '2024-05-31'", + "company": { + "name": "Ayala Group", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "painting", + "category": "training", + "price": 570.2, + "stock_quantity": 321 + }, + "customer": { + "name": "Audrey Horton", + "age": 25, + "country": "San Marino" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Simmons and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Simmons and Sons", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "along", + "category": "face", + "price": 187.65, + "stock_quantity": 509 + }, + "customer": { + "name": "Andrew Leonard", + "age": 44, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Roberts LLC", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "plant", + "category": "choice", + "price": 927.3, + "stock_quantity": 82 + }, + "customer": { + "name": "Adrienne Mendoza", + "age": 30, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Lopez, Johnson and Smith", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "fly", + "category": "represent", + "price": 925.31, + "stock_quantity": 736 + }, + "customer": { + "name": "Anna Petersen", + "age": 49, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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'", + "company": { + "name": "Lambert-Prince", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "rise", + "category": "face", + "price": 667.59, + "stock_quantity": 448 + }, + "customer": { + "name": "Laura Mejia", + "age": 43, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ruiz Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ruiz Ltd", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "around", + "category": "director", + "price": 173.16, + "stock_quantity": 971 + }, + "customer": { + "name": "Daniel Wilson", + "age": 62, + "country": "American Samoa" + } + }, + { + "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'", + "company": { + "name": "Sims-Juarez", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "attorney", + "category": "now", + "price": 902.76, + "stock_quantity": 409 + }, + "customer": { + "name": "Rachel Gray", + "age": 22, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Miller-Howell", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "Congress", + "category": "product", + "price": 643.54, + "stock_quantity": 212 + }, + "customer": { + "name": "Daniel Gilbert", + "age": 19, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Richardson, Martin and Murphy", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "southern", + "category": "teach", + "price": 139.27, + "stock_quantity": 411 + }, + "customer": { + "name": "Terri Thomas", + "age": 53, + "country": "British Virgin Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Petersen PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Petersen PLC", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "seven", + "category": "range", + "price": 16.98, + "stock_quantity": 196 + }, + "customer": { + "name": "Travis Sanders", + "age": 36, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Walker LLC", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "area", + "category": "glass", + "price": 923.63, + "stock_quantity": 543 + }, + "customer": { + "name": "Matthew Koch", + "age": 22, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Rich, Walter and Durham", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "agree", + "category": "meet", + "price": 745.36, + "stock_quantity": 228 + }, + "customer": { + "name": "Gregory Johnson", + "age": 62, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Turner LLC", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "year", + "category": "spend", + "price": 682.15, + "stock_quantity": 413 + }, + "customer": { + "name": "Cheryl Barrera", + "age": 52, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "King Group", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "section", + "category": "away", + "price": 149.5, + "stock_quantity": 882 + }, + "customer": { + "name": "Geoffrey Valenzuela", + "age": 32, + "country": "Eritrea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Peters-Nelson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Peters-Nelson", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "thousand", + "category": "lot", + "price": 161.44, + "stock_quantity": 170 + }, + "customer": { + "name": "Margaret Watson", + "age": 25, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Smith, White and Carr", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "myself", + "category": "better", + "price": 50.41, + "stock_quantity": 51 + }, + "customer": { + "name": "Rachel Smith", + "age": 71, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Middleton", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "minute", + "category": "feeling", + "price": 145.64, + "stock_quantity": 416 + }, + "customer": { + "name": "Shawn Lee", + "age": 51, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Rodriguez, Rodgers and Martin", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "east", + "category": "while", + "price": 438.07, + "stock_quantity": 660 + }, + "customer": { + "name": "Mr. Francis Peters MD", + "age": 70, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Hill-Freeman", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "front", + "category": "degree", + "price": 850.73, + "stock_quantity": 63 + }, + "customer": { + "name": "Kathleen Clark", + "age": 29, + "country": "Uruguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams LLC", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "own", + "category": "control", + "price": 735.98, + "stock_quantity": 804 + }, + "customer": { + "name": "Kevin Carter", + "age": 26, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Mckay-Taylor", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "body", + "category": "lot", + "price": 237.77, + "stock_quantity": 570 + }, + "customer": { + "name": "Andrea Johnson", + "age": 62, + "country": "Haiti" + } + }, + { + "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'", + "company": { + "name": "Watson Ltd", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "leave", + "category": "political", + "price": 299.34, + "stock_quantity": 723 + }, + "customer": { + "name": "John Harris", + "age": 54, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Jackson Inc", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "less", + "category": "policy", + "price": 884.35, + "stock_quantity": 374 + }, + "customer": { + "name": "David Herman", + "age": 61, + "country": "Guinea-Bissau" + } + }, + { + "natural_query": "List all customers and their total order value for Bradley, Washington and Berger.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Bradley, Washington and Berger' GROUP BY c.customer_id", + "company": { + "name": "Bradley, Washington and Berger", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "western", + "category": "size", + "price": 159.0, + "stock_quantity": 801 + }, + "customer": { + "name": "Victor Edwards", + "age": 78, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Harris-Meza", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "drug", + "category": "deal", + "price": 432.77, + "stock_quantity": 17 + }, + "customer": { + "name": "Kevin Rogers", + "age": 25, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Brown-Oconnor", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "present", + "category": "appear", + "price": 547.44, + "stock_quantity": 538 + }, + "customer": { + "name": "Justin Rangel", + "age": 18, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Serrano, Mendoza and Mcdaniel", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "future", + "category": "those", + "price": 331.94, + "stock_quantity": 197 + }, + "customer": { + "name": "Philip Wilson", + "age": 79, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Obrien, Gutierrez and Villa", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "spend", + "category": "process", + "price": 438.91, + "stock_quantity": 555 + }, + "customer": { + "name": "Joy Romero", + "age": 35, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Richardson-Morris", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "want", + "category": "expect", + "price": 685.18, + "stock_quantity": 688 + }, + "customer": { + "name": "Joseph Barker", + "age": 78, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Baker, Nicholson and Luna", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "class", + "category": "chance", + "price": 18.73, + "stock_quantity": 381 + }, + "customer": { + "name": "Deborah Jones", + "age": 54, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Chavez-Ray", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "between", + "category": "nothing", + "price": 690.94, + "stock_quantity": 36 + }, + "customer": { + "name": "Kenneth Rose", + "age": 54, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Webster Ltd", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "pick", + "category": "four", + "price": 545.13, + "stock_quantity": 12 + }, + "customer": { + "name": "Chelsea Martinez", + "age": 54, + "country": "Yemen" + } + }, + { + "natural_query": "Show me all products in the most category with a price over $692.06.", + "sql_query": "SELECT * FROM products WHERE category = 'most' AND price > 692.06", + "company": { + "name": "Schultz-Roberts", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "left", + "category": "most", + "price": 692.06, + "stock_quantity": 249 + }, + "customer": { + "name": "Theresa Garrett", + "age": 50, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "James Group", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "action", + "category": "main", + "price": 734.65, + "stock_quantity": 480 + }, + "customer": { + "name": "Mark Woodard", + "age": 22, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Kerr-Hayes", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "make", + "category": "fear", + "price": 496.44, + "stock_quantity": 470 + }, + "customer": { + "name": "Richard Ellis", + "age": 59, + "country": "Guinea-Bissau" + } + }, + { + "natural_query": "List all products of Frye Ltd ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Frye Ltd' ORDER BY rating ASC", + "company": { + "name": "Frye Ltd", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "dog", + "category": "like", + "price": 622.7, + "stock_quantity": 243 + }, + "customer": { + "name": "Nicole Goodwin", + "age": 22, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Rowland LLC", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "candidate", + "category": "rule", + "price": 342.1, + "stock_quantity": 22 + }, + "customer": { + "name": "Brian Henderson", + "age": 52, + "country": "Senegal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Blair, Johnson and Douglas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Blair, Johnson and Douglas", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "affect", + "category": "away", + "price": 687.43, + "stock_quantity": 876 + }, + "customer": { + "name": "Samuel Huynh", + "age": 21, + "country": "United States of America" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris Inc", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "information", + "category": "laugh", + "price": 333.67, + "stock_quantity": 274 + }, + "customer": { + "name": "Tara Butler", + "age": 53, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Rodriguez Group", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "group", + "category": "tough", + "price": 64.83, + "stock_quantity": 700 + }, + "customer": { + "name": "Thomas Clark", + "age": 36, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Werner, Harrison and Taylor", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "two", + "category": "rise", + "price": 849.38, + "stock_quantity": 36 + }, + "customer": { + "name": "Stephanie Reid", + "age": 35, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Johnson-Taylor", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "night", + "category": "when", + "price": 522.65, + "stock_quantity": 49 + }, + "customer": { + "name": "Crystal Lewis", + "age": 78, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Price LLC", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "little", + "category": "address", + "price": 259.67, + "stock_quantity": 810 + }, + "customer": { + "name": "Kevin Johnson", + "age": 32, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Beasley and Sons", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "statement", + "category": "door", + "price": 405.55, + "stock_quantity": 560 + }, + "customer": { + "name": "Edwin Mullen", + "age": 76, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Hampton Inc", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "hair", + "category": "feel", + "price": 800.59, + "stock_quantity": 680 + }, + "customer": { + "name": "Timothy Miller", + "age": 43, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Mack-Evans", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "amount", + "category": "despite", + "price": 44.5, + "stock_quantity": 966 + }, + "customer": { + "name": "Monica Spencer", + "age": 29, + "country": "Nepal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Armstrong Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Armstrong Group", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "again", + "category": "mind", + "price": 77.05, + "stock_quantity": 962 + }, + "customer": { + "name": "Candice Larson", + "age": 70, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Gonzales and Sons", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "industry", + "category": "training", + "price": 866.35, + "stock_quantity": 384 + }, + "customer": { + "name": "Andrew Martin", + "age": 68, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Sellers, Chavez and Ryan", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "recent", + "category": "their", + "price": 329.09, + "stock_quantity": 387 + }, + "customer": { + "name": "Mark Meadows", + "age": 55, + "country": "India" + } + }, + { + "natural_query": "What are the top 8 products by customers for Brooks-Henry this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Brooks-Henry' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8", + "company": { + "name": "Brooks-Henry", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "school", + "category": "enter", + "price": 93.37, + "stock_quantity": 6 + }, + "customer": { + "name": "Ashley Johnson", + "age": 69, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Arnold PLC", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "blood", + "category": "develop", + "price": 588.73, + "stock_quantity": 318 + }, + "customer": { + "name": "Vincent Simpson", + "age": 28, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Davis-Chavez", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "she", + "category": "since", + "price": 431.84, + "stock_quantity": 210 + }, + "customer": { + "name": "Samuel Jenkins", + "age": 50, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Lee, Hebert and Franklin", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "small", + "category": "organization", + "price": 426.29, + "stock_quantity": 955 + }, + "customer": { + "name": "David Calderon", + "age": 32, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Herman, Wilson and Arnold", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "kitchen", + "category": "represent", + "price": 530.79, + "stock_quantity": 650 + }, + "customer": { + "name": "Kimberly Grimes", + "age": 80, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Rodriguez Group", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "mean", + "category": "her", + "price": 996.88, + "stock_quantity": 971 + }, + "customer": { + "name": "Dawn Trujillo", + "age": 32, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Ryan, Henry and Anderson", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "probably", + "category": "throughout", + "price": 135.22, + "stock_quantity": 279 + }, + "customer": { + "name": "Craig Sanchez", + "age": 67, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Harris-Castillo", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "administration", + "category": "source", + "price": 732.85, + "stock_quantity": 312 + }, + "customer": { + "name": "Ryan Mitchell", + "age": 43, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Gray and Sons", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "skin", + "category": "which", + "price": 822.87, + "stock_quantity": 864 + }, + "customer": { + "name": "Christina Price", + "age": 69, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Parker, Bruce and Smith", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "whether", + "category": "remember", + "price": 712.24, + "stock_quantity": 418 + }, + "customer": { + "name": "Angela Mcneil", + "age": 66, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Richards, Taylor and Lewis", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "few", + "category": "parent", + "price": 51.55, + "stock_quantity": 331 + }, + "customer": { + "name": "Dana Kane", + "age": 22, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Morrison-Woods", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "pick", + "category": "rule", + "price": 545.05, + "stock_quantity": 955 + }, + "customer": { + "name": "Patrick Curtis", + "age": 51, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Hernandez-Wilkerson", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "to", + "category": "decade", + "price": 673.0, + "stock_quantity": 978 + }, + "customer": { + "name": "Rachel Rasmussen", + "age": 27, + "country": "Namibia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jensen-Horne'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jensen-Horne", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "meeting", + "category": "eight", + "price": 279.86, + "stock_quantity": 724 + }, + "customer": { + "name": "Lauren Fitzpatrick", + "age": 50, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Jordan, Ross and Wagner", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "brother", + "category": "we", + "price": 795.63, + "stock_quantity": 579 + }, + "customer": { + "name": "Ashley White", + "age": 19, + "country": "Lao People's Democratic Republic" + } + }, + { + "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'", + "company": { + "name": "Velazquez-Thomas", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "fall", + "category": "where", + "price": 864.67, + "stock_quantity": 311 + }, + "customer": { + "name": "Walter Foster", + "age": 29, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Lewis, Hughes and Li", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "report", + "category": "pick", + "price": 212.31, + "stock_quantity": 198 + }, + "customer": { + "name": "Marc Vaughn", + "age": 72, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Mullins, Valdez and Morrow", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "create", + "category": "quality", + "price": 764.19, + "stock_quantity": 327 + }, + "customer": { + "name": "Christopher Lane MD", + "age": 54, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Price Inc", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "Congress", + "category": "sense", + "price": 727.21, + "stock_quantity": 935 + }, + "customer": { + "name": "Jeremy Lawson", + "age": 63, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Lopez-Jones", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "type", + "category": "low", + "price": 437.67, + "stock_quantity": 102 + }, + "customer": { + "name": "Samantha Osborne", + "age": 36, + "country": "Marshall Islands" + } + }, + { + "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'", + "company": { + "name": "Rodriguez Inc", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "whole", + "category": "authority", + "price": 349.57, + "stock_quantity": 570 + }, + "customer": { + "name": "Robert Smith", + "age": 39, + "country": "Western Sahara" + } + }, + { + "natural_query": "List all customers and their total order value for Johnson-Shepherd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Johnson-Shepherd' GROUP BY c.customer_id", + "company": { + "name": "Johnson-Shepherd", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "condition", + "category": "travel", + "price": 575.44, + "stock_quantity": 365 + }, + "customer": { + "name": "Shane Kim", + "age": 70, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Fry-Howard", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "continue", + "category": "current", + "price": 539.54, + "stock_quantity": 510 + }, + "customer": { + "name": "Abigail Webster", + "age": 27, + "country": "Maldives" + } + }, + { + "natural_query": "How many orders were placed for Crawford-Whitney between 2024-04-28 and 2024-09-15?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Crawford-Whitney' AND order_date BETWEEN '2024-04-28' AND '2024-09-15'", + "company": { + "name": "Crawford-Whitney", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "fill", + "category": "against", + "price": 301.4, + "stock_quantity": 3 + }, + "customer": { + "name": "Michelle Henry", + "age": 64, + "country": "Micronesia" + } + }, + { + "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'", + "company": { + "name": "Henderson-Vaughn", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "another", + "category": "situation", + "price": 263.25, + "stock_quantity": 942 + }, + "customer": { + "name": "Samantha Watson", + "age": 24, + "country": "Gabon" + } + }, + { + "natural_query": "Show me all products in the time category with a price over $806.06.", + "sql_query": "SELECT * FROM products WHERE category = 'time' AND price > 806.06", + "company": { + "name": "Larsen, Fox and Salinas", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "make", + "category": "time", + "price": 806.06, + "stock_quantity": 552 + }, + "customer": { + "name": "Lance Moody", + "age": 39, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Brown, Bond and Sandoval", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "rule", + "category": "forget", + "price": 600.07, + "stock_quantity": 610 + }, + "customer": { + "name": "Kristin Hamilton", + "age": 50, + "country": "Vietnam" + } + }, + { + "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'", + "company": { + "name": "Doyle Group", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "entire", + "category": "follow", + "price": 904.22, + "stock_quantity": 11 + }, + "customer": { + "name": "Taylor Bowman", + "age": 60, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Clark Ltd", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "professor", + "category": "none", + "price": 687.01, + "stock_quantity": 296 + }, + "customer": { + "name": "Sarah Drake", + "age": 43, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Reed Inc", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "hospital", + "category": "born", + "price": 912.7, + "stock_quantity": 367 + }, + "customer": { + "name": "Mrs. Beverly Wagner", + "age": 39, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Lawson, Jordan and Ball", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "even", + "category": "of", + "price": 656.24, + "stock_quantity": 839 + }, + "customer": { + "name": "Samuel Wise", + "age": 56, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Nelson-Jones", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "his", + "category": "want", + "price": 617.59, + "stock_quantity": 526 + }, + "customer": { + "name": "Seth Jones", + "age": 43, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Rodriguez-Fowler", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "answer", + "category": "place", + "price": 468.29, + "stock_quantity": 254 + }, + "customer": { + "name": "Taylor Graham", + "age": 52, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Gomez, Duffy and Gay", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "control", + "category": "away", + "price": 439.99, + "stock_quantity": 99 + }, + "customer": { + "name": "Jason Joyce", + "age": 39, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Garcia-Jensen", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "believe", + "category": "protect", + "price": 902.38, + "stock_quantity": 661 + }, + "customer": { + "name": "Dennis Wright", + "age": 60, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Barrera-Brown", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "me", + "category": "owner", + "price": 73.23, + "stock_quantity": 422 + }, + "customer": { + "name": "Angela Jackson", + "age": 46, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Shields-Stone", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "human", + "category": "close", + "price": 703.96, + "stock_quantity": 621 + }, + "customer": { + "name": "Edgar Jones", + "age": 68, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Banks Group", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "many", + "category": "above", + "price": 179.81, + "stock_quantity": 291 + }, + "customer": { + "name": "Joseph Grant", + "age": 50, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Jones and Russell", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "garden", + "category": "him", + "price": 264.08, + "stock_quantity": 401 + }, + "customer": { + "name": "Amber Morris", + "age": 22, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Edwards-Wright", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "relate", + "category": "and", + "price": 247.55, + "stock_quantity": 253 + }, + "customer": { + "name": "Amber Taylor", + "age": 70, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Williams, Pena and Lee", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "will", + "category": "truth", + "price": 554.14, + "stock_quantity": 885 + }, + "customer": { + "name": "Richard Nelson", + "age": 59, + "country": "Burundi" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Davila-Serrano for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davila-Serrano'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davila-Serrano", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "fear", + "category": "home", + "price": 759.73, + "stock_quantity": 26 + }, + "customer": { + "name": "Brian Jones", + "age": 33, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Carter LLC", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "father", + "category": "fill", + "price": 370.48, + "stock_quantity": 326 + }, + "customer": { + "name": "Erika Keller", + "age": 50, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Pennington, Price and Lopez", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "end", + "category": "among", + "price": 499.88, + "stock_quantity": 202 + }, + "customer": { + "name": "James Taylor", + "age": 46, + "country": "Turkmenistan" + } + }, + { + "natural_query": "List all customers and their total order value for Chang-Hudson.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Chang-Hudson' GROUP BY c.customer_id", + "company": { + "name": "Chang-Hudson", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "outside", + "category": "country", + "price": 17.34, + "stock_quantity": 762 + }, + "customer": { + "name": "Mr. Robert Wade", + "age": 57, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Greer-Rogers", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "cause", + "category": "continue", + "price": 550.23, + "stock_quantity": 621 + }, + "customer": { + "name": "Manuel Miller", + "age": 38, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Evans, Peters and Jensen", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "officer", + "category": "until", + "price": 396.34, + "stock_quantity": 445 + }, + "customer": { + "name": "Monica Montes", + "age": 53, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Charles-Williams", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "share", + "category": "factor", + "price": 606.29, + "stock_quantity": 93 + }, + "customer": { + "name": "Howard Garcia", + "age": 78, + "country": "Sweden" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Collins PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Collins PLC", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "wear", + "category": "gun", + "price": 605.01, + "stock_quantity": 124 + }, + "customer": { + "name": "Thomas Riley", + "age": 70, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Coleman Inc", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "relationship", + "category": "small", + "price": 606.11, + "stock_quantity": 106 + }, + "customer": { + "name": "Tammy Garcia", + "age": 50, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Bentley-Lewis", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "family", + "category": "executive", + "price": 705.39, + "stock_quantity": 75 + }, + "customer": { + "name": "Lance Levy", + "age": 24, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Cortez PLC", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "price", + "category": "military", + "price": 235.16, + "stock_quantity": 711 + }, + "customer": { + "name": "Gary Pearson", + "age": 40, + "country": "Luxembourg" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Odom-Woodward'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Odom-Woodward", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "stuff", + "category": "next", + "price": 95.92, + "stock_quantity": 798 + }, + "customer": { + "name": "Mario Owens", + "age": 61, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Weber, Hall and Grant", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "light", + "category": "son", + "price": 153.51, + "stock_quantity": 122 + }, + "customer": { + "name": "Leslie Gardner", + "age": 41, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Smith Ltd", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "sing", + "category": "clearly", + "price": 412.21, + "stock_quantity": 549 + }, + "customer": { + "name": "Allison Burgess", + "age": 26, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Johnson PLC", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "because", + "category": "market", + "price": 858.04, + "stock_quantity": 445 + }, + "customer": { + "name": "Linda Sanders", + "age": 60, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Green-Underwood", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "cut", + "category": "artist", + "price": 641.46, + "stock_quantity": 340 + }, + "customer": { + "name": "Samuel Durham", + "age": 19, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Huber-Jackson", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "usually", + "category": "cell", + "price": 295.83, + "stock_quantity": 328 + }, + "customer": { + "name": "Dorothy Bell", + "age": 27, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Bates-Bond", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "artist", + "category": "choose", + "price": 877.69, + "stock_quantity": 390 + }, + "customer": { + "name": "Adrian Miller", + "age": 59, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Mitchell, Cunningham and Hartman", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "theory", + "category": "involve", + "price": 428.01, + "stock_quantity": 591 + }, + "customer": { + "name": "Sonia Patterson", + "age": 20, + "country": "Comoros" + } + }, + { + "natural_query": "What is the minimum rating of all products for Burton LLC?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Burton LLC'", + "company": { + "name": "Burton LLC", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "operation", + "category": "remain", + "price": 754.58, + "stock_quantity": 255 + }, + "customer": { + "name": "Curtis Jones", + "age": 54, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Garcia-Medina", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "network", + "category": "blood", + "price": 286.06, + "stock_quantity": 745 + }, + "customer": { + "name": "Mark Snyder", + "age": 54, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Hunter-Fox", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "travel", + "category": "radio", + "price": 601.69, + "stock_quantity": 224 + }, + "customer": { + "name": "Pamela Davis", + "age": 32, + "country": "Iran" + } + }, + { + "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'", + "company": { + "name": "Potter, Johnson and Hill", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "tend", + "category": "measure", + "price": 331.91, + "stock_quantity": 320 + }, + "customer": { + "name": "Russell Hoover", + "age": 52, + "country": "Belarus" + } + }, + { + "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'", + "company": { + "name": "Williams-Rush", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "too", + "category": "note", + "price": 356.02, + "stock_quantity": 315 + }, + "customer": { + "name": "Rachel Williams MD", + "age": 43, + "country": "Lao People's Democratic Republic" + } + }, + { + "natural_query": "List all customers and their total order value for Mendoza-Harris.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Mendoza-Harris' GROUP BY c.customer_id", + "company": { + "name": "Mendoza-Harris", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "fund", + "category": "detail", + "price": 635.45, + "stock_quantity": 26 + }, + "customer": { + "name": "Beverly Miller", + "age": 75, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Brown Group", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "during", + "category": "maintain", + "price": 333.75, + "stock_quantity": 642 + }, + "customer": { + "name": "Scott Sparks", + "age": 76, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Blanchard Inc", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "sing", + "category": "full", + "price": 896.94, + "stock_quantity": 969 + }, + "customer": { + "name": "James Maddox", + "age": 30, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Blake, Morton and Turner", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "movement", + "category": "usually", + "price": 177.27, + "stock_quantity": 44 + }, + "customer": { + "name": "Laura Morgan", + "age": 57, + "country": "Bolivia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bernard PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bernard PLC", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "true", + "category": "research", + "price": 620.06, + "stock_quantity": 666 + }, + "customer": { + "name": "Jeffery Davis", + "age": 80, + "country": "Benin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Potts Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Potts Ltd", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "room", + "category": "window", + "price": 955.9, + "stock_quantity": 503 + }, + "customer": { + "name": "Pamela Ross", + "age": 29, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Lopez-Jackson", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "claim", + "category": "exist", + "price": 902.2, + "stock_quantity": 432 + }, + "customer": { + "name": "Heather James", + "age": 59, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Chavez-Johnson", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "important", + "category": "send", + "price": 771.6, + "stock_quantity": 973 + }, + "customer": { + "name": "Jordan Lee", + "age": 68, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Fernandez PLC", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "customer", + "category": "begin", + "price": 655.95, + "stock_quantity": 437 + }, + "customer": { + "name": "Christopher Velez", + "age": 70, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Yu Ltd", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "compare", + "category": "prevent", + "price": 588.09, + "stock_quantity": 701 + }, + "customer": { + "name": "Steven Perez", + "age": 29, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Mcclure, Knight and Clark", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "be", + "category": "question", + "price": 606.29, + "stock_quantity": 474 + }, + "customer": { + "name": "Maria Scott", + "age": 54, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Hines-Craig", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "finish", + "category": "play", + "price": 747.35, + "stock_quantity": 210 + }, + "customer": { + "name": "Nathaniel Patterson", + "age": 50, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Ross, Perez and Norton", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "century", + "category": "data", + "price": 169.99, + "stock_quantity": 236 + }, + "customer": { + "name": "Paige Lopez", + "age": 54, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Armstrong PLC", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "rate", + "category": "south", + "price": 414.41, + "stock_quantity": 631 + }, + "customer": { + "name": "Kelsey Pope", + "age": 23, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Smith, Crawford and Patrick", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "cultural", + "category": "trouble", + "price": 659.26, + "stock_quantity": 470 + }, + "customer": { + "name": "Brian Butler", + "age": 75, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Vazquez PLC", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "treatment", + "category": "fly", + "price": 928.99, + "stock_quantity": 488 + }, + "customer": { + "name": "Savannah Mcdowell", + "age": 64, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Watkins, Jones and Hart", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "always", + "category": "save", + "price": 888.89, + "stock_quantity": 880 + }, + "customer": { + "name": "Cynthia Hunt", + "age": 47, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Wang, Torres and Hale", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "member", + "category": "beyond", + "price": 809.27, + "stock_quantity": 860 + }, + "customer": { + "name": "Amy Park", + "age": 27, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Garcia Ltd", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "morning", + "category": "economic", + "price": 800.51, + "stock_quantity": 302 + }, + "customer": { + "name": "Bryan Lopez", + "age": 63, + "country": "French Southern Territories" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thomas LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thomas LLC", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "performance", + "category": "son", + "price": 187.3, + "stock_quantity": 124 + }, + "customer": { + "name": "Alyssa Roberts", + "age": 41, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Moran Group", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "commercial", + "category": "moment", + "price": 312.35, + "stock_quantity": 294 + }, + "customer": { + "name": "Stephanie Cooley", + "age": 52, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Williams and Sons", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "idea", + "category": "cost", + "price": 951.65, + "stock_quantity": 86 + }, + "customer": { + "name": "Megan Flores", + "age": 51, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Friedman, Preston and Lang", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "system", + "category": "expert", + "price": 983.04, + "stock_quantity": 2 + }, + "customer": { + "name": "Nicholas Hamilton", + "age": 51, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Wise, Smith and Cunningham", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "sure", + "category": "ability", + "price": 816.08, + "stock_quantity": 149 + }, + "customer": { + "name": "James Edwards", + "age": 44, + "country": "Ecuador" + } + }, + { + "natural_query": "What is the total quantity of all products for Arnold, Rocha and Ellis?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Arnold, Rocha and Ellis'", + "company": { + "name": "Arnold, Rocha and Ellis", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "fear", + "category": "sense", + "price": 797.0, + "stock_quantity": 529 + }, + "customer": { + "name": "Mr. Kenneth Harris PhD", + "age": 33, + "country": "Somalia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez-Pacheco'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez-Pacheco", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "send", + "category": "only", + "price": 465.18, + "stock_quantity": 396 + }, + "customer": { + "name": "Barry Herrera", + "age": 23, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "natural_query": "List all products of Jenkins-Crawford ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Jenkins-Crawford' ORDER BY rating ASC", + "company": { + "name": "Jenkins-Crawford", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "lose", + "category": "serve", + "price": 260.87, + "stock_quantity": 239 + }, + "customer": { + "name": "Mario Ward", + "age": 74, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Johnson-Pierce", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "wonder", + "category": "significant", + "price": 287.81, + "stock_quantity": 472 + }, + "customer": { + "name": "Kaitlin Fitzgerald", + "age": 78, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Brown Group", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "here", + "category": "threat", + "price": 809.35, + "stock_quantity": 895 + }, + "customer": { + "name": "Albert Patton", + "age": 48, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Donaldson Inc", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "main", + "category": "police", + "price": 44.77, + "stock_quantity": 60 + }, + "customer": { + "name": "Jerry Reed", + "age": 50, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Cook-Bates", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "scene", + "category": "get", + "price": 304.88, + "stock_quantity": 401 + }, + "customer": { + "name": "Christine Avila", + "age": 19, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Schmidt-Collins", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "marriage", + "category": "traditional", + "price": 903.23, + "stock_quantity": 158 + }, + "customer": { + "name": "Richard Sanchez", + "age": 45, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Wilkerson and Sons", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "another", + "category": "finally", + "price": 941.6, + "stock_quantity": 755 + }, + "customer": { + "name": "Emily Greene", + "age": 54, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Summers, Lawrence and Cunningham", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "go", + "category": "foot", + "price": 601.06, + "stock_quantity": 831 + }, + "customer": { + "name": "Melissa Collins MD", + "age": 41, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Stein and Sons", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "Republican", + "category": "special", + "price": 398.02, + "stock_quantity": 542 + }, + "customer": { + "name": "Marcus Reed", + "age": 63, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "George, Hall and Griffin", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "represent", + "category": "federal", + "price": 907.93, + "stock_quantity": 167 + }, + "customer": { + "name": "Debra Thompson", + "age": 34, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Nguyen-Hill", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "resource", + "category": "car", + "price": 845.77, + "stock_quantity": 53 + }, + "customer": { + "name": "Melissa Williamson", + "age": 63, + "country": "Ireland" + } + }, + { + "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'", + "company": { + "name": "Moreno, Graham and Tran", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "clearly", + "category": "himself", + "price": 519.29, + "stock_quantity": 608 + }, + "customer": { + "name": "Margaret Parker", + "age": 46, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Aguilar LLC", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "end", + "category": "want", + "price": 573.83, + "stock_quantity": 506 + }, + "customer": { + "name": "Brooke Edwards", + "age": 51, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Barrett, Jones and Gutierrez", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "story", + "category": "travel", + "price": 889.36, + "stock_quantity": 766 + }, + "customer": { + "name": "Douglas Walker", + "age": 32, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Guzman, Wolfe and Frazier", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "subject", + "category": "above", + "price": 538.67, + "stock_quantity": 470 + }, + "customer": { + "name": "Taylor Green", + "age": 37, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Petty-Lawrence", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "way", + "category": "tree", + "price": 818.86, + "stock_quantity": 808 + }, + "customer": { + "name": "Zachary Berry", + "age": 51, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Nguyen-Smith", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "wide", + "category": "somebody", + "price": 944.57, + "stock_quantity": 670 + }, + "customer": { + "name": "Katherine Gibbs", + "age": 31, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Walker-Butler for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Walker-Butler'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Walker-Butler", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "road", + "category": "that", + "price": 924.68, + "stock_quantity": 808 + }, + "customer": { + "name": "Gary Williams", + "age": 27, + "country": "Western Sahara" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Mercer-Wall for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mercer-Wall'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mercer-Wall", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "field", + "category": "science", + "price": 775.67, + "stock_quantity": 105 + }, + "customer": { + "name": "Jennifer Gross", + "age": 30, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Fitzgerald-Collins", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "music", + "category": "thought", + "price": 683.43, + "stock_quantity": 366 + }, + "customer": { + "name": "Kristin Jordan", + "age": 21, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Lowery, Watson and Dixon", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "thought", + "category": "stuff", + "price": 188.93, + "stock_quantity": 724 + }, + "customer": { + "name": "Christine Robles", + "age": 39, + "country": "Liechtenstein" + } + }, + { + "natural_query": "What are the top 5 products by customers for Freeman-Cruz all time?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Freeman-Cruz' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5", + "company": { + "name": "Freeman-Cruz", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "article", + "category": "change", + "price": 224.45, + "stock_quantity": 328 + }, + "customer": { + "name": "Alexis Cameron", + "age": 29, + "country": "Austria" + } + }, + { + "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'", + "company": { + "name": "York and Sons", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "travel", + "category": "old", + "price": 920.86, + "stock_quantity": 5 + }, + "customer": { + "name": "April Wood", + "age": 22, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Kennedy, Barnes and Cuevas", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "image", + "category": "charge", + "price": 409.33, + "stock_quantity": 564 + }, + "customer": { + "name": "Sandra Wagner", + "age": 32, + "country": "Ecuador" + } + }, + { + "natural_query": "Show me all products in the exactly category with a price over $707.77.", + "sql_query": "SELECT * FROM products WHERE category = 'exactly' AND price > 707.77", + "company": { + "name": "Rodriguez, Hart and Ryan", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "leg", + "category": "exactly", + "price": 707.77, + "stock_quantity": 471 + }, + "customer": { + "name": "Sherry Long", + "age": 58, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Fox Inc", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "drug", + "category": "call", + "price": 358.58, + "stock_quantity": 261 + }, + "customer": { + "name": "Xavier Grant", + "age": 58, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Williams-Barry", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "positive", + "category": "risk", + "price": 812.25, + "stock_quantity": 719 + }, + "customer": { + "name": "Mary Woods", + "age": 49, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Harvey Group", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "each", + "category": "stock", + "price": 582.25, + "stock_quantity": 860 + }, + "customer": { + "name": "John Hicks", + "age": 32, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Becker-Lee", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "want", + "category": "professional", + "price": 590.2, + "stock_quantity": 304 + }, + "customer": { + "name": "Mrs. Samantha Byrd", + "age": 27, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Parker-Salinas", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "but", + "category": "benefit", + "price": 764.12, + "stock_quantity": 555 + }, + "customer": { + "name": "Michael Salazar", + "age": 74, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Peterson-Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Peterson-Moore", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "task", + "category": "health", + "price": 517.29, + "stock_quantity": 836 + }, + "customer": { + "name": "Joseph Anderson", + "age": 22, + "country": "China" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Crawford Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Crawford Inc", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "happy", + "category": "space", + "price": 180.36, + "stock_quantity": 358 + }, + "customer": { + "name": "Megan Vaughn", + "age": 50, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Evans, Ward and Sandoval", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "goal", + "category": "week", + "price": 190.36, + "stock_quantity": 174 + }, + "customer": { + "name": "James Stevens", + "age": 30, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Martin-Morgan", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "enough", + "category": "list", + "price": 914.82, + "stock_quantity": 427 + }, + "customer": { + "name": "Lisa Holt", + "age": 21, + "country": "Mexico" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Davis-Medina?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Davis-Medina' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Davis-Medina", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "mouth", + "category": "total", + "price": 877.92, + "stock_quantity": 68 + }, + "customer": { + "name": "Michael Lewis", + "age": 35, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Baker, Phillips and Lopez", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "production", + "category": "focus", + "price": 46.97, + "stock_quantity": 747 + }, + "customer": { + "name": "Timothy Perkins", + "age": 77, + "country": "American Samoa" + } + }, + { + "natural_query": "What is the total rating of all products for Austin Ltd?", + "sql_query": "SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Austin Ltd'", + "company": { + "name": "Austin Ltd", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "adult", + "category": "particular", + "price": 613.87, + "stock_quantity": 77 + }, + "customer": { + "name": "Kristen Gonzalez", + "age": 24, + "country": "Angola" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Delgado, Hernandez and Beck?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Delgado, Hernandez and Beck' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Delgado, Hernandez and Beck", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "audience", + "category": "manager", + "price": 759.05, + "stock_quantity": 962 + }, + "customer": { + "name": "Chad Morris", + "age": 78, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Bradshaw and Sons", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "two", + "category": "production", + "price": 421.89, + "stock_quantity": 805 + }, + "customer": { + "name": "Angela Gibson", + "age": 55, + "country": "Sudan" + } + }, + { + "natural_query": "What is the total sales for each category in Smith LLC?", + "sql_query": "SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Smith LLC' GROUP BY category ORDER BY total_sales DESC", + "company": { + "name": "Smith LLC", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "score", + "category": "special", + "price": 52.35, + "stock_quantity": 599 + }, + "customer": { + "name": "Kevin Richardson", + "age": 52, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Stevens-Olson", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "director", + "category": "later", + "price": 231.57, + "stock_quantity": 60 + }, + "customer": { + "name": "Raymond Jenkins", + "age": 23, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Weber-Hudson", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "partner", + "category": "win", + "price": 228.57, + "stock_quantity": 758 + }, + "customer": { + "name": "Elizabeth Ayala", + "age": 54, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Castillo, Richardson and Williams", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "affect", + "category": "add", + "price": 883.92, + "stock_quantity": 265 + }, + "customer": { + "name": "Anthony Garrett", + "age": 22, + "country": "Honduras" + } + }, + { + "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'", + "company": { + "name": "Cook PLC", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "we", + "category": "phone", + "price": 220.15, + "stock_quantity": 569 + }, + "customer": { + "name": "Kylie Jackson", + "age": 26, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Ruiz PLC", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "treatment", + "category": "home", + "price": 850.71, + "stock_quantity": 565 + }, + "customer": { + "name": "Hannah Wilson", + "age": 27, + "country": "Nauru" + } + }, + { + "natural_query": "What is the total profit for each supplier in Hicks Group?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hicks Group' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Hicks Group", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "degree", + "category": "nice", + "price": 397.89, + "stock_quantity": 513 + }, + "customer": { + "name": "Jeffrey Hughes", + "age": 42, + "country": "China" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mitchell-Mason'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mitchell-Mason", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "miss", + "category": "west", + "price": 951.87, + "stock_quantity": 102 + }, + "customer": { + "name": "Paul Scott", + "age": 72, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Carrillo, Young and Fowler", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "rich", + "category": "candidate", + "price": 476.5, + "stock_quantity": 272 + }, + "customer": { + "name": "Christopher Blake", + "age": 47, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Moore Group", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "subject", + "category": "quality", + "price": 749.11, + "stock_quantity": 484 + }, + "customer": { + "name": "Mary Lucas", + "age": 41, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Fisher-Lewis", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "democratic", + "category": "song", + "price": 239.0, + "stock_quantity": 661 + }, + "customer": { + "name": "Jon Kennedy", + "age": 80, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Lewis LLC", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "play", + "category": "according", + "price": 825.37, + "stock_quantity": 932 + }, + "customer": { + "name": "Tammy Weaver", + "age": 38, + "country": "Benin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Osborne, Harris and Andrews'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Osborne, Harris and Andrews", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "show", + "category": "since", + "price": 551.23, + "stock_quantity": 636 + }, + "customer": { + "name": "Autumn Mitchell", + "age": 30, + "country": "Puerto Rico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mann, Anderson and Nichols'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mann, Anderson and Nichols", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "from", + "category": "modern", + "price": 856.54, + "stock_quantity": 879 + }, + "customer": { + "name": "Stacey Perez", + "age": 20, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Jones-Huerta", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "contain", + "category": "change", + "price": 572.29, + "stock_quantity": 940 + }, + "customer": { + "name": "Kyle Green", + "age": 42, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Mullen-Leon", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "military", + "category": "building", + "price": 515.2, + "stock_quantity": 97 + }, + "customer": { + "name": "Hunter Perry", + "age": 38, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Jackson Ltd", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "imagine", + "category": "language", + "price": 100.88, + "stock_quantity": 856 + }, + "customer": { + "name": "Angela Nicholson", + "age": 30, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Rodriguez PLC", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "agent", + "category": "not", + "price": 308.99, + "stock_quantity": 370 + }, + "customer": { + "name": "James Bennett", + "age": 24, + "country": "Sao Tome and Principe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Torres, Mcdonald and Garcia'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Torres, Mcdonald and Garcia", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "bar", + "category": "week", + "price": 955.75, + "stock_quantity": 904 + }, + "customer": { + "name": "Matthew Brown", + "age": 38, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Norris, Chen and Dean", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "hope", + "category": "relate", + "price": 831.07, + "stock_quantity": 96 + }, + "customer": { + "name": "Alicia Herring", + "age": 44, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Hardy and Sons", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "condition", + "category": "edge", + "price": 903.38, + "stock_quantity": 337 + }, + "customer": { + "name": "Lacey Parker", + "age": 68, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Johnson-Rios", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "response", + "category": "throughout", + "price": 541.25, + "stock_quantity": 337 + }, + "customer": { + "name": "Jessica Donovan", + "age": 61, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Wells-Garcia", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "protect", + "category": "Mrs", + "price": 14.56, + "stock_quantity": 310 + }, + "customer": { + "name": "Laura Velasquez", + "age": 51, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Murphy, Bennett and Tate", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "ahead", + "category": "visit", + "price": 245.81, + "stock_quantity": 455 + }, + "customer": { + "name": "Joshua Stone", + "age": 64, + "country": "Gibraltar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Patton, Figueroa and Elliott'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Patton, Figueroa and Elliott", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "hope", + "category": "history", + "price": 446.12, + "stock_quantity": 671 + }, + "customer": { + "name": "Mr. John Castillo DVM", + "age": 20, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Schultz, Pierce and Wilson", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "through", + "category": "probably", + "price": 618.53, + "stock_quantity": 216 + }, + "customer": { + "name": "Debra Burns", + "age": 73, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Sheppard-Davidson", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "own", + "category": "central", + "price": 83.5, + "stock_quantity": 973 + }, + "customer": { + "name": "Mark Oliver", + "age": 26, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Romero Inc", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "to", + "category": "score", + "price": 349.37, + "stock_quantity": 863 + }, + "customer": { + "name": "Devon Gaines", + "age": 36, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Erickson, Moore and Cruz", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "hot", + "category": "radio", + "price": 897.0, + "stock_quantity": 649 + }, + "customer": { + "name": "Lori Hernandez", + "age": 48, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Melendez, Patton and Roberts", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "say", + "category": "require", + "price": 483.84, + "stock_quantity": 78 + }, + "customer": { + "name": "Miss Crystal Brown", + "age": 22, + "country": "Uganda" + } + }, + { + "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'", + "company": { + "name": "Bennett, Morton and Arnold", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "choice", + "category": "leg", + "price": 918.12, + "stock_quantity": 884 + }, + "customer": { + "name": "John Myers IV", + "age": 31, + "country": "Romania" + } + }, + { + "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'", + "company": { + "name": "Mills PLC", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "central", + "category": "first", + "price": 563.82, + "stock_quantity": 667 + }, + "customer": { + "name": "Crystal Mann", + "age": 63, + "country": "Turkmenistan" + } + }, + { + "natural_query": "How many orders were placed for Reed PLC between 2024-08-13 and 2024-08-13?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reed PLC' AND order_date BETWEEN '2024-08-13' AND '2024-08-13'", + "company": { + "name": "Reed PLC", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "send", + "category": "total", + "price": 523.45, + "stock_quantity": 908 + }, + "customer": { + "name": "Walter Glass", + "age": 71, + "country": "Jamaica" + } + }, + { + "natural_query": "What is the total quantity of all products for Pitts PLC?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Pitts PLC'", + "company": { + "name": "Pitts PLC", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "of", + "category": "issue", + "price": 379.74, + "stock_quantity": 434 + }, + "customer": { + "name": "Shelly Jones", + "age": 19, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Mccall Inc", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "room", + "category": "less", + "price": 757.44, + "stock_quantity": 467 + }, + "customer": { + "name": "Heather Smith", + "age": 29, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Cummings-Russell", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "to", + "category": "tree", + "price": 743.29, + "stock_quantity": 973 + }, + "customer": { + "name": "Michael Miller", + "age": 78, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Martin-Payne", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "current", + "category": "then", + "price": 952.49, + "stock_quantity": 913 + }, + "customer": { + "name": "Lisa Bates", + "age": 42, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Allen-Murray", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "that", + "category": "office", + "price": 653.75, + "stock_quantity": 21 + }, + "customer": { + "name": "Connie Palmer", + "age": 41, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Stout-Little", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "on", + "category": "poor", + "price": 281.05, + "stock_quantity": 898 + }, + "customer": { + "name": "Kenneth Garcia", + "age": 18, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Lee-Boyle", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "course", + "category": "front", + "price": 897.97, + "stock_quantity": 373 + }, + "customer": { + "name": "Michael Smith", + "age": 67, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Fisher Inc", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "region", + "category": "fact", + "price": 279.58, + "stock_quantity": 23 + }, + "customer": { + "name": "Tyler Johnson", + "age": 32, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Beard, Ingram and Merritt'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Beard, Ingram and Merritt", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "adult", + "category": "yeah", + "price": 49.68, + "stock_quantity": 25 + }, + "customer": { + "name": "Michelle Allen", + "age": 32, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Brown and Sons", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "explain", + "category": "agree", + "price": 398.65, + "stock_quantity": 872 + }, + "customer": { + "name": "James Johnson", + "age": 22, + "country": "New Caledonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reyes Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reyes Inc", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "almost", + "category": "hot", + "price": 798.98, + "stock_quantity": 550 + }, + "customer": { + "name": "Mr. Brian Reeves", + "age": 77, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Villegas, Hernandez and Ward", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "gas", + "category": "for", + "price": 603.18, + "stock_quantity": 181 + }, + "customer": { + "name": "Melissa Aguilar MD", + "age": 20, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Mitchell-Logan", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "other", + "category": "chair", + "price": 951.1, + "stock_quantity": 18 + }, + "customer": { + "name": "Jodi Garza", + "age": 64, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Ford-Bentley", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "ahead", + "category": "appear", + "price": 967.31, + "stock_quantity": 817 + }, + "customer": { + "name": "Lauren Perez", + "age": 70, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Johnson-Soto", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "usually", + "category": "difficult", + "price": 27.15, + "stock_quantity": 197 + }, + "customer": { + "name": "Heather Gibson", + "age": 52, + "country": "Algeria" + } + }, + { + "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'", + "company": { + "name": "Cooper Ltd", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "role", + "category": "clearly", + "price": 960.71, + "stock_quantity": 201 + }, + "customer": { + "name": "Jill Merritt", + "age": 25, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Brown-Wheeler", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "effect", + "category": "week", + "price": 132.66, + "stock_quantity": 259 + }, + "customer": { + "name": "Karen Roberts", + "age": 43, + "country": "Antigua and Barbuda" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Phillips, Jackson and Wright for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Phillips, Jackson and Wright'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Phillips, Jackson and Wright", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "improve", + "category": "fast", + "price": 219.57, + "stock_quantity": 16 + }, + "customer": { + "name": "Megan Ortiz", + "age": 75, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Stafford, Harper and Rosario", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "turn", + "category": "food", + "price": 248.77, + "stock_quantity": 644 + }, + "customer": { + "name": "Crystal Valdez", + "age": 33, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Peters-Wong", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "student", + "category": "six", + "price": 708.34, + "stock_quantity": 950 + }, + "customer": { + "name": "Ricardo Bridges", + "age": 33, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Dorsey Group", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "admit", + "category": "add", + "price": 245.15, + "stock_quantity": 951 + }, + "customer": { + "name": "Gerald Morris", + "age": 27, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Brown Ltd", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "show", + "category": "actually", + "price": 74.1, + "stock_quantity": 329 + }, + "customer": { + "name": "Emily Calhoun", + "age": 60, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "King-Jones", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "international", + "category": "can", + "price": 651.36, + "stock_quantity": 322 + }, + "customer": { + "name": "Cindy Boyd", + "age": 31, + "country": "Burkina Faso" + } + }, + { + "natural_query": "List all products of Alvarado and Sons ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Alvarado and Sons' ORDER BY price DESC", + "company": { + "name": "Alvarado and Sons", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "benefit", + "category": "land", + "price": 149.62, + "stock_quantity": 699 + }, + "customer": { + "name": "John Taylor", + "age": 43, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Smith, Buchanan and Lowe", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "word", + "category": "moment", + "price": 411.27, + "stock_quantity": 969 + }, + "customer": { + "name": "Maria Jensen", + "age": 29, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Davis Inc", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "half", + "category": "watch", + "price": 194.04, + "stock_quantity": 358 + }, + "customer": { + "name": "Michelle Williams", + "age": 70, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Garcia-Chen", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "will", + "category": "wonder", + "price": 129.26, + "stock_quantity": 820 + }, + "customer": { + "name": "Arthur Doyle", + "age": 33, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Hubbard Ltd", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "choice", + "category": "large", + "price": 336.99, + "stock_quantity": 621 + }, + "customer": { + "name": "Andrew Crosby", + "age": 39, + "country": "Ireland" + } + }, + { + "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'", + "company": { + "name": "Harmon, Green and Robinson", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "everything", + "category": "out", + "price": 661.43, + "stock_quantity": 292 + }, + "customer": { + "name": "Ashley Jennings", + "age": 60, + "country": "Congo" + } + }, + { + "natural_query": "Show me all products in the meeting category with a price over $661.24.", + "sql_query": "SELECT * FROM products WHERE category = 'meeting' AND price > 661.24", + "company": { + "name": "Foley-Morrow", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "work", + "category": "meeting", + "price": 661.24, + "stock_quantity": 127 + }, + "customer": { + "name": "Jennifer Clark", + "age": 20, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Chandler, Moore and Hall", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "her", + "category": "another", + "price": 902.88, + "stock_quantity": 17 + }, + "customer": { + "name": "William Jordan", + "age": 70, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Tran LLC", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "PM", + "category": "ok", + "price": 389.14, + "stock_quantity": 938 + }, + "customer": { + "name": "Donald Burke", + "age": 54, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Ward-Tucker", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "fish", + "category": "even", + "price": 280.31, + "stock_quantity": 457 + }, + "customer": { + "name": "Mrs. Lori Lee DDS", + "age": 66, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Gray-Sampson", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "capital", + "category": "worry", + "price": 176.69, + "stock_quantity": 86 + }, + "customer": { + "name": "Jacob Harper", + "age": 46, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Morrison, Wade and Key", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "country", + "category": "lay", + "price": 415.15, + "stock_quantity": 50 + }, + "customer": { + "name": "Katie Young", + "age": 44, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Davis-Thompson", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "live", + "category": "woman", + "price": 712.69, + "stock_quantity": 189 + }, + "customer": { + "name": "Allison Cook", + "age": 74, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Smith, Jones and Reed", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "left", + "category": "suggest", + "price": 643.6, + "stock_quantity": 364 + }, + "customer": { + "name": "Kimberly Rivera", + "age": 39, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Boyd and Sons", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "teacher", + "category": "sister", + "price": 841.63, + "stock_quantity": 720 + }, + "customer": { + "name": "Patricia Ruiz", + "age": 55, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Rollins PLC", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "hold", + "category": "threat", + "price": 809.48, + "stock_quantity": 651 + }, + "customer": { + "name": "Amanda White", + "age": 65, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Ramirez-Reed", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "offer", + "category": "score", + "price": 59.79, + "stock_quantity": 515 + }, + "customer": { + "name": "Megan Hess", + "age": 71, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Sullivan-Wells", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "of", + "category": "though", + "price": 948.97, + "stock_quantity": 745 + }, + "customer": { + "name": "Ashley Bennett", + "age": 37, + "country": "Belize" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martinez-Chase'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martinez-Chase", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "around", + "category": "argue", + "price": 259.65, + "stock_quantity": 651 + }, + "customer": { + "name": "Jonathan Hill", + "age": 39, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Mills, Watts and Hopkins", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "space", + "category": "decide", + "price": 98.13, + "stock_quantity": 789 + }, + "customer": { + "name": "Rebecca Turner", + "age": 26, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Hughes-Adams", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "amount", + "category": "feel", + "price": 996.22, + "stock_quantity": 711 + }, + "customer": { + "name": "Stephanie Norris", + "age": 39, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Roberts-Smith", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "city", + "category": "question", + "price": 676.5, + "stock_quantity": 789 + }, + "customer": { + "name": "Sheila Martin", + "age": 36, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Espinoza Inc", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "clearly", + "category": "wife", + "price": 801.7, + "stock_quantity": 410 + }, + "customer": { + "name": "Cynthia Erickson", + "age": 73, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Dorsey PLC", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "war", + "category": "under", + "price": 475.4, + "stock_quantity": 423 + }, + "customer": { + "name": "David Jones", + "age": 42, + "country": "Vietnam" + } + }, + { + "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'", + "company": { + "name": "Richmond, Sharp and Li", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "drop", + "category": "skin", + "price": 33.21, + "stock_quantity": 736 + }, + "customer": { + "name": "Jenny Watts", + "age": 53, + "country": "Norway" + } + }, + { + "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'", + "company": { + "name": "Mitchell LLC", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "sit", + "category": "moment", + "price": 269.73, + "stock_quantity": 705 + }, + "customer": { + "name": "Tyler Clark", + "age": 44, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Ford Inc", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "structure", + "category": "we", + "price": 791.83, + "stock_quantity": 130 + }, + "customer": { + "name": "Dana Green", + "age": 21, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Schneider, Smith and Taylor", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "technology", + "category": "policy", + "price": 959.9, + "stock_quantity": 859 + }, + "customer": { + "name": "John Oliver", + "age": 41, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Gutierrez LLC", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "media", + "category": "car", + "price": 212.12, + "stock_quantity": 193 + }, + "customer": { + "name": "Russell Smith", + "age": 32, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Anderson, Barnes and Sanders", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "machine", + "category": "radio", + "price": 246.93, + "stock_quantity": 664 + }, + "customer": { + "name": "Chad Kirk", + "age": 76, + "country": "Cayman Islands" + } + }, + { + "natural_query": "What are the top 7 products by revenue for Richardson Ltd all time?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Richardson Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7", + "company": { + "name": "Richardson Ltd", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "north", + "category": "price", + "price": 118.55, + "stock_quantity": 145 + }, + "customer": { + "name": "Kelli Knapp", + "age": 72, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Black-Cooper", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "trial", + "category": "figure", + "price": 854.46, + "stock_quantity": 804 + }, + "customer": { + "name": "Wanda Martin", + "age": 68, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Fleming-Hunt", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "sometimes", + "category": "and", + "price": 140.59, + "stock_quantity": 268 + }, + "customer": { + "name": "Joshua Bowman", + "age": 24, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Ramsey Ltd", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "get", + "category": "ten", + "price": 908.03, + "stock_quantity": 215 + }, + "customer": { + "name": "Dean Miller", + "age": 80, + "country": "Iran" + } + }, + { + "natural_query": "Show me all products in the marriage category with a price over $784.78.", + "sql_query": "SELECT * FROM products WHERE category = 'marriage' AND price > 784.78", + "company": { + "name": "Wilson, Bird and Short", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "free", + "category": "marriage", + "price": 784.78, + "stock_quantity": 54 + }, + "customer": { + "name": "Deanna Wilson", + "age": 49, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Smith, Kennedy and Craig", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "along", + "category": "player", + "price": 537.13, + "stock_quantity": 536 + }, + "customer": { + "name": "Thomas York", + "age": 33, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Robinson, Mitchell and Roberts", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "out", + "category": "treat", + "price": 25.49, + "stock_quantity": 774 + }, + "customer": { + "name": "Marcus Shaw", + "age": 32, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Wright LLC", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "near", + "category": "alone", + "price": 346.55, + "stock_quantity": 532 + }, + "customer": { + "name": "Juan Terry", + "age": 39, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Horn Ltd", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "business", + "category": "on", + "price": 34.72, + "stock_quantity": 717 + }, + "customer": { + "name": "James Lowe", + "age": 74, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Ramirez, Copeland and Rodriguez", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "despite", + "category": "leave", + "price": 488.73, + "stock_quantity": 817 + }, + "customer": { + "name": "Jenna Smith", + "age": 20, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Lewis and Sons", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "character", + "category": "represent", + "price": 366.95, + "stock_quantity": 881 + }, + "customer": { + "name": "Amy Fritz MD", + "age": 65, + "country": "Saint Lucia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Banks, Ortiz and Welch'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Banks, Ortiz and Welch", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "total", + "category": "nation", + "price": 822.47, + "stock_quantity": 127 + }, + "customer": { + "name": "Andrew Miller", + "age": 28, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Brown and Sons", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "have", + "category": "half", + "price": 672.5, + "stock_quantity": 7 + }, + "customer": { + "name": "Mindy Suarez DVM", + "age": 64, + "country": "Cambodia" + } + }, + { + "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'", + "company": { + "name": "Scott, Braun and Gonzales", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "series", + "category": "one", + "price": 217.26, + "stock_quantity": 33 + }, + "customer": { + "name": "Angel Jones", + "age": 38, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Baldwin-Phillips", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "guy", + "category": "kid", + "price": 335.3, + "stock_quantity": 802 + }, + "customer": { + "name": "Kelly Flores", + "age": 78, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Allison, Bautista and Young", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "knowledge", + "category": "near", + "price": 337.94, + "stock_quantity": 733 + }, + "customer": { + "name": "Paige Larson", + "age": 36, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Marshall-Thompson", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "early", + "category": "tell", + "price": 507.36, + "stock_quantity": 308 + }, + "customer": { + "name": "Eric Byrd", + "age": 18, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "Johnson, Phillips and Hale", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "magazine", + "category": "she", + "price": 951.34, + "stock_quantity": 581 + }, + "customer": { + "name": "Anthony Freeman", + "age": 40, + "country": "United States Minor Outlying Islands" + } + }, + { + "natural_query": "What is the total quantity of all products for Dodson, Edwards and Bell?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Dodson, Edwards and Bell'", + "company": { + "name": "Dodson, Edwards and Bell", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "base", + "category": "similar", + "price": 986.08, + "stock_quantity": 244 + }, + "customer": { + "name": "Catherine Vazquez", + "age": 41, + "country": "Cuba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Blackburn, Hall and Kim'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Blackburn, Hall and Kim", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "evidence", + "category": "key", + "price": 963.18, + "stock_quantity": 859 + }, + "customer": { + "name": "Adam Martinez", + "age": 30, + "country": "Faroe Islands" + } + }, + { + "natural_query": "What is the total profit for each country in Peters-Trujillo?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Peters-Trujillo' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Peters-Trujillo", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "coach", + "category": "drive", + "price": 727.33, + "stock_quantity": 171 + }, + "customer": { + "name": "William Porter", + "age": 22, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Boyer, Howard and Rodriguez", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "behavior", + "category": "different", + "price": 110.38, + "stock_quantity": 972 + }, + "customer": { + "name": "Lisa Joseph", + "age": 36, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Cervantes, Nguyen and Jefferson", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "degree", + "category": "during", + "price": 497.63, + "stock_quantity": 137 + }, + "customer": { + "name": "Bryan Ramirez", + "age": 62, + "country": "Cyprus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gonzales-Nielsen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gonzales-Nielsen", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "high", + "category": "morning", + "price": 907.56, + "stock_quantity": 689 + }, + "customer": { + "name": "Debbie Smith", + "age": 80, + "country": "Myanmar" + } + }, + { + "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'", + "company": { + "name": "Fuller, Patel and Bradford", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "direction", + "category": "trial", + "price": 666.78, + "stock_quantity": 900 + }, + "customer": { + "name": "Antonio Fitzgerald", + "age": 54, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Marsh-Rivera", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "range", + "category": "something", + "price": 740.27, + "stock_quantity": 896 + }, + "customer": { + "name": "Cheyenne Jordan", + "age": 73, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Stewart Inc", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "where", + "category": "box", + "price": 545.24, + "stock_quantity": 268 + }, + "customer": { + "name": "Randall Harris", + "age": 39, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Levine, Garcia and Mack", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "rest", + "category": "board", + "price": 371.0, + "stock_quantity": 619 + }, + "customer": { + "name": "Michelle Nguyen", + "age": 37, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Barnes Inc", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "traditional", + "category": "have", + "price": 88.71, + "stock_quantity": 22 + }, + "customer": { + "name": "David Gonzalez", + "age": 38, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Pacheco Group", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "mission", + "category": "respond", + "price": 645.57, + "stock_quantity": 636 + }, + "customer": { + "name": "Tonya Richard", + "age": 73, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Kirk, Wood and Ruiz", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "check", + "category": "three", + "price": 705.05, + "stock_quantity": 985 + }, + "customer": { + "name": "Sara Nelson", + "age": 60, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Mullins LLC", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "to", + "category": "law", + "price": 279.98, + "stock_quantity": 487 + }, + "customer": { + "name": "Erin Gray", + "age": 76, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Harvey PLC", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "soon", + "category": "race", + "price": 50.89, + "stock_quantity": 9 + }, + "customer": { + "name": "Glenn Jones", + "age": 59, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Brewer-Chang", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "author", + "category": "industry", + "price": 502.74, + "stock_quantity": 974 + }, + "customer": { + "name": "Raymond Carr", + "age": 67, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Weiss and Sons", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "nor", + "category": "system", + "price": 370.76, + "stock_quantity": 459 + }, + "customer": { + "name": "Misty King", + "age": 60, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Taylor, Knight and Nelson", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "reveal", + "category": "miss", + "price": 791.89, + "stock_quantity": 507 + }, + "customer": { + "name": "Kevin Barnett", + "age": 71, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Jimenez, George and Hunter", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "place", + "category": "wind", + "price": 727.55, + "stock_quantity": 862 + }, + "customer": { + "name": "Robert Quinn", + "age": 69, + "country": "Papua New Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gilbert LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gilbert LLC", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "enough", + "category": "trade", + "price": 349.99, + "stock_quantity": 678 + }, + "customer": { + "name": "Sean Nicholson", + "age": 34, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Wong, Barry and Murphy", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "middle", + "category": "play", + "price": 143.01, + "stock_quantity": 80 + }, + "customer": { + "name": "Bryan Wheeler", + "age": 36, + "country": "Guyana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mendoza Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mendoza Ltd", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "kind", + "category": "lead", + "price": 976.29, + "stock_quantity": 330 + }, + "customer": { + "name": "Wesley Stewart", + "age": 23, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Rogers", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "way", + "category": "improve", + "price": 649.74, + "stock_quantity": 393 + }, + "customer": { + "name": "Rebecca Brady", + "age": 33, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Solis Ltd", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "tell", + "category": "southern", + "price": 836.59, + "stock_quantity": 246 + }, + "customer": { + "name": "Todd Gilmore", + "age": 76, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Monroe-Gray", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "offer", + "category": "article", + "price": 303.99, + "stock_quantity": 907 + }, + "customer": { + "name": "Michelle Nichols", + "age": 64, + "country": "Mayotte" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sanchez Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sanchez Inc", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "Democrat", + "category": "rich", + "price": 900.56, + "stock_quantity": 98 + }, + "customer": { + "name": "Gabriela Dean", + "age": 72, + "country": "Guam" + } + }, + { + "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'", + "company": { + "name": "Nelson, Smith and Greer", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "special", + "category": "into", + "price": 716.07, + "stock_quantity": 132 + }, + "customer": { + "name": "Kevin Miller", + "age": 69, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Edwards, Stevens and Gilbert", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "likely", + "category": "water", + "price": 36.98, + "stock_quantity": 129 + }, + "customer": { + "name": "Tonya Murray", + "age": 47, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Jenkins, Torres and Torres", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "north", + "category": "Mr", + "price": 362.69, + "stock_quantity": 301 + }, + "customer": { + "name": "Alisha Smith", + "age": 43, + "country": "Slovenia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis Ltd", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "activity", + "category": "American", + "price": 399.97, + "stock_quantity": 191 + }, + "customer": { + "name": "Erin Brown", + "age": 64, + "country": "Bahrain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gaines, Klein and Hunter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gaines, Klein and Hunter", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "play", + "category": "political", + "price": 764.83, + "stock_quantity": 429 + }, + "customer": { + "name": "Theodore Weaver", + "age": 55, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Moore Ltd", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "white", + "category": "possible", + "price": 123.54, + "stock_quantity": 216 + }, + "customer": { + "name": "Anna Alexander", + "age": 54, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Jensen, Sullivan and Johnson", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "who", + "category": "state", + "price": 774.7, + "stock_quantity": 966 + }, + "customer": { + "name": "Rodney Diaz", + "age": 57, + "country": "Uruguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Warren, Miller and Lawrence'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Warren, Miller and Lawrence", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "next", + "category": "investment", + "price": 115.22, + "stock_quantity": 73 + }, + "customer": { + "name": "Mark Mcgee", + "age": 41, + "country": "Micronesia" + } + }, + { + "natural_query": "Show me all products in the process category with a price over $840.63.", + "sql_query": "SELECT * FROM products WHERE category = 'process' AND price > 840.63", + "company": { + "name": "Duran Inc", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "recognize", + "category": "process", + "price": 840.63, + "stock_quantity": 955 + }, + "customer": { + "name": "Travis Navarro", + "age": 60, + "country": "Isle of Man" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mullins and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mullins and Sons", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "executive", + "category": "section", + "price": 711.41, + "stock_quantity": 227 + }, + "customer": { + "name": "Paula Simpson", + "age": 61, + "country": "Bahamas" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez-Lamb'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez-Lamb", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "painting", + "category": "why", + "price": 720.33, + "stock_quantity": 763 + }, + "customer": { + "name": "Howard Dillon", + "age": 46, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Ortega-Palmer", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "behind", + "category": "investment", + "price": 436.48, + "stock_quantity": 608 + }, + "customer": { + "name": "David Pace", + "age": 41, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Clark-Turner", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "various", + "category": "Mr", + "price": 956.13, + "stock_quantity": 365 + }, + "customer": { + "name": "Anthony Mills", + "age": 51, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Hernandez, Carter and Holland", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "democratic", + "category": "cup", + "price": 528.44, + "stock_quantity": 412 + }, + "customer": { + "name": "Robert Johnston", + "age": 37, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Spencer LLC", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "deep", + "category": "bag", + "price": 678.08, + "stock_quantity": 533 + }, + "customer": { + "name": "Miss Danielle Manning DVM", + "age": 64, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Brown, Cooke and Keith", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "example", + "category": "former", + "price": 665.65, + "stock_quantity": 721 + }, + "customer": { + "name": "Michael Ayers", + "age": 46, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Johnson, Hanson and Ball", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "popular", + "category": "simply", + "price": 675.16, + "stock_quantity": 633 + }, + "customer": { + "name": "Angela Lopez", + "age": 26, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Martin Inc", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "detail", + "category": "popular", + "price": 429.24, + "stock_quantity": 960 + }, + "customer": { + "name": "Jesse Barber", + "age": 45, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Owen-Martin", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "any", + "category": "above", + "price": 185.34, + "stock_quantity": 97 + }, + "customer": { + "name": "Courtney Shepherd", + "age": 37, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Taylor PLC", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "carry", + "category": "including", + "price": 656.77, + "stock_quantity": 705 + }, + "customer": { + "name": "Michael Jones", + "age": 49, + "country": "Gambia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Tran and Thompson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Tran and Thompson", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "more", + "category": "production", + "price": 105.99, + "stock_quantity": 142 + }, + "customer": { + "name": "David Leon", + "age": 26, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "King Ltd", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "population", + "category": "institution", + "price": 322.23, + "stock_quantity": 542 + }, + "customer": { + "name": "Heather Rodriguez MD", + "age": 48, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Taylor-Greer", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "past", + "category": "fine", + "price": 907.81, + "stock_quantity": 546 + }, + "customer": { + "name": "James Harvey", + "age": 32, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Williams Ltd", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "although", + "category": "firm", + "price": 214.02, + "stock_quantity": 706 + }, + "customer": { + "name": "Patricia Oliver", + "age": 48, + "country": "Honduras" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'David PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "David PLC", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "them", + "category": "design", + "price": 983.09, + "stock_quantity": 370 + }, + "customer": { + "name": "Samantha Chase", + "age": 62, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Bell PLC", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "return", + "category": "yourself", + "price": 53.65, + "stock_quantity": 162 + }, + "customer": { + "name": "Angela Sullivan", + "age": 70, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Schultz, James and Whitehead", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "bag", + "category": "task", + "price": 795.51, + "stock_quantity": 300 + }, + "customer": { + "name": "Nicholas Richard", + "age": 35, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Anderson Inc", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "could", + "category": "well", + "price": 660.13, + "stock_quantity": 697 + }, + "customer": { + "name": "Daniel Lin", + "age": 20, + "country": "Finland" + } + }, + { + "natural_query": "List all customers and their total order value for Patel, Washington and Barker.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Patel, Washington and Barker' GROUP BY c.customer_id", + "company": { + "name": "Patel, Washington and Barker", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "address", + "category": "cup", + "price": 562.71, + "stock_quantity": 360 + }, + "customer": { + "name": "Tracey Mclean", + "age": 25, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Snyder-Joyce", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "girl", + "category": "very", + "price": 597.37, + "stock_quantity": 356 + }, + "customer": { + "name": "Isabel Li", + "age": 23, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Davidson, Williams and Allen", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "very", + "category": "budget", + "price": 756.47, + "stock_quantity": 953 + }, + "customer": { + "name": "Jessica Smith", + "age": 24, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Bridges, Griffith and Mullins", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "environmental", + "category": "sell", + "price": 574.08, + "stock_quantity": 260 + }, + "customer": { + "name": "Leslie Gomez", + "age": 42, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Whitehead Group", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "thank", + "category": "top", + "price": 215.43, + "stock_quantity": 162 + }, + "customer": { + "name": "Lawrence Foster", + "age": 56, + "country": "Kyrgyz Republic" + } + }, + { + "natural_query": "What are the top 7 products by customers for Blackwell, Williams and Ward last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Blackwell, Williams and Ward' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7", + "company": { + "name": "Blackwell, Williams and Ward", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "along", + "category": "important", + "price": 639.92, + "stock_quantity": 529 + }, + "customer": { + "name": "Emily Schwartz", + "age": 39, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pitts, Allen and Bell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pitts, Allen and Bell", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "then", + "category": "mean", + "price": 511.32, + "stock_quantity": 833 + }, + "customer": { + "name": "Donald Thomas", + "age": 34, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Romero LLC", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "show", + "category": "away", + "price": 221.75, + "stock_quantity": 487 + }, + "customer": { + "name": "Daniel Evans", + "age": 69, + "country": "Estonia" + } + }, + { + "natural_query": "List all customers and their total order value for Perez-Torres.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Perez-Torres' GROUP BY c.customer_id", + "company": { + "name": "Perez-Torres", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "contain", + "category": "unit", + "price": 899.08, + "stock_quantity": 767 + }, + "customer": { + "name": "Amy Cooper", + "age": 70, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Sanchez, Martinez and Yates", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "federal", + "category": "pull", + "price": 590.47, + "stock_quantity": 540 + }, + "customer": { + "name": "Sherry Lowe", + "age": 54, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Snyder, Carter and Jackson", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "southern", + "category": "PM", + "price": 593.79, + "stock_quantity": 155 + }, + "customer": { + "name": "Cindy Clark", + "age": 35, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Williams-Griffin", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "possible", + "category": "ahead", + "price": 109.11, + "stock_quantity": 764 + }, + "customer": { + "name": "Erin Price", + "age": 28, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Gilbert-Tapia", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "up", + "category": "they", + "price": 191.82, + "stock_quantity": 10 + }, + "customer": { + "name": "Ashley Lynn", + "age": 58, + "country": "Christmas Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dunn-Luna'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dunn-Luna", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "measure", + "category": "view", + "price": 924.54, + "stock_quantity": 707 + }, + "customer": { + "name": "Aaron Scott", + "age": 42, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Martin, Floyd and Hoffman", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "suddenly", + "category": "spend", + "price": 18.65, + "stock_quantity": 1000 + }, + "customer": { + "name": "Vickie Rojas", + "age": 46, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Holmes, Schroeder and Kirk", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "heart", + "category": "yourself", + "price": 417.08, + "stock_quantity": 930 + }, + "customer": { + "name": "Sarah Hill", + "age": 21, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Rose PLC", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "because", + "category": "direction", + "price": 874.8, + "stock_quantity": 229 + }, + "customer": { + "name": "Maureen Cruz", + "age": 25, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Pruitt, Dudley and Myers", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "job", + "category": "score", + "price": 847.82, + "stock_quantity": 959 + }, + "customer": { + "name": "Kathleen Johnson", + "age": 73, + "country": "Barbados" + } + }, + { + "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'", + "company": { + "name": "Roman-Baker", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "throughout", + "category": "white", + "price": 780.95, + "stock_quantity": 500 + }, + "customer": { + "name": "James Morris", + "age": 39, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Vega-Buchanan", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "sense", + "category": "pretty", + "price": 665.87, + "stock_quantity": 475 + }, + "customer": { + "name": "Sally Baird", + "age": 26, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Duncan-Archer", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "open", + "category": "day", + "price": 85.81, + "stock_quantity": 319 + }, + "customer": { + "name": "Glenn Berg", + "age": 46, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Moore, Cain and Berry", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "give", + "category": "admit", + "price": 23.57, + "stock_quantity": 188 + }, + "customer": { + "name": "David Montes", + "age": 47, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Mccormick-Miles", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "fight", + "category": "big", + "price": 691.44, + "stock_quantity": 164 + }, + "customer": { + "name": "Cynthia Grant MD", + "age": 64, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Keith-Montoya", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "so", + "category": "present", + "price": 859.88, + "stock_quantity": 699 + }, + "customer": { + "name": "William Gardner", + "age": 45, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Harris-Hernandez", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "actually", + "category": "stand", + "price": 472.29, + "stock_quantity": 594 + }, + "customer": { + "name": "Blake Cook", + "age": 67, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Sanders Ltd", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "heart", + "category": "campaign", + "price": 901.26, + "stock_quantity": 632 + }, + "customer": { + "name": "Andrew Poole", + "age": 57, + "country": "Slovenia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wood Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wood Group", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "thus", + "category": "accept", + "price": 315.37, + "stock_quantity": 83 + }, + "customer": { + "name": "Matthew Martinez", + "age": 32, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Allen, Evans and Leonard", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "two", + "category": "those", + "price": 453.4, + "stock_quantity": 251 + }, + "customer": { + "name": "Laura Bruce", + "age": 54, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Saunders, Berg and Phillips", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "in", + "category": "area", + "price": 997.16, + "stock_quantity": 586 + }, + "customer": { + "name": "Jack Phillips", + "age": 73, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Lee Ltd", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "support", + "category": "figure", + "price": 237.49, + "stock_quantity": 829 + }, + "customer": { + "name": "Stephanie Duncan", + "age": 33, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Bryant, Black and Kelly", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "economic", + "category": "represent", + "price": 78.34, + "stock_quantity": 902 + }, + "customer": { + "name": "Julie Singh", + "age": 30, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Rose-Medina", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "white", + "category": "TV", + "price": 662.16, + "stock_quantity": 789 + }, + "customer": { + "name": "Anthony Baird", + "age": 35, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Collins LLC", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "plan", + "category": "lawyer", + "price": 78.11, + "stock_quantity": 180 + }, + "customer": { + "name": "Isaiah Gates", + "age": 28, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Massey-Anderson", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "best", + "category": "on", + "price": 991.9, + "stock_quantity": 254 + }, + "customer": { + "name": "Carol Anderson", + "age": 74, + "country": "Taiwan" + } + }, + { + "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'", + "company": { + "name": "Evans PLC", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "top", + "category": "history", + "price": 918.26, + "stock_quantity": 912 + }, + "customer": { + "name": "Craig Leon", + "age": 63, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Morton-Carson", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "source", + "category": "involve", + "price": 393.81, + "stock_quantity": 266 + }, + "customer": { + "name": "Shelly Sandoval", + "age": 30, + "country": "Iceland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garza, Barnes and Higgins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garza, Barnes and Higgins", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "once", + "category": "he", + "price": 916.72, + "stock_quantity": 598 + }, + "customer": { + "name": "Matthew Taylor", + "age": 36, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Clarke, Taylor and Diaz", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "public", + "category": "member", + "price": 704.27, + "stock_quantity": 211 + }, + "customer": { + "name": "Jason Wu", + "age": 23, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Clark Ltd", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "gun", + "category": "what", + "price": 154.76, + "stock_quantity": 816 + }, + "customer": { + "name": "Beth Bright", + "age": 40, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Cobb PLC", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "door", + "category": "billion", + "price": 139.36, + "stock_quantity": 873 + }, + "customer": { + "name": "Marissa Graham", + "age": 32, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Cummings-Jimenez", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "number", + "category": "save", + "price": 110.59, + "stock_quantity": 174 + }, + "customer": { + "name": "Tonya Baker", + "age": 74, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Anderson and Sons", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "pay", + "category": "service", + "price": 387.75, + "stock_quantity": 771 + }, + "customer": { + "name": "Mrs. Brittney Townsend", + "age": 30, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Larson Group", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "actually", + "category": "low", + "price": 240.8, + "stock_quantity": 662 + }, + "customer": { + "name": "Rhonda Ramos", + "age": 69, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Garcia and Sons", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "away", + "category": "edge", + "price": 418.73, + "stock_quantity": 722 + }, + "customer": { + "name": "Vickie Barnes", + "age": 63, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Coleman-Singleton", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "bank", + "category": "everyone", + "price": 874.77, + "stock_quantity": 808 + }, + "customer": { + "name": "Jordan Russo", + "age": 30, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Johnson, Salazar and Long", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "new", + "category": "around", + "price": 936.52, + "stock_quantity": 623 + }, + "customer": { + "name": "Melissa Pierce", + "age": 30, + "country": "Madagascar" + } + }, + { + "natural_query": "List all products of Gutierrez-Mitchell ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Gutierrez-Mitchell' ORDER BY stock_quantity ASC", + "company": { + "name": "Gutierrez-Mitchell", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "name", + "category": "Congress", + "price": 224.28, + "stock_quantity": 225 + }, + "customer": { + "name": "Christopher Green", + "age": 52, + "country": "Greece" + } + }, + { + "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'", + "company": { + "name": "Wells, Hunter and Hurley", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "these", + "category": "short", + "price": 167.98, + "stock_quantity": 132 + }, + "customer": { + "name": "Isaiah Martinez", + "age": 70, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Keller Ltd", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "information", + "category": "less", + "price": 951.6, + "stock_quantity": 736 + }, + "customer": { + "name": "Theodore Stevens", + "age": 30, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Harris-Short", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "crime", + "category": "cause", + "price": 758.79, + "stock_quantity": 673 + }, + "customer": { + "name": "Ryan Mclean", + "age": 44, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Kaiser-Gordon", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "four", + "category": "project", + "price": 290.87, + "stock_quantity": 713 + }, + "customer": { + "name": "Shelby Oconnor", + "age": 24, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Mendez-Smith", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "week", + "category": "city", + "price": 993.9, + "stock_quantity": 235 + }, + "customer": { + "name": "Linda Richardson", + "age": 68, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Nunez PLC", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "attack", + "category": "sister", + "price": 697.77, + "stock_quantity": 873 + }, + "customer": { + "name": "Tyler Trujillo", + "age": 49, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Steele Ltd", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "shake", + "category": "find", + "price": 739.96, + "stock_quantity": 872 + }, + "customer": { + "name": "John Vega", + "age": 72, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Gilmore-Goodman", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "raise", + "category": "position", + "price": 415.12, + "stock_quantity": 993 + }, + "customer": { + "name": "Matthew Campbell", + "age": 76, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Coleman Ltd", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "person", + "category": "authority", + "price": 187.98, + "stock_quantity": 424 + }, + "customer": { + "name": "Kelly Mullins", + "age": 41, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Juarez, Wilson and Schwartz", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "site", + "category": "draw", + "price": 991.83, + "stock_quantity": 301 + }, + "customer": { + "name": "Amber Bush", + "age": 80, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Evans LLC", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "strategy", + "category": "point", + "price": 814.59, + "stock_quantity": 130 + }, + "customer": { + "name": "Justin Gonzalez", + "age": 72, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Marsh, Ruiz and Hernandez", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "common", + "category": "national", + "price": 567.93, + "stock_quantity": 711 + }, + "customer": { + "name": "Deborah Graves", + "age": 45, + "country": "Gabon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Berry Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Berry Inc", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "song", + "category": "within", + "price": 33.43, + "stock_quantity": 726 + }, + "customer": { + "name": "Deborah Ho", + "age": 59, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Powell, Harris and Macias", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "treatment", + "category": "TV", + "price": 468.43, + "stock_quantity": 311 + }, + "customer": { + "name": "Shane Medina", + "age": 25, + "country": "Turkmenistan" + } + }, + { + "natural_query": "List all customers and their total order value for Garcia, Peterson and Gordon.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Garcia, Peterson and Gordon' GROUP BY c.customer_id", + "company": { + "name": "Garcia, Peterson and Gordon", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "past", + "category": "fight", + "price": 113.93, + "stock_quantity": 582 + }, + "customer": { + "name": "Teresa Kramer", + "age": 55, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Bates-Martin", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "field", + "category": "company", + "price": 300.92, + "stock_quantity": 976 + }, + "customer": { + "name": "Antonio Miller", + "age": 50, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "George-Owens", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "wind", + "category": "develop", + "price": 686.98, + "stock_quantity": 697 + }, + "customer": { + "name": "Jessica Wilson", + "age": 46, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Goodman PLC", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "learn", + "category": "standard", + "price": 146.01, + "stock_quantity": 613 + }, + "customer": { + "name": "Andrea White", + "age": 76, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Davis-Warren", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "understand", + "category": "wall", + "price": 373.27, + "stock_quantity": 689 + }, + "customer": { + "name": "Mary Smith", + "age": 57, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Hill-Smith", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "cut", + "category": "house", + "price": 987.88, + "stock_quantity": 923 + }, + "customer": { + "name": "Phillip Patrick", + "age": 42, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Moss-Hoffman", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "long", + "category": "about", + "price": 280.01, + "stock_quantity": 430 + }, + "customer": { + "name": "Francis Moreno", + "age": 39, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Watson Ltd", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "house", + "category": "establish", + "price": 771.75, + "stock_quantity": 359 + }, + "customer": { + "name": "Helen Simmons", + "age": 22, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Hodges-Davis", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "produce", + "category": "short", + "price": 405.94, + "stock_quantity": 104 + }, + "customer": { + "name": "Teresa Nelson", + "age": 29, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Davis-Crosby", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "response", + "category": "reality", + "price": 388.54, + "stock_quantity": 712 + }, + "customer": { + "name": "Kelly Dawson", + "age": 25, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Rodriguez Group", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "purpose", + "category": "international", + "price": 983.81, + "stock_quantity": 415 + }, + "customer": { + "name": "Rhonda Hamilton", + "age": 72, + "country": "Panama" + } + }, + { + "natural_query": "What is the total sales for each supplier in Lewis, Morrison and Lane?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Lewis, Morrison and Lane' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Lewis, Morrison and Lane", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "improve", + "category": "film", + "price": 748.17, + "stock_quantity": 95 + }, + "customer": { + "name": "Bruce Park", + "age": 54, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Johnson-White", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "girl", + "category": "oil", + "price": 282.17, + "stock_quantity": 135 + }, + "customer": { + "name": "Jessica Dickerson", + "age": 45, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Burgess Ltd", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "manage", + "category": "happen", + "price": 500.56, + "stock_quantity": 28 + }, + "customer": { + "name": "Curtis Ramirez", + "age": 28, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Adams Inc", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "management", + "category": "particularly", + "price": 308.6, + "stock_quantity": 673 + }, + "customer": { + "name": "Michael Cordova", + "age": 25, + "country": "Chad" + } + }, + { + "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'", + "company": { + "name": "Owens, Griffin and Harvey", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "ok", + "category": "film", + "price": 740.88, + "stock_quantity": 461 + }, + "customer": { + "name": "Terri Oliver", + "age": 30, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Larson, Olson and Lambert", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "ok", + "category": "option", + "price": 986.06, + "stock_quantity": 194 + }, + "customer": { + "name": "Jessica Frye", + "age": 68, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Gray-Rollins", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "commercial", + "category": "owner", + "price": 543.61, + "stock_quantity": 665 + }, + "customer": { + "name": "Kristin Cantu", + "age": 80, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Johnson PLC", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "else", + "category": "well", + "price": 54.08, + "stock_quantity": 770 + }, + "customer": { + "name": "Michelle Nicholson", + "age": 78, + "country": "Tuvalu" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Barrera and Sons for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barrera and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barrera and Sons", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "central", + "category": "build", + "price": 173.22, + "stock_quantity": 242 + }, + "customer": { + "name": "Michael Smith", + "age": 78, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Moran, Martinez and Porter", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "garden", + "category": "look", + "price": 147.05, + "stock_quantity": 494 + }, + "customer": { + "name": "Heather Jimenez", + "age": 57, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Duffy-Taylor", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "responsibility", + "category": "most", + "price": 790.49, + "stock_quantity": 574 + }, + "customer": { + "name": "Caroline Archer", + "age": 66, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Shaw, Lee and Cruz", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "simply", + "category": "member", + "price": 844.72, + "stock_quantity": 908 + }, + "customer": { + "name": "Brent Bates", + "age": 58, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Fox, Martin and Acosta", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "tough", + "category": "yard", + "price": 353.32, + "stock_quantity": 707 + }, + "customer": { + "name": "Jennifer Shaw", + "age": 35, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Russo-Anderson", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "rather", + "category": "reduce", + "price": 329.45, + "stock_quantity": 439 + }, + "customer": { + "name": "William Ballard", + "age": 27, + "country": "Egypt" + } + }, + { + "natural_query": "List all products of Ayers-Dean ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Ayers-Dean' ORDER BY rating DESC", + "company": { + "name": "Ayers-Dean", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "responsibility", + "category": "out", + "price": 793.02, + "stock_quantity": 486 + }, + "customer": { + "name": "John Cross", + "age": 27, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Stewart, Bean and Maldonado", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "billion", + "category": "factor", + "price": 735.27, + "stock_quantity": 322 + }, + "customer": { + "name": "Jessica Callahan", + "age": 68, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Maynard Ltd", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "even", + "category": "perhaps", + "price": 399.75, + "stock_quantity": 685 + }, + "customer": { + "name": "Darryl Velazquez", + "age": 77, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Rivers, Montgomery and Simmons", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "inside", + "category": "policy", + "price": 949.93, + "stock_quantity": 370 + }, + "customer": { + "name": "Jennifer Davis", + "age": 21, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Lang, Allen and Flores", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "listen", + "category": "ready", + "price": 972.67, + "stock_quantity": 388 + }, + "customer": { + "name": "Ian Lindsey", + "age": 44, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Graham PLC", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "born", + "category": "long", + "price": 55.06, + "stock_quantity": 831 + }, + "customer": { + "name": "Peter Williams", + "age": 27, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Carpenter-Mason", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "me", + "category": "become", + "price": 431.63, + "stock_quantity": 614 + }, + "customer": { + "name": "Michael Riggs", + "age": 64, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Reed, Walters and Daniels", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "middle", + "category": "late", + "price": 236.1, + "stock_quantity": 357 + }, + "customer": { + "name": "Adam Adams", + "age": 75, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Young, Walter and Harris", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "spring", + "category": "home", + "price": 849.93, + "stock_quantity": 95 + }, + "customer": { + "name": "Danielle Baker", + "age": 51, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Floyd, Williams and Williams", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "knowledge", + "category": "also", + "price": 619.21, + "stock_quantity": 245 + }, + "customer": { + "name": "Timothy Morgan", + "age": 78, + "country": "Pitcairn Islands" + } + }, + { + "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'", + "company": { + "name": "Flynn-Ortiz", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "skill", + "category": "write", + "price": 854.66, + "stock_quantity": 874 + }, + "customer": { + "name": "Timothy Baker", + "age": 65, + "country": "Lebanon" + } + }, + { + "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'", + "company": { + "name": "Thompson, Castillo and Castillo", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "story", + "category": "early", + "price": 493.98, + "stock_quantity": 486 + }, + "customer": { + "name": "Tiffany Vasquez", + "age": 66, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Brooks Inc", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "out", + "category": "foot", + "price": 549.58, + "stock_quantity": 130 + }, + "customer": { + "name": "Megan Thompson", + "age": 65, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Sanchez, Nixon and Dixon", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "nice", + "category": "doctor", + "price": 216.22, + "stock_quantity": 502 + }, + "customer": { + "name": "Kimberly Williams", + "age": 53, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Meyer LLC", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "concern", + "category": "group", + "price": 255.91, + "stock_quantity": 525 + }, + "customer": { + "name": "Laura Manning", + "age": 56, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Kelly LLC", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "maintain", + "category": "well", + "price": 791.97, + "stock_quantity": 809 + }, + "customer": { + "name": "Michael Lewis", + "age": 35, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Booth and Sons", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "arm", + "category": "sign", + "price": 378.85, + "stock_quantity": 259 + }, + "customer": { + "name": "Jeffrey Mendez", + "age": 46, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Barnes, Flores and Robinson", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "large", + "category": "few", + "price": 539.48, + "stock_quantity": 28 + }, + "customer": { + "name": "Heidi Lang", + "age": 29, + "country": "Uzbekistan" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Shepherd Inc for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shepherd Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shepherd Inc", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "Congress", + "category": "area", + "price": 194.47, + "stock_quantity": 480 + }, + "customer": { + "name": "Kimberly Keller MD", + "age": 71, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Martin, Hicks and Martinez", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "few", + "category": "according", + "price": 463.12, + "stock_quantity": 51 + }, + "customer": { + "name": "Angela Thompson", + "age": 59, + "country": "Equatorial Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris-Peterson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris-Peterson", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "instead", + "category": "test", + "price": 155.21, + "stock_quantity": 475 + }, + "customer": { + "name": "Crystal Chen", + "age": 47, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Turner LLC", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "cut", + "category": "phone", + "price": 620.72, + "stock_quantity": 303 + }, + "customer": { + "name": "Charles Knight", + "age": 54, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Miller-Barker", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "may", + "category": "shake", + "price": 891.48, + "stock_quantity": 311 + }, + "customer": { + "name": "Carrie Garcia", + "age": 43, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Cruz, Garner and Harris", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "national", + "category": "official", + "price": 384.66, + "stock_quantity": 570 + }, + "customer": { + "name": "Jack Oliver", + "age": 24, + "country": "Comoros" + } + }, + { + "natural_query": "What are the top 5 products by orders for Little Inc all time?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Little Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5", + "company": { + "name": "Little Inc", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "far", + "category": "soon", + "price": 161.96, + "stock_quantity": 972 + }, + "customer": { + "name": "John Watson", + "age": 23, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "natural_query": "List all products of Kemp, Morris and Macdonald ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Kemp, Morris and Macdonald' ORDER BY stock_quantity ASC", + "company": { + "name": "Kemp, Morris and Macdonald", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "very", + "category": "radio", + "price": 961.34, + "stock_quantity": 766 + }, + "customer": { + "name": "Brenda Moss", + "age": 18, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Marshall-Hall", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "simply", + "category": "yet", + "price": 117.7, + "stock_quantity": 434 + }, + "customer": { + "name": "Abigail Richard", + "age": 42, + "country": "Cambodia" + } + }, + { + "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'", + "company": { + "name": "Sellers LLC", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "scene", + "category": "establish", + "price": 271.17, + "stock_quantity": 846 + }, + "customer": { + "name": "Morgan Rodriguez", + "age": 37, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Taylor and Sons", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "feel", + "category": "chance", + "price": 180.52, + "stock_quantity": 985 + }, + "customer": { + "name": "Breanna Miranda", + "age": 51, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Chan, Rodriguez and Wood", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "investment", + "category": "know", + "price": 308.15, + "stock_quantity": 286 + }, + "customer": { + "name": "Victoria Roberts", + "age": 59, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Stanley-Neal", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "million", + "category": "poor", + "price": 458.46, + "stock_quantity": 889 + }, + "customer": { + "name": "Janice Brady", + "age": 49, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Santiago Ltd", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "throw", + "category": "now", + "price": 863.48, + "stock_quantity": 820 + }, + "customer": { + "name": "Ashley Adkins", + "age": 32, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Petty-Koch", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "idea", + "category": "whose", + "price": 229.29, + "stock_quantity": 771 + }, + "customer": { + "name": "Scott Mitchell", + "age": 48, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Richardson, Smith and Moore", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "still", + "category": "seek", + "price": 936.91, + "stock_quantity": 948 + }, + "customer": { + "name": "Linda Becker", + "age": 69, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "son", + "category": "if", + "price": 150.46, + "stock_quantity": 804 + }, + "customer": { + "name": "Meghan Henderson", + "age": 44, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Dixon LLC", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "wait", + "category": "room", + "price": 879.1, + "stock_quantity": 702 + }, + "customer": { + "name": "Victor Davis", + "age": 19, + "country": "Saint Martin" + } + }, + { + "natural_query": "What are the top 4 products by orders for Nelson-Skinner all time?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Nelson-Skinner' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4", + "company": { + "name": "Nelson-Skinner", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "mean", + "category": "whatever", + "price": 490.28, + "stock_quantity": 201 + }, + "customer": { + "name": "Robert Campbell", + "age": 19, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Thomas PLC", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "line", + "category": "education", + "price": 810.74, + "stock_quantity": 816 + }, + "customer": { + "name": "Brandon Duran", + "age": 61, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "Wade-Brooks", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "find", + "category": "four", + "price": 620.21, + "stock_quantity": 914 + }, + "customer": { + "name": "Patricia Clements", + "age": 53, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Pollard-Parks", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "kitchen", + "category": "democratic", + "price": 359.93, + "stock_quantity": 486 + }, + "customer": { + "name": "Andrew Stewart", + "age": 68, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Lawrence, Williams and Friedman", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "culture", + "category": "itself", + "price": 986.69, + "stock_quantity": 666 + }, + "customer": { + "name": "Karen Bryant", + "age": 22, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Jackson and Sons", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "alone", + "category": "international", + "price": 171.12, + "stock_quantity": 228 + }, + "customer": { + "name": "Michael Clark", + "age": 63, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Johnson LLC", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "course", + "category": "really", + "price": 527.13, + "stock_quantity": 283 + }, + "customer": { + "name": "Alexander Phillips", + "age": 68, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Garcia Ltd", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "your", + "category": "enter", + "price": 996.54, + "stock_quantity": 672 + }, + "customer": { + "name": "Amy Boone", + "age": 34, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Horn-Ward", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "place", + "category": "technology", + "price": 79.19, + "stock_quantity": 694 + }, + "customer": { + "name": "Juan King", + "age": 46, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "King, Fritz and Baker", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "speech", + "category": "politics", + "price": 471.12, + "stock_quantity": 535 + }, + "customer": { + "name": "Ryan Bruce", + "age": 20, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Edwards-Green", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "tend", + "category": "method", + "price": 319.6, + "stock_quantity": 591 + }, + "customer": { + "name": "Robert James", + "age": 80, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "natural_query": "List all customers and their total order value for Fleming-Norton.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Fleming-Norton' GROUP BY c.customer_id", + "company": { + "name": "Fleming-Norton", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "use", + "category": "page", + "price": 396.08, + "stock_quantity": 168 + }, + "customer": { + "name": "Justin Walters", + "age": 49, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Bruce and Sons", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "commercial", + "category": "over", + "price": 76.31, + "stock_quantity": 271 + }, + "customer": { + "name": "Donald Gould", + "age": 48, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Chapman, Lopez and Dunn", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "production", + "category": "central", + "price": 767.22, + "stock_quantity": 159 + }, + "customer": { + "name": "Amanda Wilkerson", + "age": 31, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris-Walker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris-Walker", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "seem", + "category": "debate", + "price": 536.28, + "stock_quantity": 385 + }, + "customer": { + "name": "James Smith", + "age": 18, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Greene LLC", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "heart", + "category": "candidate", + "price": 844.88, + "stock_quantity": 584 + }, + "customer": { + "name": "Jack Harris", + "age": 40, + "country": "Namibia" + } + }, + { + "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'", + "company": { + "name": "Young-Hill", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "top", + "category": "common", + "price": 582.9, + "stock_quantity": 157 + }, + "customer": { + "name": "Anthony Hall", + "age": 58, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Horn LLC", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "meeting", + "category": "huge", + "price": 579.03, + "stock_quantity": 219 + }, + "customer": { + "name": "Sarah Meadows", + "age": 48, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Obrien-Mullins", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "story", + "category": "military", + "price": 691.11, + "stock_quantity": 707 + }, + "customer": { + "name": "Kathryn Nolan", + "age": 32, + "country": "Chile" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mitchell Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mitchell Inc", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "why", + "category": "specific", + "price": 574.64, + "stock_quantity": 316 + }, + "customer": { + "name": "Tyrone Smith", + "age": 49, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Romero-Moore", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "rest", + "category": "more", + "price": 86.78, + "stock_quantity": 403 + }, + "customer": { + "name": "Yolanda Gallagher", + "age": 72, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Thompson, Rivas and Bailey", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "every", + "category": "attorney", + "price": 927.38, + "stock_quantity": 318 + }, + "customer": { + "name": "Jose Williams", + "age": 64, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Myers-Richardson", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "positive", + "category": "here", + "price": 549.79, + "stock_quantity": 38 + }, + "customer": { + "name": "Michael Ford", + "age": 48, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Mitchell Group", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "threat", + "category": "money", + "price": 112.09, + "stock_quantity": 938 + }, + "customer": { + "name": "Joshua Sullivan", + "age": 64, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Hayes, Barr and Martin", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "blue", + "category": "billion", + "price": 187.85, + "stock_quantity": 576 + }, + "customer": { + "name": "Meghan Burgess", + "age": 49, + "country": "Swaziland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jenkins Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jenkins Ltd", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "reach", + "category": "most", + "price": 88.14, + "stock_quantity": 891 + }, + "customer": { + "name": "Taylor Benton", + "age": 56, + "country": "Cameroon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Manning-Peterson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Manning-Peterson", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "let", + "category": "mean", + "price": 199.44, + "stock_quantity": 8 + }, + "customer": { + "name": "Melinda Cunningham", + "age": 65, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Riley LLC", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "treat", + "category": "value", + "price": 480.3, + "stock_quantity": 904 + }, + "customer": { + "name": "Lauren Bryant", + "age": 61, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "White-Sullivan", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "impact", + "category": "left", + "price": 975.5, + "stock_quantity": 202 + }, + "customer": { + "name": "Ashley Evans", + "age": 69, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Guerra, David and Strickland", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "off", + "category": "girl", + "price": 981.45, + "stock_quantity": 53 + }, + "customer": { + "name": "Richard Anderson", + "age": 24, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Ellis Ltd", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "how", + "category": "particular", + "price": 69.03, + "stock_quantity": 741 + }, + "customer": { + "name": "Robert Joseph", + "age": 42, + "country": "Guinea-Bissau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cook Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cook Group", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "material", + "category": "begin", + "price": 34.4, + "stock_quantity": 566 + }, + "customer": { + "name": "Christopher Williams", + "age": 63, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Watson, White and Ellis", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "admit", + "category": "wrong", + "price": 909.7, + "stock_quantity": 786 + }, + "customer": { + "name": "Curtis Cline", + "age": 21, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Ellis-Ward", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "customer", + "category": "identify", + "price": 459.94, + "stock_quantity": 386 + }, + "customer": { + "name": "Darren Fry", + "age": 40, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Smith Ltd", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "when", + "category": "assume", + "price": 628.41, + "stock_quantity": 311 + }, + "customer": { + "name": "Andrea Rodriguez", + "age": 31, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Thomas, Sweeney and Cisneros", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "real", + "category": "week", + "price": 728.14, + "stock_quantity": 558 + }, + "customer": { + "name": "John Parrish", + "age": 22, + "country": "Central African Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Vargas PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Vargas PLC", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "along", + "category": "individual", + "price": 845.04, + "stock_quantity": 914 + }, + "customer": { + "name": "Mr. Dwayne Cortez PhD", + "age": 64, + "country": "Armenia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Howard, Evans and Lewis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Howard, Evans and Lewis", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "plan", + "category": "institution", + "price": 725.76, + "stock_quantity": 480 + }, + "customer": { + "name": "Michael Washington", + "age": 45, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Berg Group", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "animal", + "category": "company", + "price": 947.17, + "stock_quantity": 49 + }, + "customer": { + "name": "Paul Reyes", + "age": 65, + "country": "Dominican Republic" + } + }, + { + "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'", + "company": { + "name": "Rodriguez, Ryan and Levy", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "recognize", + "category": "head", + "price": 940.87, + "stock_quantity": 487 + }, + "customer": { + "name": "Joseph Stewart", + "age": 48, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Elliott-Terry", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "treat", + "category": "by", + "price": 44.11, + "stock_quantity": 534 + }, + "customer": { + "name": "Edwin Ryan", + "age": 55, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Mann, Ellis and Jones", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "unit", + "category": "wife", + "price": 128.07, + "stock_quantity": 19 + }, + "customer": { + "name": "Anna Oconnor", + "age": 62, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shannon LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shannon LLC", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "site", + "category": "trip", + "price": 363.19, + "stock_quantity": 265 + }, + "customer": { + "name": "Danielle Harrison", + "age": 62, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Russo, George and Shields", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "before", + "category": "camera", + "price": 846.34, + "stock_quantity": 610 + }, + "customer": { + "name": "Samuel Levy", + "age": 39, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Garrison, Conrad and Mcpherson", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "beautiful", + "category": "two", + "price": 91.88, + "stock_quantity": 73 + }, + "customer": { + "name": "Susan Anderson", + "age": 57, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Burnett Ltd", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "across", + "category": "enter", + "price": 76.15, + "stock_quantity": 719 + }, + "customer": { + "name": "Patrick Parker", + "age": 64, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Ramirez LLC", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "opportunity", + "category": "politics", + "price": 539.08, + "stock_quantity": 692 + }, + "customer": { + "name": "Richard Graves", + "age": 68, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Green, Mcgrath and Rollins", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "his", + "category": "discover", + "price": 447.44, + "stock_quantity": 226 + }, + "customer": { + "name": "Elizabeth Hamilton", + "age": 52, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Collier, Martinez and Mcintosh", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "perform", + "category": "list", + "price": 894.97, + "stock_quantity": 15 + }, + "customer": { + "name": "Jacob Taylor", + "age": 72, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Bauer Ltd", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "listen", + "category": "believe", + "price": 991.26, + "stock_quantity": 542 + }, + "customer": { + "name": "Raymond Munoz", + "age": 53, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Molina, Harris and Guerrero", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "difference", + "category": "yourself", + "price": 438.82, + "stock_quantity": 441 + }, + "customer": { + "name": "Scott Santos", + "age": 34, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Gomez-Lopez", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "itself", + "category": "force", + "price": 180.97, + "stock_quantity": 913 + }, + "customer": { + "name": "Corey Villegas", + "age": 52, + "country": "Cayman Islands" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Jones, Lam and Evans for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones, Lam and Evans'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones, Lam and Evans", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "need", + "category": "notice", + "price": 419.82, + "stock_quantity": 779 + }, + "customer": { + "name": "Zachary Ryan", + "age": 57, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Cline-Thompson", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "science", + "category": "discuss", + "price": 673.47, + "stock_quantity": 168 + }, + "customer": { + "name": "Kevin Owens", + "age": 52, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Brown Inc", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "modern", + "category": "all", + "price": 583.43, + "stock_quantity": 988 + }, + "customer": { + "name": "Karina Hester", + "age": 64, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Martin-Murphy", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "smile", + "category": "success", + "price": 188.67, + "stock_quantity": 492 + }, + "customer": { + "name": "Scott Watson DDS", + "age": 25, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Jones-Myers", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "sound", + "category": "party", + "price": 160.94, + "stock_quantity": 839 + }, + "customer": { + "name": "David Johnston", + "age": 71, + "country": "Cook Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Clark-Padilla'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Clark-Padilla", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "easy", + "category": "political", + "price": 688.08, + "stock_quantity": 183 + }, + "customer": { + "name": "Nicole Barker", + "age": 49, + "country": "Angola" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Baxter PLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baxter PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baxter PLC", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "today", + "category": "official", + "price": 768.0, + "stock_quantity": 59 + }, + "customer": { + "name": "Robert Woods", + "age": 45, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "King, Sanchez and Hill", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "question", + "category": "last", + "price": 41.48, + "stock_quantity": 160 + }, + "customer": { + "name": "Patrick Deleon", + "age": 21, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Taylor-Rice", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "cause", + "category": "again", + "price": 85.72, + "stock_quantity": 229 + }, + "customer": { + "name": "Michelle Mason", + "age": 24, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Lyons-Smith", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "stand", + "category": "half", + "price": 211.22, + "stock_quantity": 55 + }, + "customer": { + "name": "David Mcdowell", + "age": 34, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Massey Ltd", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "wrong", + "category": "war", + "price": 37.3, + "stock_quantity": 892 + }, + "customer": { + "name": "Kevin Walsh", + "age": 52, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Camacho-Bowen", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "ball", + "category": "either", + "price": 232.39, + "stock_quantity": 656 + }, + "customer": { + "name": "Michael Davis", + "age": 20, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Moore, Bryant and Lopez", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "finally", + "category": "office", + "price": 563.8, + "stock_quantity": 923 + }, + "customer": { + "name": "April White", + "age": 39, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Sullivan LLC", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "future", + "category": "strategy", + "price": 742.84, + "stock_quantity": 360 + }, + "customer": { + "name": "Elizabeth Jimenez", + "age": 25, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Lopez, Clark and Garcia", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "explain", + "category": "exactly", + "price": 503.72, + "stock_quantity": 305 + }, + "customer": { + "name": "Molly Morris", + "age": 79, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Hardy, Galvan and Ruiz", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "finish", + "category": "successful", + "price": 182.83, + "stock_quantity": 477 + }, + "customer": { + "name": "John Mcbride", + "age": 76, + "country": "Moldova" + } + }, + { + "natural_query": "How many orders were placed for Stephenson LLC between 2023-10-26 and 2023-11-30?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Stephenson LLC' AND order_date BETWEEN '2023-10-26' AND '2023-11-30'", + "company": { + "name": "Stephenson LLC", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "audience", + "category": "reality", + "price": 909.6, + "stock_quantity": 992 + }, + "customer": { + "name": "Juan Carter", + "age": 51, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Henderson Inc", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "agent", + "category": "some", + "price": 151.28, + "stock_quantity": 705 + }, + "customer": { + "name": "Craig Wallace", + "age": 78, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Gilbert Group", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "son", + "category": "between", + "price": 451.91, + "stock_quantity": 568 + }, + "customer": { + "name": "Crystal Bowman", + "age": 43, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Garcia, Pitts and Boyer", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "four", + "category": "place", + "price": 583.92, + "stock_quantity": 825 + }, + "customer": { + "name": "Anthony Boyer", + "age": 78, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Ortega-Holmes", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "charge", + "category": "message", + "price": 471.85, + "stock_quantity": 583 + }, + "customer": { + "name": "James Castillo", + "age": 55, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Howard LLC", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "network", + "category": "resource", + "price": 952.85, + "stock_quantity": 930 + }, + "customer": { + "name": "Jason Stein", + "age": 52, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Davis-Gray", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "mother", + "category": "remain", + "price": 554.21, + "stock_quantity": 716 + }, + "customer": { + "name": "Anna Jones", + "age": 59, + "country": "Brunei Darussalam" + } + }, + { + "natural_query": "List all products of Patel, Travis and Gibson ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Patel, Travis and Gibson' ORDER BY stock_quantity ASC", + "company": { + "name": "Patel, Travis and Gibson", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "consider", + "category": "many", + "price": 390.52, + "stock_quantity": 997 + }, + "customer": { + "name": "Mario Henry", + "age": 45, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Greene, Watson and Atkins", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "six", + "category": "world", + "price": 905.27, + "stock_quantity": 653 + }, + "customer": { + "name": "Joseph Ali", + "age": 58, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Roberts LLC", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "available", + "category": "politics", + "price": 691.1, + "stock_quantity": 755 + }, + "customer": { + "name": "Matthew Olson", + "age": 18, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Holmes and Sons", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "society", + "category": "include", + "price": 651.53, + "stock_quantity": 931 + }, + "customer": { + "name": "Daniel Ayers", + "age": 40, + "country": "United Kingdom" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morales-Ruiz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morales-Ruiz", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "get", + "category": "partner", + "price": 891.98, + "stock_quantity": 737 + }, + "customer": { + "name": "James Long", + "age": 63, + "country": "Denmark" + } + }, + { + "natural_query": "List all customers and their total order value for Thomas, Mcconnell and Johnson.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Thomas, Mcconnell and Johnson' GROUP BY c.customer_id", + "company": { + "name": "Thomas, Mcconnell and Johnson", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "until", + "category": "send", + "price": 812.61, + "stock_quantity": 39 + }, + "customer": { + "name": "Alexandria Perry", + "age": 47, + "country": "China" + } + }, + { + "natural_query": "List all customers and their total order value for Robinson Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Robinson Ltd' GROUP BY c.customer_id", + "company": { + "name": "Robinson Ltd", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "short", + "category": "nation", + "price": 385.24, + "stock_quantity": 603 + }, + "customer": { + "name": "David Andrews", + "age": 63, + "country": "Bahrain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Espinoza, Watson and Sanders'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Espinoza, Watson and Sanders", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "machine", + "category": "data", + "price": 572.75, + "stock_quantity": 464 + }, + "customer": { + "name": "Anna Jensen", + "age": 70, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Stout LLC", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "daughter", + "category": "apply", + "price": 956.14, + "stock_quantity": 362 + }, + "customer": { + "name": "Adrienne Davis", + "age": 25, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Dyer-Gibson", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "thought", + "category": "present", + "price": 122.8, + "stock_quantity": 438 + }, + "customer": { + "name": "Benjamin Davis", + "age": 50, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Clark-Cuevas", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "window", + "category": "view", + "price": 270.72, + "stock_quantity": 489 + }, + "customer": { + "name": "Katherine Turner", + "age": 79, + "country": "India" + } + }, + { + "natural_query": "What are the top 10 products by revenue for Shaw and Sons this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Shaw and Sons' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10", + "company": { + "name": "Shaw and Sons", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "finish", + "category": "level", + "price": 708.12, + "stock_quantity": 276 + }, + "customer": { + "name": "Monica Summers", + "age": 36, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Williams-Williams", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "four", + "category": "eye", + "price": 453.4, + "stock_quantity": 860 + }, + "customer": { + "name": "Tara Lopez", + "age": 79, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Drake, Barnes and Santiago'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Drake, Barnes and Santiago", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "everybody", + "category": "trouble", + "price": 400.65, + "stock_quantity": 446 + }, + "customer": { + "name": "Michael Franklin", + "age": 45, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Moreno LLC", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "song", + "category": "word", + "price": 816.36, + "stock_quantity": 49 + }, + "customer": { + "name": "Tanya Ward", + "age": 36, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Howell Inc", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "enter", + "category": "read", + "price": 363.4, + "stock_quantity": 22 + }, + "customer": { + "name": "Eric King", + "age": 80, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Martin, Weber and Daniel", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "crime", + "category": "shake", + "price": 291.15, + "stock_quantity": 600 + }, + "customer": { + "name": "Peter Jones", + "age": 44, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Baldwin-Bullock", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "during", + "category": "book", + "price": 748.28, + "stock_quantity": 954 + }, + "customer": { + "name": "Tammy Page", + "age": 79, + "country": "France" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Davis-Moore for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis-Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis-Moore", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "debate", + "category": "among", + "price": 952.9, + "stock_quantity": 804 + }, + "customer": { + "name": "Mary Jordan", + "age": 22, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Perkins-Medina", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "Mrs", + "category": "pass", + "price": 849.35, + "stock_quantity": 701 + }, + "customer": { + "name": "Jacqueline Richardson", + "age": 25, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Wilson LLC", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "military", + "category": "above", + "price": 198.94, + "stock_quantity": 973 + }, + "customer": { + "name": "Michael Thompson", + "age": 28, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Johnson, James and Francis", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "pretty", + "category": "my", + "price": 147.32, + "stock_quantity": 514 + }, + "customer": { + "name": "Ashley Stout", + "age": 52, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Weaver, Sullivan and Ferguson", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "support", + "category": "range", + "price": 800.4, + "stock_quantity": 922 + }, + "customer": { + "name": "Sharon Arnold", + "age": 52, + "country": "Ecuador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stevenson PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stevenson PLC", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "maintain", + "category": "method", + "price": 390.87, + "stock_quantity": 702 + }, + "customer": { + "name": "Susan Mcdonald", + "age": 39, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Campbell PLC", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "body", + "category": "official", + "price": 16.24, + "stock_quantity": 614 + }, + "customer": { + "name": "Jonathan Dillon", + "age": 75, + "country": "Malaysia" + } + }, + { + "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'", + "company": { + "name": "Richardson-Sanford", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "two", + "category": "place", + "price": 150.21, + "stock_quantity": 863 + }, + "customer": { + "name": "Lori Garcia", + "age": 72, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Ellis-Alvarado", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "argue", + "category": "eight", + "price": 621.79, + "stock_quantity": 63 + }, + "customer": { + "name": "Sarah Case", + "age": 74, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Cowan-Brown", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "imagine", + "category": "which", + "price": 813.9, + "stock_quantity": 719 + }, + "customer": { + "name": "Sean Griffin", + "age": 78, + "country": "Marshall Islands" + } + }, + { + "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'", + "company": { + "name": "Carroll-George", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "recently", + "category": "case", + "price": 879.09, + "stock_quantity": 610 + }, + "customer": { + "name": "Mary Goodwin", + "age": 65, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Newton-Gonzalez", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "take", + "category": "add", + "price": 180.83, + "stock_quantity": 664 + }, + "customer": { + "name": "Jennifer Carpenter", + "age": 55, + "country": "Singapore" + } + }, + { + "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'", + "company": { + "name": "Thompson, Mills and Davis", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "stuff", + "category": "great", + "price": 171.97, + "stock_quantity": 189 + }, + "customer": { + "name": "Anne Lambert", + "age": 33, + "country": "Norway" + } + }, + { + "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'", + "company": { + "name": "Barnes Group", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "sell", + "category": "whatever", + "price": 704.17, + "stock_quantity": 426 + }, + "customer": { + "name": "Mr. Jonathan Gonzalez MD", + "age": 18, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Underwood-Mccullough", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "simply", + "category": "dog", + "price": 429.98, + "stock_quantity": 445 + }, + "customer": { + "name": "Bruce Lewis", + "age": 35, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Castro Ltd", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "anyone", + "category": "military", + "price": 434.91, + "stock_quantity": 985 + }, + "customer": { + "name": "Jessica Young", + "age": 62, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Guzman, Brooks and Shaw", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "move", + "category": "star", + "price": 889.49, + "stock_quantity": 822 + }, + "customer": { + "name": "Joshua Rodriguez", + "age": 62, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Jones, Nichols and Howe", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "eat", + "category": "fast", + "price": 379.89, + "stock_quantity": 584 + }, + "customer": { + "name": "Michael Wise", + "age": 46, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Smith, Lane and Reid", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "policy", + "category": "relate", + "price": 184.64, + "stock_quantity": 790 + }, + "customer": { + "name": "Mike Bonilla", + "age": 29, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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'", + "company": { + "name": "Armstrong, Perez and Hernandez", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "information", + "category": "me", + "price": 394.22, + "stock_quantity": 578 + }, + "customer": { + "name": "Brooke Richardson", + "age": 76, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Harris, Rodgers and Garcia", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "picture", + "category": "enough", + "price": 723.04, + "stock_quantity": 52 + }, + "customer": { + "name": "John Barr", + "age": 32, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Campbell, Pratt and Smith", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "enjoy", + "category": "across", + "price": 735.9, + "stock_quantity": 69 + }, + "customer": { + "name": "Brandon Jones", + "age": 52, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Taylor-Watkins", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "hospital", + "category": "form", + "price": 281.13, + "stock_quantity": 104 + }, + "customer": { + "name": "John Nguyen", + "age": 34, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Price-Mclean'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Price-Mclean", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "sure", + "category": "study", + "price": 946.08, + "stock_quantity": 793 + }, + "customer": { + "name": "James Davis", + "age": 79, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Santos LLC", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "practice", + "category": "without", + "price": 697.07, + "stock_quantity": 379 + }, + "customer": { + "name": "Erin Gaines", + "age": 37, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Levine-Mcneil", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "wish", + "category": "sound", + "price": 398.57, + "stock_quantity": 197 + }, + "customer": { + "name": "Joseph Ewing", + "age": 67, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Davies-Murphy", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "message", + "category": "audience", + "price": 697.07, + "stock_quantity": 460 + }, + "customer": { + "name": "Mackenzie Frazier", + "age": 54, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Harmon, Golden and Thornton", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "condition", + "category": "house", + "price": 307.68, + "stock_quantity": 745 + }, + "customer": { + "name": "Tony Guzman", + "age": 57, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Anderson and Sons", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "matter", + "category": "painting", + "price": 566.08, + "stock_quantity": 901 + }, + "customer": { + "name": "James Lopez", + "age": 59, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Morris-Bradford", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "century", + "category": "music", + "price": 751.15, + "stock_quantity": 750 + }, + "customer": { + "name": "Sarah Miller", + "age": 40, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Stephenson, Barry and Perez", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "wear", + "category": "give", + "price": 790.68, + "stock_quantity": 343 + }, + "customer": { + "name": "Rebecca Robinson", + "age": 45, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Jones-Wood", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "wait", + "category": "sister", + "price": 148.5, + "stock_quantity": 164 + }, + "customer": { + "name": "Bryan Castro", + "age": 43, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Watts, Jones and Silva", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "physical", + "category": "cold", + "price": 281.33, + "stock_quantity": 649 + }, + "customer": { + "name": "Ralph Young", + "age": 70, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Hatfield Ltd", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "religious", + "category": "bar", + "price": 691.1, + "stock_quantity": 671 + }, + "customer": { + "name": "Victoria Perry", + "age": 71, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Walters-Decker", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "defense", + "category": "you", + "price": 913.21, + "stock_quantity": 100 + }, + "customer": { + "name": "Miss Melissa Mccarty MD", + "age": 41, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Sanchez-Peterson", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "point", + "category": "including", + "price": 476.92, + "stock_quantity": 572 + }, + "customer": { + "name": "Glen Nelson", + "age": 46, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Ashley and Sons", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "far", + "category": "name", + "price": 408.87, + "stock_quantity": 321 + }, + "customer": { + "name": "Stephanie Hall", + "age": 19, + "country": "Uganda" + } + }, + { + "natural_query": "What are the top 9 products by sales for Mcneil, Zuniga and Kelly all time?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mcneil, Zuniga and Kelly' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9", + "company": { + "name": "Mcneil, Zuniga and Kelly", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "total", + "category": "improve", + "price": 13.05, + "stock_quantity": 85 + }, + "customer": { + "name": "Gary Norton", + "age": 74, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Hale Inc", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "director", + "category": "seem", + "price": 923.01, + "stock_quantity": 383 + }, + "customer": { + "name": "Ashley Murphy", + "age": 69, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Hancock, Kennedy and Gilbert", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "tell", + "category": "program", + "price": 865.47, + "stock_quantity": 261 + }, + "customer": { + "name": "Curtis Cordova", + "age": 33, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Calderon-Johnson", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "be", + "category": "wait", + "price": 331.82, + "stock_quantity": 57 + }, + "customer": { + "name": "Jamie Wilkinson", + "age": 52, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Higgins Ltd", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "reach", + "category": "dream", + "price": 975.24, + "stock_quantity": 771 + }, + "customer": { + "name": "Maria Johnson", + "age": 47, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Robertson LLC", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "head", + "category": "hospital", + "price": 618.67, + "stock_quantity": 869 + }, + "customer": { + "name": "Steven Schmidt", + "age": 56, + "country": "Italy" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harrison PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harrison PLC", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "bank", + "category": "ago", + "price": 979.28, + "stock_quantity": 69 + }, + "customer": { + "name": "Angelica Johnson", + "age": 28, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Swanson Group", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "else", + "category": "system", + "price": 782.1, + "stock_quantity": 522 + }, + "customer": { + "name": "Scott Welch", + "age": 20, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Reilly Group", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "six", + "category": "various", + "price": 510.98, + "stock_quantity": 865 + }, + "customer": { + "name": "Robin Miller", + "age": 74, + "country": "Hong Kong" + } + }, + { + "natural_query": "How many orders were placed for Schneider, Salazar and Elliott between 2024-03-26 and 2024-08-15?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Schneider, Salazar and Elliott' AND order_date BETWEEN '2024-03-26' AND '2024-08-15'", + "company": { + "name": "Schneider, Salazar and Elliott", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "late", + "category": "day", + "price": 594.81, + "stock_quantity": 86 + }, + "customer": { + "name": "Jason Chang", + "age": 25, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Durham Ltd", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "artist", + "category": "blood", + "price": 870.77, + "stock_quantity": 675 + }, + "customer": { + "name": "Stephen Daniels", + "age": 70, + "country": "Malawi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nguyen-Ruiz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nguyen-Ruiz", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "discuss", + "category": "radio", + "price": 509.87, + "stock_quantity": 9 + }, + "customer": { + "name": "Morgan Wilson", + "age": 19, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Beltran, Rogers and Morales", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "couple", + "category": "likely", + "price": 632.65, + "stock_quantity": 505 + }, + "customer": { + "name": "Mr. Samuel Oconnor", + "age": 52, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Lopez-Carter", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "according", + "category": "list", + "price": 494.26, + "stock_quantity": 318 + }, + "customer": { + "name": "Lisa Kim", + "age": 54, + "country": "Central African Republic" + } + }, + { + "natural_query": "How many orders were placed for Schneider, Cantu and Weaver between 2024-01-28 and 2024-07-29?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Schneider, Cantu and Weaver' AND order_date BETWEEN '2024-01-28' AND '2024-07-29'", + "company": { + "name": "Schneider, Cantu and Weaver", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "I", + "category": "on", + "price": 697.56, + "stock_quantity": 466 + }, + "customer": { + "name": "Crystal Mendoza", + "age": 44, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Martin, Martinez and Ray", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "good", + "category": "leader", + "price": 295.18, + "stock_quantity": 328 + }, + "customer": { + "name": "Matthew Hernandez", + "age": 55, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Kirby PLC", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "sort", + "category": "we", + "price": 389.84, + "stock_quantity": 637 + }, + "customer": { + "name": "Valerie Watson", + "age": 21, + "country": "Ecuador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Logan LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Logan LLC", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "she", + "category": "type", + "price": 200.95, + "stock_quantity": 985 + }, + "customer": { + "name": "Anthony Williams DDS", + "age": 61, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Reed-Brandt", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "think", + "category": "down", + "price": 471.44, + "stock_quantity": 219 + }, + "customer": { + "name": "John Hill", + "age": 22, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Jennings Ltd", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "industry", + "category": "main", + "price": 502.67, + "stock_quantity": 417 + }, + "customer": { + "name": "Jennifer Murphy", + "age": 57, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Rivera and Sons", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "wife", + "category": "lot", + "price": 103.04, + "stock_quantity": 393 + }, + "customer": { + "name": "Denise Wheeler", + "age": 49, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Watson, Lewis and Bauer", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "environment", + "category": "response", + "price": 122.01, + "stock_quantity": 96 + }, + "customer": { + "name": "Kimberly Hays", + "age": 20, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Castro-Bowers", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "threat", + "category": "personal", + "price": 588.58, + "stock_quantity": 408 + }, + "customer": { + "name": "Angela Sanchez", + "age": 71, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Hobbs-Lutz", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "explain", + "category": "discover", + "price": 962.39, + "stock_quantity": 201 + }, + "customer": { + "name": "Taylor Martin", + "age": 22, + "country": "Ghana" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Green, Wilcox and Perez for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green, Wilcox and Perez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green, Wilcox and Perez", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "style", + "category": "partner", + "price": 686.78, + "stock_quantity": 880 + }, + "customer": { + "name": "Tony Flores DDS", + "age": 57, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Gilbert, Pineda and Burns", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "usually", + "category": "western", + "price": 715.83, + "stock_quantity": 728 + }, + "customer": { + "name": "Stephanie Newman", + "age": 35, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Arnold-Wyatt", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "world", + "category": "blood", + "price": 744.91, + "stock_quantity": 272 + }, + "customer": { + "name": "Kristine Skinner", + "age": 39, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Nolan PLC", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "along", + "category": "whose", + "price": 391.14, + "stock_quantity": 801 + }, + "customer": { + "name": "Alexander Mcclain", + "age": 50, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Cox-Perkins", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "specific", + "category": "different", + "price": 724.46, + "stock_quantity": 418 + }, + "customer": { + "name": "Sandra Cox", + "age": 51, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Johnston, Carter and Nunez", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "pick", + "category": "realize", + "price": 527.89, + "stock_quantity": 491 + }, + "customer": { + "name": "Victoria Kramer", + "age": 20, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Mitchell-James", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "imagine", + "category": "country", + "price": 686.91, + "stock_quantity": 114 + }, + "customer": { + "name": "Christine Garcia", + "age": 43, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Mccormick, Walters and Perez", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "six", + "category": "anything", + "price": 818.89, + "stock_quantity": 806 + }, + "customer": { + "name": "Patricia Leblanc", + "age": 26, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Miller LLC", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "stay", + "category": "worker", + "price": 451.93, + "stock_quantity": 510 + }, + "customer": { + "name": "Anita Ibarra", + "age": 38, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Gomez LLC", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "leader", + "category": "recent", + "price": 491.02, + "stock_quantity": 760 + }, + "customer": { + "name": "Crystal Jackson", + "age": 58, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Joseph-Holden", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "himself", + "category": "he", + "price": 71.97, + "stock_quantity": 779 + }, + "customer": { + "name": "Charles Mills", + "age": 73, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Green, Porter and Davis", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "strategy", + "category": "personal", + "price": 874.72, + "stock_quantity": 814 + }, + "customer": { + "name": "Jose Hall", + "age": 49, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Jones-Willis", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "door", + "category": "pay", + "price": 833.23, + "stock_quantity": 593 + }, + "customer": { + "name": "Gabrielle Walter", + "age": 31, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Delacruz Ltd", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "enough", + "category": "even", + "price": 568.9, + "stock_quantity": 383 + }, + "customer": { + "name": "Donna Anderson", + "age": 60, + "country": "Guinea-Bissau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dunn, Lang and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dunn, Lang and Brown", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "foreign", + "category": "line", + "price": 449.44, + "stock_quantity": 189 + }, + "customer": { + "name": "Nicole Copeland", + "age": 71, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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'", + "company": { + "name": "Gardner PLC", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "risk", + "category": "task", + "price": 521.0, + "stock_quantity": 132 + }, + "customer": { + "name": "Julie Stevenson", + "age": 78, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Chapman Ltd", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "spring", + "category": "wonder", + "price": 513.62, + "stock_quantity": 722 + }, + "customer": { + "name": "Scott Gomez", + "age": 55, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Nelson-Powell", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "purpose", + "category": "tree", + "price": 655.87, + "stock_quantity": 262 + }, + "customer": { + "name": "Ronald Johnson", + "age": 57, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Hernandez, Parker and Garza", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "thus", + "category": "difference", + "price": 86.32, + "stock_quantity": 570 + }, + "customer": { + "name": "Dr. Kenneth Villanueva", + "age": 65, + "country": "Saint Helena" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cohen-Delacruz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cohen-Delacruz", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "role", + "category": "effort", + "price": 550.26, + "stock_quantity": 400 + }, + "customer": { + "name": "Christine Dudley", + "age": 72, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson-Winters'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson-Winters", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "soon", + "category": "decade", + "price": 294.58, + "stock_quantity": 279 + }, + "customer": { + "name": "Michael Chavez", + "age": 42, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mitchell, Taylor and Marshall'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mitchell, Taylor and Marshall", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "participant", + "category": "hard", + "price": 282.16, + "stock_quantity": 752 + }, + "customer": { + "name": "Fernando Williams", + "age": 23, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Garcia, Martinez and Wagner", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "finally", + "category": "improve", + "price": 715.77, + "stock_quantity": 141 + }, + "customer": { + "name": "Clayton Hendrix", + "age": 57, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Gonzales and Sons", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "into", + "category": "people", + "price": 713.02, + "stock_quantity": 624 + }, + "customer": { + "name": "Darlene Blair", + "age": 30, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Medina-Young", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "newspaper", + "category": "approach", + "price": 125.53, + "stock_quantity": 377 + }, + "customer": { + "name": "John Shepard", + "age": 45, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Watson-Johnson", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "stay", + "category": "as", + "price": 257.16, + "stock_quantity": 629 + }, + "customer": { + "name": "Stephanie Collins", + "age": 43, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Clark-Smith", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "life", + "category": "southern", + "price": 167.72, + "stock_quantity": 252 + }, + "customer": { + "name": "Stacey Banks", + "age": 51, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Price Ltd", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "sense", + "category": "week", + "price": 247.43, + "stock_quantity": 914 + }, + "customer": { + "name": "Jeffrey Martinez", + "age": 45, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Harmon-Richards", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "who", + "category": "occur", + "price": 56.61, + "stock_quantity": 124 + }, + "customer": { + "name": "Susan Guzman", + "age": 36, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Stafford LLC", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "western", + "category": "assume", + "price": 747.06, + "stock_quantity": 661 + }, + "customer": { + "name": "Leah Roy", + "age": 55, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Wilson LLC", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "live", + "category": "environment", + "price": 685.19, + "stock_quantity": 859 + }, + "customer": { + "name": "Kevin Brown", + "age": 75, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Mclean-Barker", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "west", + "category": "service", + "price": 445.14, + "stock_quantity": 361 + }, + "customer": { + "name": "Brady Guerrero", + "age": 21, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Beck, Brown and Olson", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "compare", + "category": "fly", + "price": 36.04, + "stock_quantity": 738 + }, + "customer": { + "name": "Kristi Barker", + "age": 62, + "country": "Finland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Krueger, Mendoza and Farrell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Krueger, Mendoza and Farrell", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "sit", + "category": "protect", + "price": 109.7, + "stock_quantity": 913 + }, + "customer": { + "name": "Gregory White", + "age": 29, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Reyes-Reyes", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "avoid", + "category": "unit", + "price": 744.82, + "stock_quantity": 528 + }, + "customer": { + "name": "Haley Bowen", + "age": 22, + "country": "Turks and Caicos Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rogers-Mendoza'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rogers-Mendoza", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "total", + "category": "concern", + "price": 978.87, + "stock_quantity": 421 + }, + "customer": { + "name": "Nicole Vaughn", + "age": 62, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Davis PLC", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "wind", + "category": "both", + "price": 746.64, + "stock_quantity": 701 + }, + "customer": { + "name": "Mr. William Jones", + "age": 60, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Johnson, Shaw and Yang", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "sure", + "category": "significant", + "price": 376.04, + "stock_quantity": 40 + }, + "customer": { + "name": "Angela Cline", + "age": 22, + "country": "Bahrain" + } + }, + { + "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'", + "company": { + "name": "Anderson Ltd", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "place", + "category": "second", + "price": 665.26, + "stock_quantity": 52 + }, + "customer": { + "name": "Eric Kennedy", + "age": 50, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Mcclure, Perez and Todd", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "three", + "category": "concern", + "price": 36.39, + "stock_quantity": 226 + }, + "customer": { + "name": "Lisa Edwards", + "age": 21, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Cole, Cook and Fisher", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "choice", + "category": "or", + "price": 767.96, + "stock_quantity": 211 + }, + "customer": { + "name": "Brandon Schwartz", + "age": 47, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Barry, Nguyen and Fleming", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "language", + "category": "away", + "price": 81.14, + "stock_quantity": 920 + }, + "customer": { + "name": "James Rodriguez", + "age": 62, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Torres-Chen", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "quite", + "category": "town", + "price": 98.7, + "stock_quantity": 774 + }, + "customer": { + "name": "Daniel Rice", + "age": 31, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Stewart Group", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "fund", + "category": "clearly", + "price": 745.54, + "stock_quantity": 231 + }, + "customer": { + "name": "Destiny Burke", + "age": 71, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Gordon-Hopkins", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "fact", + "category": "stop", + "price": 148.33, + "stock_quantity": 376 + }, + "customer": { + "name": "Daniel Fitzgerald", + "age": 32, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Abbott-Hernandez", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "industry", + "category": "important", + "price": 829.35, + "stock_quantity": 814 + }, + "customer": { + "name": "John Rivera", + "age": 18, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Hampton, Porter and Little", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "eight", + "category": "couple", + "price": 642.85, + "stock_quantity": 458 + }, + "customer": { + "name": "Angela Moore", + "age": 66, + "country": "Madagascar" + } + }, + { + "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'", + "company": { + "name": "Perez, Parks and Tyler", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "evening", + "category": "long", + "price": 201.1, + "stock_quantity": 903 + }, + "customer": { + "name": "Casey Fitzgerald", + "age": 73, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Moreno, Smith and Blackwell", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "sign", + "category": "white", + "price": 696.96, + "stock_quantity": 230 + }, + "customer": { + "name": "Kevin Rodriguez", + "age": 25, + "country": "Senegal" + } + }, + { + "natural_query": "How many orders were placed for Perry-Lee between 2024-05-25 and 2024-07-04?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perry-Lee' AND order_date BETWEEN '2024-05-25' AND '2024-07-04'", + "company": { + "name": "Perry-Lee", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "sure", + "category": "set", + "price": 183.46, + "stock_quantity": 208 + }, + "customer": { + "name": "Brian Williams", + "age": 46, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Young, Lee and Chambers", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "cup", + "category": "student", + "price": 122.75, + "stock_quantity": 326 + }, + "customer": { + "name": "Christine Ward", + "age": 26, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Shaw-Bentley", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "believe", + "category": "history", + "price": 765.88, + "stock_quantity": 783 + }, + "customer": { + "name": "Sarah Casey", + "age": 60, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Williams, Ritter and Dean", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "reflect", + "category": "store", + "price": 387.05, + "stock_quantity": 737 + }, + "customer": { + "name": "Devon Johnson", + "age": 46, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Smith-Wise", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "plan", + "category": "stage", + "price": 333.64, + "stock_quantity": 403 + }, + "customer": { + "name": "Randy Harris", + "age": 40, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Marks, Kennedy and Hall", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "available", + "category": "model", + "price": 808.6, + "stock_quantity": 697 + }, + "customer": { + "name": "Dana Myers", + "age": 78, + "country": "Tajikistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Trevino-Larson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Trevino-Larson", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "behind", + "category": "amount", + "price": 52.42, + "stock_quantity": 117 + }, + "customer": { + "name": "Jamie Hunt", + "age": 38, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Moreno, Lang and Lynch", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "treat", + "category": "remember", + "price": 216.74, + "stock_quantity": 880 + }, + "customer": { + "name": "Donna Perez", + "age": 74, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Ward-Adams", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "suddenly", + "category": "scientist", + "price": 966.67, + "stock_quantity": 632 + }, + "customer": { + "name": "Alyssa Crawford", + "age": 57, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Forbes-Strong", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "art", + "category": "degree", + "price": 571.16, + "stock_quantity": 13 + }, + "customer": { + "name": "Stephanie Moore", + "age": 27, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Cruz-Lutz", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "system", + "category": "cell", + "price": 235.55, + "stock_quantity": 648 + }, + "customer": { + "name": "Kyle Short", + "age": 65, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Young, Taylor and Sims", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "respond", + "category": "law", + "price": 604.28, + "stock_quantity": 681 + }, + "customer": { + "name": "Lauren Burton", + "age": 44, + "country": "Sierra Leone" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Becker-Hart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Becker-Hart", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "administration", + "category": "blue", + "price": 764.99, + "stock_quantity": 694 + }, + "customer": { + "name": "Charles Allen", + "age": 22, + "country": "Sao Tome and Principe" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Torres-Jones for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Torres-Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Torres-Jones", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "own", + "category": "set", + "price": 466.2, + "stock_quantity": 23 + }, + "customer": { + "name": "Mrs. Shelby Harrison", + "age": 75, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Cook, Powell and Sellers", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "image", + "category": "risk", + "price": 329.43, + "stock_quantity": 637 + }, + "customer": { + "name": "Leah Ball", + "age": 39, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Arnold, Guzman and Conley", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "nature", + "category": "reality", + "price": 184.01, + "stock_quantity": 594 + }, + "customer": { + "name": "Ricardo Bartlett", + "age": 31, + "country": "Mexico" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Lawson-Hicks for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lawson-Hicks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lawson-Hicks", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "office", + "category": "write", + "price": 572.34, + "stock_quantity": 379 + }, + "customer": { + "name": "Michael Johnson", + "age": 45, + "country": "Portugal" + } + }, + { + "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'", + "company": { + "name": "Hill and Sons", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "make", + "category": "magazine", + "price": 493.76, + "stock_quantity": 727 + }, + "customer": { + "name": "Phillip Hernandez", + "age": 38, + "country": "Saudi Arabia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lopez, Vargas and Thompson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lopez, Vargas and Thompson", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "close", + "category": "talk", + "price": 674.29, + "stock_quantity": 397 + }, + "customer": { + "name": "Amy Wallace", + "age": 62, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Mills PLC", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "who", + "category": "modern", + "price": 681.31, + "stock_quantity": 680 + }, + "customer": { + "name": "Veronica Mccormick", + "age": 50, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Reynolds, Hudson and Pierce", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "step", + "category": "message", + "price": 667.28, + "stock_quantity": 694 + }, + "customer": { + "name": "Christopher Walker", + "age": 48, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Howard, Nguyen and Rangel", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "clear", + "category": "action", + "price": 522.38, + "stock_quantity": 66 + }, + "customer": { + "name": "Traci Taylor", + "age": 50, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Powell-Baker", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "American", + "category": "manage", + "price": 272.1, + "stock_quantity": 910 + }, + "customer": { + "name": "Samuel Rose", + "age": 32, + "country": "Burundi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith-Anderson", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "bring", + "category": "specific", + "price": 489.32, + "stock_quantity": 118 + }, + "customer": { + "name": "Todd Johnson", + "age": 52, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Bell Ltd", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "central", + "category": "someone", + "price": 853.94, + "stock_quantity": 316 + }, + "customer": { + "name": "Carrie Barton", + "age": 41, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Morris LLC", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "present", + "category": "next", + "price": 316.73, + "stock_quantity": 155 + }, + "customer": { + "name": "Aaron Campbell", + "age": 48, + "country": "Botswana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Clark, Morgan and Carey'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Clark, Morgan and Carey", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "near", + "category": "crime", + "price": 660.59, + "stock_quantity": 210 + }, + "customer": { + "name": "Robert Kelly", + "age": 31, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Duncan, Saunders and Reynolds", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "thus", + "category": "group", + "price": 871.98, + "stock_quantity": 988 + }, + "customer": { + "name": "Dana Johnston MD", + "age": 36, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Carter, Ortega and Graves", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "why", + "category": "receive", + "price": 352.92, + "stock_quantity": 486 + }, + "customer": { + "name": "Taylor Edwards", + "age": 42, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Jensen LLC", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "week", + "category": "on", + "price": 763.05, + "stock_quantity": 543 + }, + "customer": { + "name": "Patrick Davis", + "age": 54, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Hansen Inc", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "star", + "category": "strategy", + "price": 64.83, + "stock_quantity": 346 + }, + "customer": { + "name": "Roberto Hines", + "age": 26, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Shelton-Short", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "machine", + "category": "begin", + "price": 297.06, + "stock_quantity": 52 + }, + "customer": { + "name": "Alexandra Mata MD", + "age": 22, + "country": "Chile" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Oconnor and Sons for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Oconnor and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Oconnor and Sons", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "during", + "category": "indeed", + "price": 407.13, + "stock_quantity": 790 + }, + "customer": { + "name": "Autumn Cooper", + "age": 38, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Clark Group", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "phone", + "category": "must", + "price": 21.36, + "stock_quantity": 886 + }, + "customer": { + "name": "David Gibson", + "age": 65, + "country": "Ukraine" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Nielsen-Ramirez for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nielsen-Ramirez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nielsen-Ramirez", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "what", + "category": "nearly", + "price": 310.24, + "stock_quantity": 792 + }, + "customer": { + "name": "Eric Cline", + "age": 43, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Chavez, Franco and Brown", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "later", + "category": "see", + "price": 604.0, + "stock_quantity": 716 + }, + "customer": { + "name": "Lauren Lopez", + "age": 26, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Delgado LLC", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "senior", + "category": "effect", + "price": 917.3, + "stock_quantity": 747 + }, + "customer": { + "name": "Debra Glass", + "age": 44, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Moreno, Marquez and Figueroa", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "behind", + "category": "same", + "price": 412.0, + "stock_quantity": 889 + }, + "customer": { + "name": "Marissa Summers", + "age": 75, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Juarez-Jones", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "board", + "category": "serve", + "price": 224.57, + "stock_quantity": 7 + }, + "customer": { + "name": "Miguel Stone", + "age": 73, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Ramirez Group", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "yes", + "category": "each", + "price": 300.6, + "stock_quantity": 409 + }, + "customer": { + "name": "Cody Blair", + "age": 66, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Turner, Hansen and Griffin", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "certain", + "category": "official", + "price": 265.38, + "stock_quantity": 950 + }, + "customer": { + "name": "Michelle Terry", + "age": 71, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Scott Inc", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "throughout", + "category": "gas", + "price": 328.27, + "stock_quantity": 863 + }, + "customer": { + "name": "Brad Henry", + "age": 46, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Williams-Acosta", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "site", + "category": "despite", + "price": 689.67, + "stock_quantity": 417 + }, + "customer": { + "name": "Dr. Bianca Elliott", + "age": 48, + "country": "Liberia" + } + }, + { + "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'", + "company": { + "name": "Wilson and Sons", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "poor", + "category": "send", + "price": 439.54, + "stock_quantity": 122 + }, + "customer": { + "name": "Mackenzie Bautista", + "age": 28, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Petersen Group", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "born", + "category": "member", + "price": 376.54, + "stock_quantity": 480 + }, + "customer": { + "name": "Gary Davis", + "age": 70, + "country": "Serbia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Campbell PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Campbell PLC", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "worker", + "category": "team", + "price": 437.44, + "stock_quantity": 481 + }, + "customer": { + "name": "Ashley May", + "age": 48, + "country": "Israel" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morgan, Orr and Matthews'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morgan, Orr and Matthews", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "as", + "category": "support", + "price": 565.87, + "stock_quantity": 463 + }, + "customer": { + "name": "William Washington", + "age": 66, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Fox, Lewis and Nelson", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "usually", + "category": "population", + "price": 529.63, + "stock_quantity": 405 + }, + "customer": { + "name": "Mr. Gary Jensen", + "age": 19, + "country": "Gabon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moore, Zimmerman and Martin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moore, Zimmerman and Martin", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "recent", + "category": "around", + "price": 874.97, + "stock_quantity": 285 + }, + "customer": { + "name": "Elizabeth Davies", + "age": 38, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Perry-Martinez", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "our", + "category": "customer", + "price": 632.03, + "stock_quantity": 745 + }, + "customer": { + "name": "David Porter", + "age": 35, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Barry, Gross and Holloway", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "huge", + "category": "do", + "price": 974.04, + "stock_quantity": 221 + }, + "customer": { + "name": "Heather Chang", + "age": 71, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Knight-Leon", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "here", + "category": "shake", + "price": 74.41, + "stock_quantity": 168 + }, + "customer": { + "name": "Jacob Davis", + "age": 77, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Fisher PLC", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "wait", + "category": "buy", + "price": 511.25, + "stock_quantity": 148 + }, + "customer": { + "name": "Jessica Clark", + "age": 36, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Alvarez Group", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "recent", + "category": "wish", + "price": 846.27, + "stock_quantity": 709 + }, + "customer": { + "name": "Thomas Gray", + "age": 60, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Anderson PLC", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "his", + "category": "safe", + "price": 956.18, + "stock_quantity": 707 + }, + "customer": { + "name": "James Werner", + "age": 31, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Suarez-Jackson", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "eat", + "category": "return", + "price": 753.32, + "stock_quantity": 655 + }, + "customer": { + "name": "Joshua Nelson", + "age": 31, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Sanchez, Rogers and Wallace", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "ball", + "category": "whose", + "price": 511.15, + "stock_quantity": 591 + }, + "customer": { + "name": "Melvin Pearson", + "age": 61, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Thomas-Townsend", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "bed", + "category": "color", + "price": 902.26, + "stock_quantity": 956 + }, + "customer": { + "name": "Jessica Lawson", + "age": 66, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Russo PLC", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "expect", + "category": "billion", + "price": 985.73, + "stock_quantity": 608 + }, + "customer": { + "name": "Jason Johnson", + "age": 57, + "country": "Uzbekistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moore-Sutton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moore-Sutton", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "ever", + "category": "movement", + "price": 825.81, + "stock_quantity": 546 + }, + "customer": { + "name": "Dominic Ellis", + "age": 59, + "country": "Sudan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcdaniel-Morrow'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcdaniel-Morrow", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "good", + "category": "hit", + "price": 811.39, + "stock_quantity": 160 + }, + "customer": { + "name": "Riley Miller", + "age": 21, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Smith-West", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "then", + "category": "power", + "price": 808.09, + "stock_quantity": 709 + }, + "customer": { + "name": "Dana Braun", + "age": 53, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Lee, Dunlap and Parker", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "side", + "category": "bad", + "price": 237.88, + "stock_quantity": 998 + }, + "customer": { + "name": "Troy Scott", + "age": 34, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Hinton, Clay and Hudson", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "price", + "category": "some", + "price": 957.82, + "stock_quantity": 186 + }, + "customer": { + "name": "Carla Nelson", + "age": 80, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Weaver, Lewis and Richards", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "can", + "category": "will", + "price": 756.25, + "stock_quantity": 736 + }, + "customer": { + "name": "Diana Cruz", + "age": 64, + "country": "Botswana" + } + }, + { + "natural_query": "How many orders were placed for Henderson LLC between 2024-08-08 and 2024-09-02?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henderson LLC' AND order_date BETWEEN '2024-08-08' AND '2024-09-02'", + "company": { + "name": "Henderson LLC", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "total", + "category": "oil", + "price": 174.57, + "stock_quantity": 413 + }, + "customer": { + "name": "April Mathis", + "age": 20, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Gonzalez-Parker", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "degree", + "category": "yeah", + "price": 256.43, + "stock_quantity": 297 + }, + "customer": { + "name": "Nancy Howell", + "age": 29, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Fischer Inc", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "near", + "category": "weight", + "price": 183.59, + "stock_quantity": 731 + }, + "customer": { + "name": "Tina Cox", + "age": 58, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Robinson LLC", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "paper", + "category": "American", + "price": 387.72, + "stock_quantity": 283 + }, + "customer": { + "name": "Patrick Lopez", + "age": 67, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "House Ltd", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "us", + "category": "wind", + "price": 819.77, + "stock_quantity": 75 + }, + "customer": { + "name": "Bobby Liu", + "age": 56, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Ramirez, Bennett and Griffin", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "floor", + "category": "door", + "price": 376.98, + "stock_quantity": 901 + }, + "customer": { + "name": "Mary Gonzalez", + "age": 41, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Conner, Stewart and Jacobson", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "receive", + "category": "different", + "price": 51.0, + "stock_quantity": 688 + }, + "customer": { + "name": "Sean Hayes", + "age": 43, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Hubbard, Patel and Johnson", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "necessary", + "category": "night", + "price": 391.4, + "stock_quantity": 981 + }, + "customer": { + "name": "Samantha Harvey", + "age": 75, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Kaufman Inc", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "able", + "category": "girl", + "price": 89.71, + "stock_quantity": 416 + }, + "customer": { + "name": "Ricky Smith", + "age": 22, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Estrada Group", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "low", + "category": "throughout", + "price": 78.56, + "stock_quantity": 480 + }, + "customer": { + "name": "Thomas Lee", + "age": 47, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Cunningham LLC", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "behavior", + "category": "light", + "price": 288.35, + "stock_quantity": 682 + }, + "customer": { + "name": "Jennifer Marsh", + "age": 60, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Scott PLC", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "father", + "category": "money", + "price": 721.32, + "stock_quantity": 758 + }, + "customer": { + "name": "Gina Harrison", + "age": 28, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Camacho-Davis", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "within", + "category": "most", + "price": 216.62, + "stock_quantity": 469 + }, + "customer": { + "name": "Matthew Mitchell", + "age": 78, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Gonzalez PLC", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "book", + "category": "court", + "price": 153.47, + "stock_quantity": 368 + }, + "customer": { + "name": "Erica Hodges", + "age": 64, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Wilson PLC", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "price", + "category": "part", + "price": 216.97, + "stock_quantity": 548 + }, + "customer": { + "name": "Joseph Stark", + "age": 59, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Webb, Rodriguez and Stewart", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "reveal", + "category": "do", + "price": 634.96, + "stock_quantity": 719 + }, + "customer": { + "name": "Holly Harding MD", + "age": 46, + "country": "Iceland" + } + }, + { + "natural_query": "What is the total profit for each country in Davis Group?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Davis Group' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Davis Group", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "unit", + "category": "crime", + "price": 422.47, + "stock_quantity": 916 + }, + "customer": { + "name": "Allison Brown", + "age": 38, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Oneal, Johnson and Foster", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "teach", + "category": "case", + "price": 642.13, + "stock_quantity": 266 + }, + "customer": { + "name": "Melissa Jennings", + "age": 18, + "country": "Cote d'Ivoire" + } + }, + { + "natural_query": "What are the top 9 products by revenue for Williams Group this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Williams Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9", + "company": { + "name": "Williams Group", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "dark", + "category": "report", + "price": 730.08, + "stock_quantity": 16 + }, + "customer": { + "name": "Ann Green", + "age": 50, + "country": "Papua New Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Phillips Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Phillips Inc", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "public", + "category": "might", + "price": 10.94, + "stock_quantity": 587 + }, + "customer": { + "name": "Mrs. Brandi Myers", + "age": 44, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Howell-Miller", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "cost", + "category": "chance", + "price": 995.15, + "stock_quantity": 525 + }, + "customer": { + "name": "William Davis", + "age": 54, + "country": "Sierra Leone" + } + }, + { + "natural_query": "Show me all products in the simple category with a price over $188.05.", + "sql_query": "SELECT * FROM products WHERE category = 'simple' AND price > 188.05", + "company": { + "name": "Ortiz-Brown", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "where", + "category": "simple", + "price": 188.05, + "stock_quantity": 356 + }, + "customer": { + "name": "Steven Simon", + "age": 36, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Randolph-Holmes", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "hear", + "category": "relationship", + "price": 696.66, + "stock_quantity": 418 + }, + "customer": { + "name": "Christopher Cook", + "age": 62, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Carter-Robertson", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "far", + "category": "live", + "price": 743.51, + "stock_quantity": 743 + }, + "customer": { + "name": "Bob Barajas", + "age": 35, + "country": "French Guiana" + } + }, + { + "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'", + "company": { + "name": "Rhodes Ltd", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "single", + "category": "spring", + "price": 370.27, + "stock_quantity": 591 + }, + "customer": { + "name": "Barbara Burns", + "age": 65, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Garrett-Montgomery", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "soldier", + "category": "value", + "price": 848.1, + "stock_quantity": 488 + }, + "customer": { + "name": "Jeremy Stewart", + "age": 36, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Castillo-Cain", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "head", + "category": "seat", + "price": 739.97, + "stock_quantity": 649 + }, + "customer": { + "name": "Sharon Sloan", + "age": 78, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Reynolds Inc", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "west", + "category": "really", + "price": 880.15, + "stock_quantity": 590 + }, + "customer": { + "name": "Eric Pineda", + "age": 58, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Jenkins-Ewing", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "difference", + "category": "concern", + "price": 768.69, + "stock_quantity": 983 + }, + "customer": { + "name": "Christina Ward", + "age": 80, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Jennings, Miller and Christian", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "sea", + "category": "kid", + "price": 524.63, + "stock_quantity": 416 + }, + "customer": { + "name": "Chase Moore", + "age": 58, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Soto PLC", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "all", + "category": "arm", + "price": 533.08, + "stock_quantity": 761 + }, + "customer": { + "name": "Heather Woods", + "age": 37, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Simmons-Wu", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "clear", + "category": "detail", + "price": 894.39, + "stock_quantity": 900 + }, + "customer": { + "name": "Ryan Jordan", + "age": 45, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Hughes, Whitaker and Williams", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "note", + "category": "idea", + "price": 578.08, + "stock_quantity": 25 + }, + "customer": { + "name": "David Silva", + "age": 70, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Thompson and Sons", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "impact", + "category": "land", + "price": 804.52, + "stock_quantity": 935 + }, + "customer": { + "name": "Lisa Williams", + "age": 70, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Todd, Galloway and Allen", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "very", + "category": "owner", + "price": 691.53, + "stock_quantity": 480 + }, + "customer": { + "name": "Sarah Lee", + "age": 41, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Johnson-Williams", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "wear", + "category": "result", + "price": 305.27, + "stock_quantity": 221 + }, + "customer": { + "name": "Robert Anderson", + "age": 62, + "country": "Anguilla" + } + }, + { + "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'", + "company": { + "name": "Simpson, Hopkins and Hancock", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "from", + "category": "decision", + "price": 946.14, + "stock_quantity": 711 + }, + "customer": { + "name": "Sarah Saunders", + "age": 61, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Harris-Cobb", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "run", + "category": "building", + "price": 452.63, + "stock_quantity": 137 + }, + "customer": { + "name": "Hannah Rios", + "age": 76, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Moore LLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "suffer", + "category": "run", + "price": 281.89, + "stock_quantity": 247 + }, + "customer": { + "name": "Laura Matthews", + "age": 20, + "country": "Poland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kramer, Payne and Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kramer, Payne and Moore", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "continue", + "category": "financial", + "price": 206.36, + "stock_quantity": 189 + }, + "customer": { + "name": "Heidi Anthony", + "age": 34, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Ellis, Berger and Cole", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "girl", + "category": "article", + "price": 769.31, + "stock_quantity": 755 + }, + "customer": { + "name": "Brittany Waller", + "age": 25, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Garrison and Sons", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "fish", + "category": "recent", + "price": 358.35, + "stock_quantity": 123 + }, + "customer": { + "name": "Bruce Glass", + "age": 29, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Zimmerman Ltd", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "institution", + "category": "responsibility", + "price": 424.02, + "stock_quantity": 719 + }, + "customer": { + "name": "Dawn Sanchez", + "age": 62, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Collins-Barnes", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "plant", + "category": "create", + "price": 198.86, + "stock_quantity": 803 + }, + "customer": { + "name": "Benjamin Jones", + "age": 57, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Webb-Gonzalez", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "since", + "category": "week", + "price": 740.84, + "stock_quantity": 679 + }, + "customer": { + "name": "John Garcia", + "age": 45, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Daniels, Miller and Stevenson", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "even", + "category": "simply", + "price": 751.61, + "stock_quantity": 221 + }, + "customer": { + "name": "Crystal Holmes", + "age": 30, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Howard, Campbell and Watts", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "himself", + "category": "night", + "price": 608.39, + "stock_quantity": 297 + }, + "customer": { + "name": "Brian Rosario", + "age": 19, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Stevenson, Hale and Byrd", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "movement", + "category": "each", + "price": 360.88, + "stock_quantity": 723 + }, + "customer": { + "name": "Heather Navarro", + "age": 36, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Jacobson and Sons", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "her", + "category": "happen", + "price": 278.27, + "stock_quantity": 67 + }, + "customer": { + "name": "Riley Watson", + "age": 33, + "country": "Kuwait" + } + }, + { + "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'", + "company": { + "name": "Moyer, Hicks and Sullivan", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "election", + "category": "page", + "price": 130.56, + "stock_quantity": 86 + }, + "customer": { + "name": "Steven Robinson", + "age": 24, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Johnson-Castaneda", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "possible", + "category": "say", + "price": 296.43, + "stock_quantity": 358 + }, + "customer": { + "name": "Kelly Brown", + "age": 58, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Beck-Nguyen", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "brother", + "category": "wife", + "price": 496.37, + "stock_quantity": 279 + }, + "customer": { + "name": "Aaron Burnett", + "age": 40, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dudley, Jones and Garcia'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dudley, Jones and Garcia", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "tell", + "category": "under", + "price": 157.04, + "stock_quantity": 937 + }, + "customer": { + "name": "Danny Vaughn", + "age": 30, + "country": "South Africa" + } + }, + { + "natural_query": "List all customers and their total order value for Bailey Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Bailey Ltd' GROUP BY c.customer_id", + "company": { + "name": "Bailey Ltd", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "huge", + "category": "expect", + "price": 795.87, + "stock_quantity": 68 + }, + "customer": { + "name": "Richard Shannon", + "age": 67, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Peters and Sons", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "reflect", + "category": "final", + "price": 243.04, + "stock_quantity": 338 + }, + "customer": { + "name": "Holly Kelly", + "age": 62, + "country": "Syrian Arab Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stevens, Ross and Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stevens, Ross and Miller", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "run", + "category": "majority", + "price": 220.55, + "stock_quantity": 679 + }, + "customer": { + "name": "Sarah Perkins", + "age": 37, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Colon, Nash and Smith", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "everyone", + "category": "a", + "price": 876.49, + "stock_quantity": 614 + }, + "customer": { + "name": "Donna Sullivan", + "age": 36, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Mueller Inc", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "project", + "category": "continue", + "price": 419.41, + "stock_quantity": 957 + }, + "customer": { + "name": "Dennis Estrada DDS", + "age": 56, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Steele, Sanders and Cline", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "generation", + "category": "watch", + "price": 944.45, + "stock_quantity": 582 + }, + "customer": { + "name": "Charles Berry", + "age": 65, + "country": "Puerto Rico" + } + }, + { + "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'", + "company": { + "name": "Reeves Ltd", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "knowledge", + "category": "take", + "price": 593.58, + "stock_quantity": 586 + }, + "customer": { + "name": "Robert Williams", + "age": 22, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Robinson, Parks and Wright", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "list", + "category": "resource", + "price": 962.89, + "stock_quantity": 745 + }, + "customer": { + "name": "Chad Santos", + "age": 46, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Simon, Humphrey and Guerrero", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "black", + "category": "her", + "price": 538.56, + "stock_quantity": 68 + }, + "customer": { + "name": "Stephen Kelly", + "age": 68, + "country": "Central African Republic" + } + }, + { + "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'", + "company": { + "name": "Melendez, Henderson and Petersen", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "finally", + "category": "step", + "price": 432.6, + "stock_quantity": 817 + }, + "customer": { + "name": "Christopher Brooks", + "age": 78, + "country": "Micronesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Osborne Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Osborne Ltd", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "threat", + "category": "ball", + "price": 897.65, + "stock_quantity": 535 + }, + "customer": { + "name": "Melanie Clark", + "age": 45, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Washington-Jackson", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "mention", + "category": "form", + "price": 614.22, + "stock_quantity": 926 + }, + "customer": { + "name": "Chelsea Edwards", + "age": 42, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Chavez and Sons", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "generation", + "category": "policy", + "price": 877.34, + "stock_quantity": 459 + }, + "customer": { + "name": "William Roberts", + "age": 44, + "country": "South Africa" + } + }, + { + "natural_query": "What are the top 5 products by orders for Ali, Barnett and Bailey this month?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Ali, Barnett and Bailey' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5", + "company": { + "name": "Ali, Barnett and Bailey", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "have", + "category": "fall", + "price": 644.28, + "stock_quantity": 818 + }, + "customer": { + "name": "William Zavala", + "age": 77, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Cortez, Robbins and Rice", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "heart", + "category": "strong", + "price": 709.95, + "stock_quantity": 373 + }, + "customer": { + "name": "Kelly Reynolds", + "age": 78, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Watson Inc", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "draw", + "category": "budget", + "price": 628.15, + "stock_quantity": 151 + }, + "customer": { + "name": "Barbara Jimenez", + "age": 77, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Larsen, Hunt and West", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "into", + "category": "treatment", + "price": 114.79, + "stock_quantity": 332 + }, + "customer": { + "name": "Tim Calhoun", + "age": 20, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Watson Ltd", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "organization", + "category": "national", + "price": 331.13, + "stock_quantity": 136 + }, + "customer": { + "name": "Jason Martinez", + "age": 55, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Lambert-Johnson", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "among", + "category": "others", + "price": 755.45, + "stock_quantity": 391 + }, + "customer": { + "name": "Andrew Turner", + "age": 18, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Ross Ltd", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "career", + "category": "up", + "price": 411.61, + "stock_quantity": 24 + }, + "customer": { + "name": "Jessica Herrera", + "age": 19, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Guzman, Cox and Burns", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "clear", + "category": "fact", + "price": 803.31, + "stock_quantity": 132 + }, + "customer": { + "name": "Regina Bean", + "age": 39, + "country": "Cuba" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Snyder LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Snyder LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Snyder LLC", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "pattern", + "category": "head", + "price": 182.9, + "stock_quantity": 882 + }, + "customer": { + "name": "Michael Munoz", + "age": 52, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Martinez, Yang and Robinson", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "across", + "category": "fish", + "price": 552.36, + "stock_quantity": 543 + }, + "customer": { + "name": "Anthony Armstrong", + "age": 70, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Shaffer Group", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "family", + "category": "most", + "price": 132.92, + "stock_quantity": 139 + }, + "customer": { + "name": "Kristen Watkins", + "age": 74, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Munoz, Green and Castro", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "among", + "category": "pass", + "price": 702.15, + "stock_quantity": 893 + }, + "customer": { + "name": "Thomas Simmons", + "age": 44, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Ramos, Tucker and Burns", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "vote", + "category": "against", + "price": 152.65, + "stock_quantity": 353 + }, + "customer": { + "name": "Nicole Daugherty", + "age": 27, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Sparks-Hines", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "also", + "category": "much", + "price": 891.32, + "stock_quantity": 227 + }, + "customer": { + "name": "Jason Williams", + "age": 53, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Howard Inc", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "area", + "category": "within", + "price": 446.03, + "stock_quantity": 200 + }, + "customer": { + "name": "Tyler Espinoza", + "age": 57, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Andrews PLC", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "music", + "category": "full", + "price": 782.29, + "stock_quantity": 106 + }, + "customer": { + "name": "Morgan Stephens", + "age": 49, + "country": "Kuwait" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Dodson, Beck and Montes for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dodson, Beck and Montes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dodson, Beck and Montes", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "room", + "category": "bank", + "price": 369.16, + "stock_quantity": 970 + }, + "customer": { + "name": "Frank Fisher", + "age": 47, + "country": "China" + } + }, + { + "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'", + "company": { + "name": "Thompson-Mcdaniel", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "gun", + "category": "case", + "price": 354.62, + "stock_quantity": 36 + }, + "customer": { + "name": "Cynthia Golden", + "age": 24, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Fowler-Holland", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "doctor", + "category": "brother", + "price": 348.18, + "stock_quantity": 545 + }, + "customer": { + "name": "Jerry Fernandez", + "age": 59, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Chan Ltd", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "after", + "category": "environmental", + "price": 118.36, + "stock_quantity": 486 + }, + "customer": { + "name": "Beth Rodriguez", + "age": 24, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Phillips-Shannon", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "those", + "category": "commercial", + "price": 776.68, + "stock_quantity": 771 + }, + "customer": { + "name": "George Meza", + "age": 56, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Brown PLC", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "agency", + "category": "increase", + "price": 664.52, + "stock_quantity": 236 + }, + "customer": { + "name": "Gloria Golden", + "age": 56, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Rice, Hernandez and Vazquez", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "recent", + "category": "by", + "price": 250.55, + "stock_quantity": 208 + }, + "customer": { + "name": "Richard Dorsey", + "age": 63, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Carney-Mcguire", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "hit", + "category": "child", + "price": 617.91, + "stock_quantity": 820 + }, + "customer": { + "name": "Manuel Gallagher", + "age": 47, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Brown-Webster", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "art", + "category": "theory", + "price": 169.3, + "stock_quantity": 291 + }, + "customer": { + "name": "Ann Patterson", + "age": 66, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Williams-Moore", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "everything", + "category": "large", + "price": 298.14, + "stock_quantity": 473 + }, + "customer": { + "name": "Joseph Ross", + "age": 74, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Williams LLC", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "relate", + "category": "police", + "price": 53.09, + "stock_quantity": 793 + }, + "customer": { + "name": "Amber Clarke", + "age": 77, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Wilson Ltd", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "show", + "category": "economy", + "price": 825.62, + "stock_quantity": 339 + }, + "customer": { + "name": "Patrick Ray", + "age": 65, + "country": "Ecuador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mercado Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mercado Group", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "notice", + "category": "discuss", + "price": 188.5, + "stock_quantity": 373 + }, + "customer": { + "name": "Bethany Garrison", + "age": 73, + "country": "Iran" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodgers, Harmon and Jensen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodgers, Harmon and Jensen", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "spring", + "category": "majority", + "price": 749.99, + "stock_quantity": 404 + }, + "customer": { + "name": "Trevor Harper", + "age": 48, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Garcia, Maynard and Moreno", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "rise", + "category": "sing", + "price": 545.48, + "stock_quantity": 751 + }, + "customer": { + "name": "Anthony Oconnor", + "age": 23, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Jones PLC", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "environmental", + "category": "just", + "price": 941.8, + "stock_quantity": 98 + }, + "customer": { + "name": "Mitchell Barnes", + "age": 29, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "West, Gray and Alvarez", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "management", + "category": "church", + "price": 138.55, + "stock_quantity": 788 + }, + "customer": { + "name": "Tanya Torres", + "age": 75, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Farrell, Watkins and Jenkins", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "record", + "category": "ok", + "price": 721.5, + "stock_quantity": 482 + }, + "customer": { + "name": "Katherine Simmons", + "age": 23, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Lambert-Gibson", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "different", + "category": "through", + "price": 730.12, + "stock_quantity": 629 + }, + "customer": { + "name": "Lori Woodward", + "age": 63, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Huang, Bailey and Miller", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "along", + "category": "evening", + "price": 720.95, + "stock_quantity": 139 + }, + "customer": { + "name": "Dawn Long", + "age": 80, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Perez, Chapman and Smith", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "often", + "category": "threat", + "price": 640.1, + "stock_quantity": 140 + }, + "customer": { + "name": "Craig Henderson", + "age": 61, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Fischer LLC", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "goal", + "category": "player", + "price": 980.39, + "stock_quantity": 895 + }, + "customer": { + "name": "Steven Adams", + "age": 34, + "country": "Nauru" + } + }, + { + "natural_query": "List all products of Campbell-Flores ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Campbell-Flores' ORDER BY stock_quantity ASC", + "company": { + "name": "Campbell-Flores", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "animal", + "category": "tough", + "price": 201.83, + "stock_quantity": 263 + }, + "customer": { + "name": "Charles Butler", + "age": 63, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Rhodes-Burnett", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "black", + "category": "shake", + "price": 925.31, + "stock_quantity": 363 + }, + "customer": { + "name": "Billy Long", + "age": 37, + "country": "Portugal" + } + }, + { + "natural_query": "What is the total quantity for each category in Allison-Ray?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Allison-Ray' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Allison-Ray", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "positive", + "category": "respond", + "price": 418.59, + "stock_quantity": 74 + }, + "customer": { + "name": "Robert Mcneil", + "age": 32, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Perez, Cochran and Vasquez", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "risk", + "category": "material", + "price": 121.6, + "stock_quantity": 127 + }, + "customer": { + "name": "Penny Ellis", + "age": 28, + "country": "Colombia" + } + }, + { + "natural_query": "Show me all products in the project category with a price over $426.72.", + "sql_query": "SELECT * FROM products WHERE category = 'project' AND price > 426.72", + "company": { + "name": "Schroeder-Scott", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "certainly", + "category": "project", + "price": 426.72, + "stock_quantity": 125 + }, + "customer": { + "name": "Leslie Short", + "age": 32, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Sanchez Group", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "always", + "category": "occur", + "price": 551.55, + "stock_quantity": 599 + }, + "customer": { + "name": "Dylan Ferguson", + "age": 67, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Davis PLC", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "little", + "category": "consumer", + "price": 592.31, + "stock_quantity": 946 + }, + "customer": { + "name": "Benjamin Singh", + "age": 67, + "country": "Iraq" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Brown-Young for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown-Young'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown-Young", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "describe", + "category": "discuss", + "price": 563.33, + "stock_quantity": 257 + }, + "customer": { + "name": "Mr. William Williams MD", + "age": 42, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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'", + "company": { + "name": "Hill-Wright", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "imagine", + "category": "word", + "price": 433.61, + "stock_quantity": 341 + }, + "customer": { + "name": "Christina Wagner", + "age": 44, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Phillips LLC", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "act", + "category": "radio", + "price": 614.79, + "stock_quantity": 889 + }, + "customer": { + "name": "Christopher Miller", + "age": 64, + "country": "Cayman Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Conner-Martin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Conner-Martin", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "coach", + "category": "tree", + "price": 771.66, + "stock_quantity": 20 + }, + "customer": { + "name": "Jason Smith", + "age": 40, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Graham-Nguyen", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "image", + "category": "seat", + "price": 133.63, + "stock_quantity": 297 + }, + "customer": { + "name": "Jared Brock MD", + "age": 25, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Brown LLC", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "degree", + "category": "anyone", + "price": 651.25, + "stock_quantity": 291 + }, + "customer": { + "name": "Alex Brooks", + "age": 58, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Leon-Williamson", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "citizen", + "category": "product", + "price": 28.52, + "stock_quantity": 225 + }, + "customer": { + "name": "Jeffrey Reynolds", + "age": 62, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "Sandoval Group", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "others", + "category": "may", + "price": 731.81, + "stock_quantity": 23 + }, + "customer": { + "name": "Emily Adams", + "age": 23, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Perry Group", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "middle", + "category": "cultural", + "price": 981.19, + "stock_quantity": 667 + }, + "customer": { + "name": "Richard Wise", + "age": 18, + "country": "Gabon" + } + }, + { + "natural_query": "What is the minimum price of all products for Hall LLC?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Hall LLC'", + "company": { + "name": "Hall LLC", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "develop", + "category": "arm", + "price": 814.67, + "stock_quantity": 444 + }, + "customer": { + "name": "Mark Romero", + "age": 72, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Perez, Booth and Bolton", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "into", + "category": "describe", + "price": 569.14, + "stock_quantity": 44 + }, + "customer": { + "name": "Charles Ortiz", + "age": 59, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Hill, Jones and Rowe", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "yes", + "category": "interest", + "price": 337.17, + "stock_quantity": 392 + }, + "customer": { + "name": "Erika Hays", + "age": 54, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Brown Ltd", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "yeah", + "category": "along", + "price": 513.1, + "stock_quantity": 510 + }, + "customer": { + "name": "David Hall", + "age": 25, + "country": "Solomon Islands" + } + }, + { + "natural_query": "List all products of Velez, Fisher and Curry ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Velez, Fisher and Curry' ORDER BY rating DESC", + "company": { + "name": "Velez, Fisher and Curry", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "three", + "category": "wait", + "price": 551.49, + "stock_quantity": 146 + }, + "customer": { + "name": "David Swanson", + "age": 48, + "country": "Serbia" + } + }, + { + "natural_query": "What is the average rating of all products for Robinson Group?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Robinson Group'", + "company": { + "name": "Robinson Group", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "bill", + "category": "character", + "price": 145.03, + "stock_quantity": 252 + }, + "customer": { + "name": "Dylan Smith III", + "age": 80, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Wright-Hill", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "value", + "category": "election", + "price": 767.36, + "stock_quantity": 120 + }, + "customer": { + "name": "Anthony Jackson", + "age": 20, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Jones, Sherman and Melendez", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "join", + "category": "but", + "price": 765.42, + "stock_quantity": 980 + }, + "customer": { + "name": "Lance Williamson", + "age": 57, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Moore and Moss", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "feel", + "category": "religious", + "price": 628.51, + "stock_quantity": 680 + }, + "customer": { + "name": "Lisa Washington", + "age": 61, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Cook, Tran and Walker", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "whether", + "category": "so", + "price": 516.47, + "stock_quantity": 849 + }, + "customer": { + "name": "Ashley Miller", + "age": 71, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Peterson-Reed", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "wonder", + "category": "month", + "price": 840.8, + "stock_quantity": 96 + }, + "customer": { + "name": "Rebecca Watkins", + "age": 55, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Lucas-Lee", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "hear", + "category": "about", + "price": 151.99, + "stock_quantity": 453 + }, + "customer": { + "name": "Manuel Avery", + "age": 74, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Tucker-Hancock", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "drop", + "category": "news", + "price": 354.9, + "stock_quantity": 786 + }, + "customer": { + "name": "Christopher Vargas", + "age": 24, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Pace Inc", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "open", + "category": "term", + "price": 829.48, + "stock_quantity": 804 + }, + "customer": { + "name": "Whitney Sullivan", + "age": 29, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Garcia, Burns and Hensley", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "value", + "category": "door", + "price": 696.89, + "stock_quantity": 539 + }, + "customer": { + "name": "Henry Mendoza", + "age": 37, + "country": "Romania" + } + }, + { + "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'", + "company": { + "name": "Smith, Webb and Shaw", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "structure", + "category": "say", + "price": 709.07, + "stock_quantity": 875 + }, + "customer": { + "name": "April Prince", + "age": 67, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Chandler, Lamb and Martin", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "woman", + "category": "along", + "price": 139.21, + "stock_quantity": 433 + }, + "customer": { + "name": "Jenna Carlson", + "age": 58, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Craig and Sons", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "rest", + "category": "woman", + "price": 597.37, + "stock_quantity": 797 + }, + "customer": { + "name": "Christopher Solis", + "age": 72, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Shah Inc", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "guess", + "category": "economy", + "price": 708.76, + "stock_quantity": 7 + }, + "customer": { + "name": "Kelly Schmidt", + "age": 60, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Stark-Valentine", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "school", + "category": "may", + "price": 741.95, + "stock_quantity": 179 + }, + "customer": { + "name": "Megan Mitchell", + "age": 66, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Wagner-Baker", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "little", + "category": "always", + "price": 102.34, + "stock_quantity": 760 + }, + "customer": { + "name": "Megan Smith", + "age": 23, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Lang, Wells and Ortiz", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "sign", + "category": "character", + "price": 996.36, + "stock_quantity": 864 + }, + "customer": { + "name": "Leslie Rush", + "age": 37, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Robinson Ltd", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "record", + "category": "work", + "price": 908.58, + "stock_quantity": 63 + }, + "customer": { + "name": "Victoria Hoffman", + "age": 24, + "country": "Canada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lane-Allison'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lane-Allison", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "interesting", + "category": "affect", + "price": 738.3, + "stock_quantity": 806 + }, + "customer": { + "name": "Timothy Olsen", + "age": 29, + "country": "Wallis and Futuna" + } + }, + { + "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'", + "company": { + "name": "Nelson and Sons", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "late", + "category": "commercial", + "price": 771.71, + "stock_quantity": 462 + }, + "customer": { + "name": "Dr. Alan Chan", + "age": 19, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Carrillo-Rogers", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "doctor", + "category": "view", + "price": 373.42, + "stock_quantity": 442 + }, + "customer": { + "name": "Angela Anderson", + "age": 71, + "country": "Dominica" + } + }, + { + "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'", + "company": { + "name": "Murphy-Salazar", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "smile", + "category": "view", + "price": 329.76, + "stock_quantity": 512 + }, + "customer": { + "name": "Jeffrey Malone", + "age": 46, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Howell-Lawson", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "economy", + "category": "break", + "price": 987.57, + "stock_quantity": 243 + }, + "customer": { + "name": "Lisa Herman", + "age": 46, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Calderon, Coleman and Hardin", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "wind", + "category": "process", + "price": 112.35, + "stock_quantity": 953 + }, + "customer": { + "name": "Jeremy Smith", + "age": 63, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Klein, Harris and Dawson", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "benefit", + "category": "boy", + "price": 137.98, + "stock_quantity": 935 + }, + "customer": { + "name": "Robert Molina", + "age": 57, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Ray, Love and Brady", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "among", + "category": "whatever", + "price": 261.65, + "stock_quantity": 842 + }, + "customer": { + "name": "Amanda Austin", + "age": 50, + "country": "Jersey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Poole-Blake'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Poole-Blake", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "manager", + "category": "produce", + "price": 520.05, + "stock_quantity": 372 + }, + "customer": { + "name": "Joshua Chan", + "age": 74, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Parker, Silva and Simmons", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "chance", + "category": "enter", + "price": 946.58, + "stock_quantity": 72 + }, + "customer": { + "name": "Kimberly Harrell", + "age": 30, + "country": "Brazil" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Meyer Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Meyer Inc", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "sign", + "category": "natural", + "price": 73.19, + "stock_quantity": 802 + }, + "customer": { + "name": "Angela Spencer", + "age": 54, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Wood, Serrano and Fuller", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "fall", + "category": "financial", + "price": 744.21, + "stock_quantity": 343 + }, + "customer": { + "name": "Christopher Goodman", + "age": 44, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Beck-Fleming", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "and", + "category": "fund", + "price": 682.26, + "stock_quantity": 92 + }, + "customer": { + "name": "Megan Medina", + "age": 51, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "King-Brewer", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "without", + "category": "admit", + "price": 765.34, + "stock_quantity": 651 + }, + "customer": { + "name": "Samuel Bradshaw", + "age": 65, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Morris-Weaver", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "seek", + "category": "lay", + "price": 404.49, + "stock_quantity": 19 + }, + "customer": { + "name": "Theresa Banks", + "age": 77, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Moreno, Mahoney and Adams", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "education", + "category": "reality", + "price": 804.43, + "stock_quantity": 264 + }, + "customer": { + "name": "Katherine Livingston", + "age": 62, + "country": "Tanzania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams-Hale'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams-Hale", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "north", + "category": "behavior", + "price": 94.17, + "stock_quantity": 644 + }, + "customer": { + "name": "Curtis Smith", + "age": 36, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Robertson, Garcia and Gonzales", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "business", + "category": "them", + "price": 248.57, + "stock_quantity": 729 + }, + "customer": { + "name": "Bryan King", + "age": 79, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Cervantes-Gonzalez", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "lawyer", + "category": "today", + "price": 277.88, + "stock_quantity": 108 + }, + "customer": { + "name": "John Nelson", + "age": 70, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "some", + "category": "store", + "price": 925.97, + "stock_quantity": 860 + }, + "customer": { + "name": "Christopher Mills", + "age": 25, + "country": "American Samoa" + } + }, + { + "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'", + "company": { + "name": "Solomon-Jones", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "international", + "category": "enjoy", + "price": 102.54, + "stock_quantity": 621 + }, + "customer": { + "name": "Rebecca Short", + "age": 55, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Carlson Ltd", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "along", + "category": "painting", + "price": 352.76, + "stock_quantity": 299 + }, + "customer": { + "name": "Nicholas Thompson", + "age": 68, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Rush PLC", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "example", + "category": "professor", + "price": 954.26, + "stock_quantity": 569 + }, + "customer": { + "name": "Cristina Miller", + "age": 62, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Coleman LLC", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "skin", + "category": "mission", + "price": 938.03, + "stock_quantity": 491 + }, + "customer": { + "name": "Deborah Miller", + "age": 64, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Washington Group", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "century", + "category": "light", + "price": 742.88, + "stock_quantity": 32 + }, + "customer": { + "name": "Jade Osborn", + "age": 35, + "country": "Kazakhstan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nelson, Carter and Grant'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nelson, Carter and Grant", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "rise", + "category": "stand", + "price": 612.9, + "stock_quantity": 292 + }, + "customer": { + "name": "Aaron Snyder", + "age": 55, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Reed-Benitez", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "similar", + "category": "box", + "price": 800.92, + "stock_quantity": 258 + }, + "customer": { + "name": "Mr. Michael Bailey PhD", + "age": 71, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Johnson, Morris and Harris", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "machine", + "category": "story", + "price": 641.34, + "stock_quantity": 183 + }, + "customer": { + "name": "Christina Kaiser", + "age": 62, + "country": "Palestinian Territory" + } + }, + { + "natural_query": "What are the top 6 products by sales for Shea and Sons all time?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Shea and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6", + "company": { + "name": "Shea and Sons", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "usually", + "category": "read", + "price": 956.67, + "stock_quantity": 66 + }, + "customer": { + "name": "Paul Brown", + "age": 77, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Turner LLC", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "behavior", + "category": "company", + "price": 366.38, + "stock_quantity": 357 + }, + "customer": { + "name": "John Carlson", + "age": 45, + "country": "Congo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Abbott, Willis and Crawford'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Abbott, Willis and Crawford", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "site", + "category": "later", + "price": 580.16, + "stock_quantity": 525 + }, + "customer": { + "name": "Christy Johnson DDS", + "age": 42, + "country": "Guam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Horton, Moore and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Horton, Moore and Brown", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "phone", + "category": "step", + "price": 520.52, + "stock_quantity": 748 + }, + "customer": { + "name": "Kevin Stokes", + "age": 25, + "country": "Qatar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Spencer, Young and Pearson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Spencer, Young and Pearson", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "member", + "category": "contain", + "price": 683.67, + "stock_quantity": 399 + }, + "customer": { + "name": "Lisa Thomas", + "age": 37, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Sullivan, Meza and Simmons", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "run", + "category": "tough", + "price": 312.68, + "stock_quantity": 887 + }, + "customer": { + "name": "Melissa Vargas", + "age": 18, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Webster PLC", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "tonight", + "category": "believe", + "price": 168.15, + "stock_quantity": 268 + }, + "customer": { + "name": "Mark Cisneros", + "age": 80, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Ramirez-Hunter", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "her", + "category": "stock", + "price": 582.26, + "stock_quantity": 659 + }, + "customer": { + "name": "Alex Lester", + "age": 73, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Camacho and Sons", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "hundred", + "category": "turn", + "price": 39.36, + "stock_quantity": 908 + }, + "customer": { + "name": "Chad Mcdaniel", + "age": 44, + "country": "French Guiana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brooks, Cline and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brooks, Cline and Brown", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "lose", + "category": "bed", + "price": 594.29, + "stock_quantity": 882 + }, + "customer": { + "name": "Travis Ford", + "age": 27, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Brown-Jacobs", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "enter", + "category": "focus", + "price": 744.16, + "stock_quantity": 53 + }, + "customer": { + "name": "Jennifer Arnold", + "age": 25, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Owens and Sons", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "nation", + "category": "last", + "price": 270.5, + "stock_quantity": 80 + }, + "customer": { + "name": "Emily Lynch", + "age": 64, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Jones-Brown", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "help", + "category": "involve", + "price": 324.78, + "stock_quantity": 306 + }, + "customer": { + "name": "Gina Solomon", + "age": 70, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Elliott-Baker", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "painting", + "category": "wear", + "price": 363.1, + "stock_quantity": 304 + }, + "customer": { + "name": "Xavier Meyer", + "age": 19, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Williamson-Snyder", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "course", + "category": "industry", + "price": 535.45, + "stock_quantity": 768 + }, + "customer": { + "name": "Regina Mejia", + "age": 22, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Johnson-Duke", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "ago", + "category": "subject", + "price": 949.33, + "stock_quantity": 652 + }, + "customer": { + "name": "Barbara Hamilton", + "age": 19, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Smith, Jackson and Cook", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "buy", + "category": "price", + "price": 369.55, + "stock_quantity": 892 + }, + "customer": { + "name": "Monica Burgess", + "age": 79, + "country": "Burkina Faso" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miles Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miles Ltd", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "book", + "category": "trouble", + "price": 713.25, + "stock_quantity": 528 + }, + "customer": { + "name": "Sarah Travis", + "age": 25, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Moore, Olsen and Gray", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "paper", + "category": "from", + "price": 466.52, + "stock_quantity": 782 + }, + "customer": { + "name": "Dale Stevenson", + "age": 40, + "country": "Haiti" + } + }, + { + "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'", + "company": { + "name": "Ford-Owens", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "least", + "category": "center", + "price": 290.0, + "stock_quantity": 243 + }, + "customer": { + "name": "Jeremy Clark", + "age": 79, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Nielsen, Schultz and Robinson", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "car", + "category": "sign", + "price": 926.19, + "stock_quantity": 90 + }, + "customer": { + "name": "John Reed", + "age": 53, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Chen PLC", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "represent", + "category": "now", + "price": 524.03, + "stock_quantity": 154 + }, + "customer": { + "name": "Christopher Michael", + "age": 58, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Jones, Guerra and Blake", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "job", + "category": "all", + "price": 340.8, + "stock_quantity": 793 + }, + "customer": { + "name": "Miss Anne Clark", + "age": 28, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Malone, Miller and Frey", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "order", + "category": "get", + "price": 426.24, + "stock_quantity": 415 + }, + "customer": { + "name": "Sean Rollins", + "age": 20, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Smith-Brandt", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "born", + "category": "one", + "price": 235.83, + "stock_quantity": 899 + }, + "customer": { + "name": "Emily Campbell", + "age": 66, + "country": "Latvia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Houston PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Houston PLC", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "participant", + "category": "public", + "price": 270.39, + "stock_quantity": 621 + }, + "customer": { + "name": "Michael Norman", + "age": 77, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Horton LLC", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "system", + "category": "event", + "price": 86.27, + "stock_quantity": 94 + }, + "customer": { + "name": "John Cherry", + "age": 32, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Tucker PLC", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "minute", + "category": "size", + "price": 604.45, + "stock_quantity": 65 + }, + "customer": { + "name": "Brandon Tyler", + "age": 43, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Erickson, Herrera and Lang", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "reality", + "category": "policy", + "price": 297.17, + "stock_quantity": 880 + }, + "customer": { + "name": "Alexandria Gomez", + "age": 23, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Ali-Miller", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "road", + "category": "no", + "price": 434.97, + "stock_quantity": 88 + }, + "customer": { + "name": "William Gill", + "age": 69, + "country": "Norway" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Norton-Hart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Norton-Hart", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "another", + "category": "final", + "price": 45.06, + "stock_quantity": 940 + }, + "customer": { + "name": "Kimberly Gray", + "age": 37, + "country": "Somalia" + } + }, + { + "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'", + "company": { + "name": "Davis Ltd", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "debate", + "category": "always", + "price": 531.75, + "stock_quantity": 398 + }, + "customer": { + "name": "Dale Parker", + "age": 38, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Perkins, Oneal and Duncan", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "step", + "category": "page", + "price": 730.14, + "stock_quantity": 173 + }, + "customer": { + "name": "Matthew Carroll", + "age": 57, + "country": "Myanmar" + } + }, + { + "natural_query": "Show me all products in the sell category with a price over $830.98.", + "sql_query": "SELECT * FROM products WHERE category = 'sell' AND price > 830.98", + "company": { + "name": "Wright PLC", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "water", + "category": "sell", + "price": 830.98, + "stock_quantity": 524 + }, + "customer": { + "name": "Deborah Jackson", + "age": 21, + "country": "Ghana" + } + }, + { + "natural_query": "List all products of Scott, Hicks and Lee ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Scott, Hicks and Lee' ORDER BY rating ASC", + "company": { + "name": "Scott, Hicks and Lee", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "what", + "category": "however", + "price": 311.87, + "stock_quantity": 321 + }, + "customer": { + "name": "Curtis Gomez", + "age": 35, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Thomas PLC", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "bit", + "category": "ahead", + "price": 288.19, + "stock_quantity": 228 + }, + "customer": { + "name": "Monique Thompson", + "age": 52, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Baker, Murray and Franco", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "old", + "category": "through", + "price": 826.36, + "stock_quantity": 362 + }, + "customer": { + "name": "Rebecca Fitzgerald", + "age": 68, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Chang Group", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "nation", + "category": "force", + "price": 90.64, + "stock_quantity": 98 + }, + "customer": { + "name": "Jenna Willis", + "age": 36, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Campbell-Mckinney", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "difference", + "category": "civil", + "price": 452.51, + "stock_quantity": 74 + }, + "customer": { + "name": "Michael Beck", + "age": 34, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Smith, Burns and Schroeder", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "scientist", + "category": "manage", + "price": 802.45, + "stock_quantity": 950 + }, + "customer": { + "name": "John Brown", + "age": 35, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Reynolds, Garcia and Malone", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "address", + "category": "could", + "price": 162.59, + "stock_quantity": 659 + }, + "customer": { + "name": "Kevin Matthews", + "age": 67, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Lamb, Rivera and Ray", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "information", + "category": "final", + "price": 715.89, + "stock_quantity": 806 + }, + "customer": { + "name": "Dustin Maxwell", + "age": 44, + "country": "Uzbekistan" + } + }, + { + "natural_query": "What is the minimum rating of all products for Perez, Bernard and Kelly?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Perez, Bernard and Kelly'", + "company": { + "name": "Perez, Bernard and Kelly", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "remember", + "category": "full", + "price": 857.35, + "stock_quantity": 658 + }, + "customer": { + "name": "Seth Wells", + "age": 52, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Dawson and Sons", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "guess", + "category": "build", + "price": 498.97, + "stock_quantity": 966 + }, + "customer": { + "name": "Mark Baker", + "age": 25, + "country": "Mayotte" + } + }, + { + "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'", + "company": { + "name": "Hall, Ramirez and Jones", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "detail", + "category": "agent", + "price": 152.5, + "stock_quantity": 849 + }, + "customer": { + "name": "Jeremy Chase", + "age": 61, + "country": "Japan" + } + }, + { + "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'", + "company": { + "name": "Zimmerman PLC", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "business", + "category": "ok", + "price": 571.01, + "stock_quantity": 696 + }, + "customer": { + "name": "Thomas Stewart", + "age": 35, + "country": "Italy" + } + }, + { + "natural_query": "What are the top 7 products by orders for Moore Inc this year?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moore Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7", + "company": { + "name": "Moore Inc", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "far", + "category": "candidate", + "price": 948.44, + "stock_quantity": 826 + }, + "customer": { + "name": "Adam Jackson", + "age": 32, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Avery, Wong and Jordan", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "Republican", + "category": "later", + "price": 696.06, + "stock_quantity": 660 + }, + "customer": { + "name": "Michelle Carpenter", + "age": 50, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Friedman, Gallagher and Downs", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "we", + "category": "public", + "price": 698.36, + "stock_quantity": 531 + }, + "customer": { + "name": "Michael Brown", + "age": 60, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Kim-Rogers", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "reduce", + "category": "war", + "price": 364.54, + "stock_quantity": 990 + }, + "customer": { + "name": "Mark Gutierrez", + "age": 51, + "country": "United States Minor Outlying Islands" + } + }, + { + "natural_query": "Show me all products in the window category with a price over $500.51.", + "sql_query": "SELECT * FROM products WHERE category = 'window' AND price > 500.51", + "company": { + "name": "Snyder, Shah and Edwards", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "case", + "category": "window", + "price": 500.51, + "stock_quantity": 844 + }, + "customer": { + "name": "Patricia Miller", + "age": 58, + "country": "Turkmenistan" + } + }, + { + "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'", + "company": { + "name": "Lin-Wilkerson", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "want", + "category": "soldier", + "price": 763.34, + "stock_quantity": 815 + }, + "customer": { + "name": "Jacob Morgan", + "age": 28, + "country": "Nauru" + } + }, + { + "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'", + "company": { + "name": "Mccann, Rivera and Lewis", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "relationship", + "category": "side", + "price": 432.74, + "stock_quantity": 113 + }, + "customer": { + "name": "Travis Rowland", + "age": 35, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Russell Ltd", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "bill", + "category": "stage", + "price": 538.04, + "stock_quantity": 545 + }, + "customer": { + "name": "Miguel Howell", + "age": 22, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "King-Robinson", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "sense", + "category": "I", + "price": 842.24, + "stock_quantity": 164 + }, + "customer": { + "name": "Eric Moore", + "age": 28, + "country": "Belarus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez Ltd", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "yard", + "category": "same", + "price": 540.32, + "stock_quantity": 314 + }, + "customer": { + "name": "Anthony Brown", + "age": 64, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Vasquez Ltd", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "walk", + "category": "their", + "price": 145.49, + "stock_quantity": 361 + }, + "customer": { + "name": "Adrienne Cohen", + "age": 60, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Garcia-Schneider", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "way", + "category": "mouth", + "price": 330.24, + "stock_quantity": 194 + }, + "customer": { + "name": "Amber Holloway", + "age": 64, + "country": "Turkmenistan" + } + }, + { + "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'", + "company": { + "name": "Schultz Ltd", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "defense", + "category": "personal", + "price": 213.02, + "stock_quantity": 673 + }, + "customer": { + "name": "Dean Brennan", + "age": 34, + "country": "El Salvador" + } + }, + { + "natural_query": "Show me all products in the still category with a price over $742.9.", + "sql_query": "SELECT * FROM products WHERE category = 'still' AND price > 742.9", + "company": { + "name": "Holloway Ltd", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "spring", + "category": "still", + "price": 742.9, + "stock_quantity": 139 + }, + "customer": { + "name": "Daniel Zimmerman", + "age": 25, + "country": "Wallis and Futuna" + } + }, + { + "natural_query": "What is the total quantity for each country in Cooper PLC?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Cooper PLC' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Cooper PLC", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "budget", + "category": "capital", + "price": 103.61, + "stock_quantity": 706 + }, + "customer": { + "name": "Jesse Nelson", + "age": 75, + "country": "Netherlands Antilles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Porter, Rogers and Perez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Porter, Rogers and Perez", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "college", + "category": "list", + "price": 547.45, + "stock_quantity": 276 + }, + "customer": { + "name": "Lisa Harvey", + "age": 40, + "country": "Chad" + } + }, + { + "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'", + "company": { + "name": "Tucker Inc", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "keep", + "category": "feel", + "price": 301.39, + "stock_quantity": 786 + }, + "customer": { + "name": "Dennis Jones", + "age": 32, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Roberts LLC", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "think", + "category": "better", + "price": 947.34, + "stock_quantity": 581 + }, + "customer": { + "name": "Lori Hughes", + "age": 37, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Wilkinson-Huffman", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "quality", + "category": "black", + "price": 543.54, + "stock_quantity": 749 + }, + "customer": { + "name": "Jennifer Goodman", + "age": 69, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Thomas Ltd", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "person", + "category": "assume", + "price": 584.11, + "stock_quantity": 785 + }, + "customer": { + "name": "David Lopez", + "age": 71, + "country": "Jamaica" + } + }, + { + "natural_query": "List all products of Burns-Nelson ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Burns-Nelson' ORDER BY stock_quantity ASC", + "company": { + "name": "Burns-Nelson", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "measure", + "category": "wait", + "price": 772.68, + "stock_quantity": 30 + }, + "customer": { + "name": "Samantha Carter", + "age": 42, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Mcdonald Ltd", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "nation", + "category": "might", + "price": 673.33, + "stock_quantity": 588 + }, + "customer": { + "name": "Patrick Harris", + "age": 67, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Harris LLC", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "campaign", + "category": "mind", + "price": 47.49, + "stock_quantity": 997 + }, + "customer": { + "name": "Sarah Campbell", + "age": 49, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Russell, Buckley and Stone", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "teacher", + "category": "environment", + "price": 115.33, + "stock_quantity": 554 + }, + "customer": { + "name": "Susan Johnston", + "age": 80, + "country": "Australia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown, Gonzalez and Robinson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown, Gonzalez and Robinson", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "make", + "category": "poor", + "price": 799.09, + "stock_quantity": 378 + }, + "customer": { + "name": "Valerie Gray", + "age": 65, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Johnson-Fuller", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "moment", + "category": "cut", + "price": 876.98, + "stock_quantity": 956 + }, + "customer": { + "name": "Jennifer Williams", + "age": 60, + "country": "Guadeloupe" + } + }, + { + "natural_query": "List all products of Woods Ltd ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Woods Ltd' ORDER BY price DESC", + "company": { + "name": "Woods Ltd", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "clearly", + "category": "structure", + "price": 61.24, + "stock_quantity": 447 + }, + "customer": { + "name": "Calvin Zhang", + "age": 72, + "country": "Ireland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morales-Webster'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morales-Webster", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "mind", + "category": "say", + "price": 385.73, + "stock_quantity": 793 + }, + "customer": { + "name": "Mary White", + "age": 80, + "country": "Korea" + } + }, + { + "natural_query": "List all products of Moyer-Peck ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Moyer-Peck' ORDER BY rating ASC", + "company": { + "name": "Moyer-Peck", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "beautiful", + "category": "media", + "price": 876.21, + "stock_quantity": 104 + }, + "customer": { + "name": "Danielle Fuller", + "age": 27, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Ross Group", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "lawyer", + "category": "talk", + "price": 570.57, + "stock_quantity": 202 + }, + "customer": { + "name": "Pamela Fitzgerald", + "age": 33, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Hawkins, Nguyen and Cole", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "guess", + "category": "time", + "price": 546.26, + "stock_quantity": 10 + }, + "customer": { + "name": "Hannah Warren", + "age": 66, + "country": "French Guiana" + } + }, + { + "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'", + "company": { + "name": "Norman, Diaz and Davies", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "mother", + "category": "establish", + "price": 404.15, + "stock_quantity": 332 + }, + "customer": { + "name": "Danny Nicholson", + "age": 70, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Rivera-Oliver", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "than", + "category": "weight", + "price": 765.25, + "stock_quantity": 198 + }, + "customer": { + "name": "Kimberly Owens", + "age": 48, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Owens, Martinez and Park", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "all", + "category": "really", + "price": 559.85, + "stock_quantity": 690 + }, + "customer": { + "name": "Sean Turner", + "age": 54, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Hernandez Group", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "process", + "category": "figure", + "price": 757.96, + "stock_quantity": 995 + }, + "customer": { + "name": "John Thompson", + "age": 18, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Thompson Group", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "instead", + "category": "relate", + "price": 175.46, + "stock_quantity": 890 + }, + "customer": { + "name": "Brittany Vazquez", + "age": 71, + "country": "Tanzania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams Group", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "law", + "category": "bank", + "price": 152.39, + "stock_quantity": 881 + }, + "customer": { + "name": "Sherri Sweeney", + "age": 66, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "English Group", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "far", + "category": "foot", + "price": 842.82, + "stock_quantity": 284 + }, + "customer": { + "name": "Eddie Boyd", + "age": 23, + "country": "Cook Islands" + } + }, + { + "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'", + "company": { + "name": "Warren LLC", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "teach", + "category": "seem", + "price": 512.8, + "stock_quantity": 446 + }, + "customer": { + "name": "Collin Riggs", + "age": 21, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Butler, Frazier and Hickman", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "discuss", + "category": "candidate", + "price": 188.93, + "stock_quantity": 362 + }, + "customer": { + "name": "Donna Olson", + "age": 79, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Robinson Inc", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "opportunity", + "category": "dog", + "price": 270.83, + "stock_quantity": 632 + }, + "customer": { + "name": "Samuel Chandler", + "age": 53, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Williams, Johnson and Guzman", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "sound", + "category": "realize", + "price": 898.34, + "stock_quantity": 584 + }, + "customer": { + "name": "George Kennedy", + "age": 67, + "country": "Sao Tome and Principe" + } + }, + { + "natural_query": "How many orders were placed for Gonzalez and Sons between 2024-08-09 and 2024-08-30?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gonzalez and Sons' AND order_date BETWEEN '2024-08-09' AND '2024-08-30'", + "company": { + "name": "Gonzalez and Sons", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "stage", + "category": "beyond", + "price": 282.46, + "stock_quantity": 869 + }, + "customer": { + "name": "Maria Ward", + "age": 18, + "country": "Maldives" + } + }, + { + "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'", + "company": { + "name": "Howard, Potts and Miller", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "current", + "category": "stop", + "price": 857.1, + "stock_quantity": 882 + }, + "customer": { + "name": "Isaiah Smith", + "age": 44, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Romero and Sons", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "develop", + "category": "eye", + "price": 722.62, + "stock_quantity": 924 + }, + "customer": { + "name": "Jessica Foley", + "age": 64, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Gross-Bowman", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "over", + "category": "whatever", + "price": 992.52, + "stock_quantity": 326 + }, + "customer": { + "name": "Jorge Anderson", + "age": 73, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Parker Inc", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "leg", + "category": "ball", + "price": 917.44, + "stock_quantity": 291 + }, + "customer": { + "name": "Judith Thompson", + "age": 57, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Li, Jones and Wiley", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "prove", + "category": "son", + "price": 942.77, + "stock_quantity": 904 + }, + "customer": { + "name": "Ricky Perez", + "age": 56, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morris PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morris PLC", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "somebody", + "category": "yet", + "price": 52.36, + "stock_quantity": 161 + }, + "customer": { + "name": "Christopher Adkins", + "age": 55, + "country": "Gabon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith and Sons", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "bank", + "category": "under", + "price": 625.99, + "stock_quantity": 688 + }, + "customer": { + "name": "Wesley Stephens", + "age": 23, + "country": "United States Minor Outlying Islands" + } + }, + { + "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'", + "company": { + "name": "Smith-Nichols", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "however", + "category": "down", + "price": 200.05, + "stock_quantity": 24 + }, + "customer": { + "name": "Michelle Wilson", + "age": 78, + "country": "Puerto Rico" + } + }, + { + "natural_query": "List all customers and their total order value for Perkins-Fuller.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Perkins-Fuller' GROUP BY c.customer_id", + "company": { + "name": "Perkins-Fuller", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "blood", + "category": "end", + "price": 210.84, + "stock_quantity": 213 + }, + "customer": { + "name": "Holly Tucker", + "age": 25, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Tucker-Bryant", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "sometimes", + "category": "choice", + "price": 39.81, + "stock_quantity": 67 + }, + "customer": { + "name": "Michelle Decker", + "age": 63, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Carney-Reed", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "program", + "category": "less", + "price": 680.62, + "stock_quantity": 748 + }, + "customer": { + "name": "Eric Scott", + "age": 40, + "country": "Kuwait" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Castillo, Ritter and Rhodes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Castillo, Ritter and Rhodes", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "pick", + "category": "very", + "price": 960.2, + "stock_quantity": 495 + }, + "customer": { + "name": "Evan Miller", + "age": 42, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Crosby, Ruiz and Cox", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "drug", + "category": "technology", + "price": 596.45, + "stock_quantity": 230 + }, + "customer": { + "name": "Terry Smith", + "age": 54, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Jimenez-Graham", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "plant", + "category": "across", + "price": 426.29, + "stock_quantity": 128 + }, + "customer": { + "name": "Teresa Osborn", + "age": 30, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Farrell Ltd", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "successful", + "category": "end", + "price": 377.16, + "stock_quantity": 853 + }, + "customer": { + "name": "Adam Miller", + "age": 41, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Cox LLC", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "agent", + "category": "hospital", + "price": 290.86, + "stock_quantity": 129 + }, + "customer": { + "name": "Shirley Liu", + "age": 44, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Simon Ltd", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "back", + "category": "PM", + "price": 560.51, + "stock_quantity": 995 + }, + "customer": { + "name": "Erika Keith", + "age": 34, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "natural_query": "Show me all products in the each category with a price over $624.72.", + "sql_query": "SELECT * FROM products WHERE category = 'each' AND price > 624.72", + "company": { + "name": "Combs PLC", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "arm", + "category": "each", + "price": 624.72, + "stock_quantity": 753 + }, + "customer": { + "name": "Sandra Castaneda", + "age": 18, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Garcia LLC", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "this", + "category": "although", + "price": 565.59, + "stock_quantity": 928 + }, + "customer": { + "name": "Joy Lewis", + "age": 69, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gomez, Rivera and Ochoa'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gomez, Rivera and Ochoa", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "great", + "category": "range", + "price": 48.11, + "stock_quantity": 580 + }, + "customer": { + "name": "Ross Hamilton", + "age": 50, + "country": "United Kingdom" + } + }, + { + "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'", + "company": { + "name": "Harrison, Potter and Gonzalez", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "to", + "category": "right", + "price": 281.09, + "stock_quantity": 235 + }, + "customer": { + "name": "Kelly Harper", + "age": 24, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hahn PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hahn PLC", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "student", + "category": "nothing", + "price": 213.63, + "stock_quantity": 364 + }, + "customer": { + "name": "Elizabeth Martinez", + "age": 37, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Gibson-Flowers", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "account", + "category": "training", + "price": 576.02, + "stock_quantity": 204 + }, + "customer": { + "name": "Lori Mcintyre", + "age": 73, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Bell Group", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "learn", + "category": "anyone", + "price": 999.81, + "stock_quantity": 803 + }, + "customer": { + "name": "Kenneth Vargas", + "age": 20, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Lowe-Brown", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "long", + "category": "billion", + "price": 983.9, + "stock_quantity": 45 + }, + "customer": { + "name": "Eric Sampson", + "age": 57, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Morgan PLC", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "smile", + "category": "process", + "price": 224.99, + "stock_quantity": 394 + }, + "customer": { + "name": "Micheal Elliott", + "age": 22, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Foster PLC", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "why", + "category": "day", + "price": 73.77, + "stock_quantity": 260 + }, + "customer": { + "name": "Megan Ponce", + "age": 27, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Sanchez, Campbell and James", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "perhaps", + "category": "good", + "price": 959.19, + "stock_quantity": 118 + }, + "customer": { + "name": "Eric Rogers", + "age": 48, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Wright, Navarro and Owens", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "medical", + "category": "garden", + "price": 145.68, + "stock_quantity": 824 + }, + "customer": { + "name": "Paul Vazquez MD", + "age": 73, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Conway-Bauer", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "man", + "category": "against", + "price": 967.94, + "stock_quantity": 231 + }, + "customer": { + "name": "Dean Harmon", + "age": 21, + "country": "Djibouti" + } + }, + { + "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'", + "company": { + "name": "Singh, Green and Smith", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "experience", + "category": "question", + "price": 372.44, + "stock_quantity": 220 + }, + "customer": { + "name": "Frances Henry", + "age": 78, + "country": "French Guiana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brady Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brady Group", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "then", + "category": "shoulder", + "price": 781.4, + "stock_quantity": 586 + }, + "customer": { + "name": "Steven Gregory", + "age": 31, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Perry, Martin and Clark", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "know", + "category": "ten", + "price": 388.68, + "stock_quantity": 955 + }, + "customer": { + "name": "Henry Johnson", + "age": 47, + "country": "Aruba" + } + }, + { + "natural_query": "What are the top 9 products by customers for Alvarez Ltd this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Alvarez Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9", + "company": { + "name": "Alvarez Ltd", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "attorney", + "category": "act", + "price": 502.75, + "stock_quantity": 374 + }, + "customer": { + "name": "Emily Smith", + "age": 53, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Kennedy, Johnson and Fowler", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "more", + "category": "no", + "price": 732.26, + "stock_quantity": 794 + }, + "customer": { + "name": "Darryl Hamilton", + "age": 46, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Cunningham, Jones and Rodriguez", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "strong", + "category": "someone", + "price": 623.95, + "stock_quantity": 106 + }, + "customer": { + "name": "Jennifer Thomas", + "age": 64, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Parker, White and Mckee", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "process", + "category": "pass", + "price": 105.95, + "stock_quantity": 59 + }, + "customer": { + "name": "Angela Jordan", + "age": 67, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Fernandez Group", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "unit", + "category": "beat", + "price": 231.62, + "stock_quantity": 89 + }, + "customer": { + "name": "Amanda Patterson DDS", + "age": 70, + "country": "Ecuador" + } + }, + { + "natural_query": "What is the minimum price of all products for Wells Group?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Wells Group'", + "company": { + "name": "Wells Group", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "almost", + "category": "stock", + "price": 189.01, + "stock_quantity": 1 + }, + "customer": { + "name": "Emily Lee", + "age": 79, + "country": "Maldives" + } + }, + { + "natural_query": "What is the maximum price of all products for Green, Kerr and Romero?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Green, Kerr and Romero'", + "company": { + "name": "Green, Kerr and Romero", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "beautiful", + "category": "while", + "price": 484.83, + "stock_quantity": 206 + }, + "customer": { + "name": "Justin Davis", + "age": 67, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Campbell, Walters and Durham", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "debate", + "category": "population", + "price": 183.02, + "stock_quantity": 889 + }, + "customer": { + "name": "Sheena Love", + "age": 70, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Evans, Spencer and Stewart", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "so", + "category": "community", + "price": 389.18, + "stock_quantity": 275 + }, + "customer": { + "name": "Jennifer Allen", + "age": 54, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Rose Inc", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "present", + "category": "away", + "price": 756.16, + "stock_quantity": 555 + }, + "customer": { + "name": "Scott Campbell MD", + "age": 68, + "country": "Tuvalu" + } + }, + { + "natural_query": "What is the maximum rating of all products for King PLC?", + "sql_query": "SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'King PLC'", + "company": { + "name": "King PLC", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "whom", + "category": "hope", + "price": 28.79, + "stock_quantity": 623 + }, + "customer": { + "name": "Kyle Richardson", + "age": 33, + "country": "India" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Marshall-Richard'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Marshall-Richard", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "husband", + "category": "cultural", + "price": 871.1, + "stock_quantity": 550 + }, + "customer": { + "name": "Megan Rice", + "age": 40, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Parker, Jones and Hines", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "street", + "category": "machine", + "price": 285.98, + "stock_quantity": 280 + }, + "customer": { + "name": "James Wood", + "age": 77, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Smith, Brown and Holt", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "Mr", + "category": "article", + "price": 906.61, + "stock_quantity": 833 + }, + "customer": { + "name": "Pamela Mercado", + "age": 80, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Ballard PLC", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "factor", + "category": "letter", + "price": 173.83, + "stock_quantity": 978 + }, + "customer": { + "name": "Debra Payne", + "age": 56, + "country": "Pakistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller Inc", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "race", + "category": "pull", + "price": 56.67, + "stock_quantity": 209 + }, + "customer": { + "name": "Bobby Kline", + "age": 70, + "country": "Burundi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Ryan and Cherry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Ryan and Cherry", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "dream", + "category": "final", + "price": 585.2, + "stock_quantity": 408 + }, + "customer": { + "name": "Timothy Hunter", + "age": 77, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Jackson, Mclean and Cordova", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "address", + "category": "choose", + "price": 581.66, + "stock_quantity": 924 + }, + "customer": { + "name": "Wayne Mclaughlin", + "age": 65, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Guzman and Sons", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "modern", + "category": "time", + "price": 36.69, + "stock_quantity": 38 + }, + "customer": { + "name": "Jose Kim", + "age": 30, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Horton LLC", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "under", + "category": "inside", + "price": 979.35, + "stock_quantity": 214 + }, + "customer": { + "name": "Julie Rollins", + "age": 44, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Adkins-Terry", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "rule", + "category": "expert", + "price": 648.64, + "stock_quantity": 424 + }, + "customer": { + "name": "Lori Barber", + "age": 32, + "country": "Belize" + } + }, + { + "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'", + "company": { + "name": "Dixon-Bright", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "seek", + "category": "well", + "price": 678.59, + "stock_quantity": 36 + }, + "customer": { + "name": "Gina Parker", + "age": 36, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Carroll-Nolan", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "here", + "category": "nice", + "price": 176.33, + "stock_quantity": 841 + }, + "customer": { + "name": "Bonnie Diaz", + "age": 62, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Mcdaniel, Johnson and Thompson", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "knowledge", + "category": "sometimes", + "price": 513.82, + "stock_quantity": 25 + }, + "customer": { + "name": "Samuel Lee", + "age": 52, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Christian, Brock and Hall", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "building", + "category": "plant", + "price": 273.05, + "stock_quantity": 406 + }, + "customer": { + "name": "Melissa Villanueva", + "age": 57, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Rogers, Willis and Woods", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "clearly", + "category": "everybody", + "price": 122.52, + "stock_quantity": 854 + }, + "customer": { + "name": "Mr. Jonathan Rodgers", + "age": 24, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown-Forbes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown-Forbes", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "war", + "category": "apply", + "price": 712.4, + "stock_quantity": 544 + }, + "customer": { + "name": "Brian Brooks", + "age": 24, + "country": "Benin" + } + }, + { + "natural_query": "List all products of Fernandez-Werner ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Fernandez-Werner' ORDER BY price DESC", + "company": { + "name": "Fernandez-Werner", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "air", + "category": "crime", + "price": 830.02, + "stock_quantity": 447 + }, + "customer": { + "name": "Jaclyn Lee", + "age": 74, + "country": "Israel" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Stewart, Lynn and Anderson for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stewart, Lynn and Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stewart, Lynn and Anderson", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "interest", + "category": "time", + "price": 724.77, + "stock_quantity": 666 + }, + "customer": { + "name": "Christina Smith", + "age": 44, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Chavez PLC", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "blood", + "category": "whatever", + "price": 522.01, + "stock_quantity": 657 + }, + "customer": { + "name": "Scott Fisher", + "age": 63, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Mendoza Inc", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "administration", + "category": "foot", + "price": 88.1, + "stock_quantity": 491 + }, + "customer": { + "name": "Eric Thomas", + "age": 54, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Hunt-Spencer", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "forget", + "category": "group", + "price": 828.54, + "stock_quantity": 212 + }, + "customer": { + "name": "Heather Tate", + "age": 48, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Davidson and Sons", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "suffer", + "category": "available", + "price": 578.52, + "stock_quantity": 631 + }, + "customer": { + "name": "Brandi Underwood", + "age": 61, + "country": "Egypt" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Maxwell Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Maxwell Inc", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "third", + "category": "risk", + "price": 569.37, + "stock_quantity": 778 + }, + "customer": { + "name": "Joshua Peck", + "age": 22, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Allen LLC", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "avoid", + "category": "true", + "price": 660.03, + "stock_quantity": 607 + }, + "customer": { + "name": "Angel Jordan", + "age": 41, + "country": "Finland" + } + }, + { + "natural_query": "What is the total profit for each country in Hampton-Perry?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hampton-Perry' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Hampton-Perry", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "natural", + "category": "style", + "price": 558.01, + "stock_quantity": 964 + }, + "customer": { + "name": "Rebecca Williams", + "age": 32, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Schmidt Group", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "Democrat", + "category": "offer", + "price": 577.5, + "stock_quantity": 751 + }, + "customer": { + "name": "Nicholas Garcia", + "age": 18, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Perry LLC", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "rather", + "category": "help", + "price": 53.91, + "stock_quantity": 619 + }, + "customer": { + "name": "Melissa Schaefer", + "age": 25, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Garrison Ltd", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "alone", + "category": "stay", + "price": 534.04, + "stock_quantity": 9 + }, + "customer": { + "name": "Crystal Stevenson", + "age": 32, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Mack-Dodson", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "back", + "category": "newspaper", + "price": 627.56, + "stock_quantity": 966 + }, + "customer": { + "name": "Kristi Hatfield", + "age": 49, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Wilson, Gonzales and Fischer", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "offer", + "category": "about", + "price": 349.76, + "stock_quantity": 213 + }, + "customer": { + "name": "Christy Haynes", + "age": 52, + "country": "Saudi Arabia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson LLC", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "live", + "category": "special", + "price": 541.45, + "stock_quantity": 388 + }, + "customer": { + "name": "Melanie Sherman", + "age": 69, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Dalton Ltd", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "summer", + "category": "get", + "price": 131.95, + "stock_quantity": 603 + }, + "customer": { + "name": "Malik Davis", + "age": 69, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Russell, Dennis and Sanchez", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "allow", + "category": "occur", + "price": 392.94, + "stock_quantity": 604 + }, + "customer": { + "name": "Elijah Rhodes", + "age": 33, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Roberts-Charles", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "side", + "category": "far", + "price": 140.5, + "stock_quantity": 215 + }, + "customer": { + "name": "Brandon Guzman", + "age": 63, + "country": "Kenya" + } + }, + { + "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'", + "company": { + "name": "Guerra, Smith and Robinson", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "situation", + "category": "your", + "price": 237.71, + "stock_quantity": 371 + }, + "customer": { + "name": "Terry Obrien", + "age": 35, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Ward Group", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "politics", + "category": "public", + "price": 814.22, + "stock_quantity": 859 + }, + "customer": { + "name": "Beverly Francis", + "age": 54, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Yates-Herrera", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "hotel", + "category": "hard", + "price": 728.71, + "stock_quantity": 531 + }, + "customer": { + "name": "Elizabeth Lee", + "age": 48, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Gordon-Bishop", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "democratic", + "category": "they", + "price": 21.92, + "stock_quantity": 51 + }, + "customer": { + "name": "Sara Dougherty", + "age": 42, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Yang, Morrison and Hall", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "certain", + "category": "every", + "price": 867.2, + "stock_quantity": 942 + }, + "customer": { + "name": "Katherine Hood", + "age": 51, + "country": "Lithuania" + } + }, + { + "natural_query": "What is the average rating of all products for Shaw, Nicholson and Avila?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Shaw, Nicholson and Avila'", + "company": { + "name": "Shaw, Nicholson and Avila", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "fine", + "category": "health", + "price": 128.59, + "stock_quantity": 37 + }, + "customer": { + "name": "Brandon Tran", + "age": 28, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Butler Inc", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "develop", + "category": "control", + "price": 987.4, + "stock_quantity": 291 + }, + "customer": { + "name": "Teresa Pruitt", + "age": 68, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "May Inc", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "through", + "category": "trouble", + "price": 346.76, + "stock_quantity": 566 + }, + "customer": { + "name": "Kelly Moss", + "age": 63, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Johnson LLC", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "explain", + "category": "action", + "price": 755.29, + "stock_quantity": 32 + }, + "customer": { + "name": "Shane Allen", + "age": 26, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Thomas, Shaffer and Shaw", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "city", + "category": "hundred", + "price": 791.56, + "stock_quantity": 263 + }, + "customer": { + "name": "Jason Simpson", + "age": 23, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Ball, Morrison and Mccoy", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "the", + "category": "type", + "price": 188.8, + "stock_quantity": 81 + }, + "customer": { + "name": "Nathaniel Dominguez", + "age": 39, + "country": "Guernsey" + } + }, + { + "natural_query": "What is the total profit for each supplier in White, Hicks and Hendricks?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'White, Hicks and Hendricks' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "White, Hicks and Hendricks", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "design", + "category": "door", + "price": 437.86, + "stock_quantity": 537 + }, + "customer": { + "name": "Kimberly Sawyer", + "age": 68, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Hernandez Ltd", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "they", + "category": "beyond", + "price": 936.86, + "stock_quantity": 559 + }, + "customer": { + "name": "Dr. Tristan Robinson", + "age": 42, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Johnson-Trevino", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "project", + "category": "those", + "price": 872.75, + "stock_quantity": 377 + }, + "customer": { + "name": "Kevin Sanford", + "age": 27, + "country": "Afghanistan" + } + }, + { + "natural_query": "What are the top 8 products by customers for Logan, Davis and Long last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Logan, Davis and Long' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8", + "company": { + "name": "Logan, Davis and Long", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "Mrs", + "category": "reflect", + "price": 588.03, + "stock_quantity": 752 + }, + "customer": { + "name": "Carl Heath", + "age": 24, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Hughes Inc", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "wish", + "category": "begin", + "price": 987.87, + "stock_quantity": 182 + }, + "customer": { + "name": "Ashley Clark", + "age": 66, + "country": "Estonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morris, Frost and Romero'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morris, Frost and Romero", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "talk", + "category": "such", + "price": 895.25, + "stock_quantity": 400 + }, + "customer": { + "name": "Shari Miller", + "age": 74, + "country": "Uzbekistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor, Stafford and Schmitt'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor, Stafford and Schmitt", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "else", + "category": "computer", + "price": 894.22, + "stock_quantity": 169 + }, + "customer": { + "name": "Morgan Robinson", + "age": 43, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Stewart, Chavez and Raymond", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "age", + "category": "quality", + "price": 91.0, + "stock_quantity": 721 + }, + "customer": { + "name": "Linda Gomez", + "age": 18, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Bates, Campbell and Li", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "should", + "category": "interest", + "price": 978.07, + "stock_quantity": 787 + }, + "customer": { + "name": "Pamela Duke", + "age": 50, + "country": "Swaziland" + } + }, + { + "natural_query": "List all customers and their total order value for Ball-Leach.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Ball-Leach' GROUP BY c.customer_id", + "company": { + "name": "Ball-Leach", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "bill", + "category": "discover", + "price": 955.33, + "stock_quantity": 308 + }, + "customer": { + "name": "David Cole", + "age": 26, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "White LLC", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "off", + "category": "trouble", + "price": 762.44, + "stock_quantity": 60 + }, + "customer": { + "name": "Kathleen Sloan", + "age": 32, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Scott and Sons", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "just", + "category": "loss", + "price": 928.45, + "stock_quantity": 112 + }, + "customer": { + "name": "Nicholas Lee", + "age": 23, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Wright-Thomas", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "fish", + "category": "above", + "price": 640.09, + "stock_quantity": 47 + }, + "customer": { + "name": "Brett Allen MD", + "age": 39, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Simpson, Ray and Dominguez", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "doctor", + "category": "affect", + "price": 632.95, + "stock_quantity": 786 + }, + "customer": { + "name": "James Scott", + "age": 23, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Lawrence, Dennis and Quinn", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "bar", + "category": "late", + "price": 67.71, + "stock_quantity": 67 + }, + "customer": { + "name": "Frank Weber", + "age": 77, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Williams, Gibbs and Flores", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "leave", + "category": "list", + "price": 960.93, + "stock_quantity": 950 + }, + "customer": { + "name": "Thomas Hall", + "age": 30, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Peters-Lee", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "learn", + "category": "partner", + "price": 688.29, + "stock_quantity": 394 + }, + "customer": { + "name": "Eric Brown", + "age": 80, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Moss, Howard and Robinson", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "stop", + "category": "father", + "price": 732.79, + "stock_quantity": 345 + }, + "customer": { + "name": "Kimberly Jones", + "age": 53, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Morris-Higgins", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "site", + "category": "enter", + "price": 690.78, + "stock_quantity": 906 + }, + "customer": { + "name": "Alan West", + "age": 40, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Fox Inc", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "floor", + "category": "form", + "price": 602.39, + "stock_quantity": 184 + }, + "customer": { + "name": "Brian Martinez", + "age": 55, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Smith-Knox", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "pay", + "category": "bit", + "price": 864.99, + "stock_quantity": 253 + }, + "customer": { + "name": "Jeff Smith", + "age": 24, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Garcia-Harris", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "a", + "category": "arm", + "price": 975.14, + "stock_quantity": 810 + }, + "customer": { + "name": "Allen Wood", + "age": 38, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Hayden, Collins and Johnson", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "end", + "category": "lay", + "price": 545.66, + "stock_quantity": 854 + }, + "customer": { + "name": "Robin Warren", + "age": 76, + "country": "Cambodia" + } + }, + { + "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'", + "company": { + "name": "Stephens, Kelly and Rodriguez", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "thousand", + "category": "improve", + "price": 285.71, + "stock_quantity": 499 + }, + "customer": { + "name": "Jordan Peters", + "age": 37, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Jackson, Reed and Ruiz", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "despite", + "category": "check", + "price": 760.26, + "stock_quantity": 642 + }, + "customer": { + "name": "Olivia Adkins", + "age": 18, + "country": "Suriname" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gallegos, Bailey and Contreras'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gallegos, Bailey and Contreras", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "need", + "category": "with", + "price": 788.08, + "stock_quantity": 80 + }, + "customer": { + "name": "Nicholas Obrien", + "age": 77, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Guzman, Tyler and Mccall", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "onto", + "category": "wife", + "price": 931.94, + "stock_quantity": 679 + }, + "customer": { + "name": "Paul Rodriguez", + "age": 34, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Roberts, Bennett and Blankenship", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "wind", + "category": "high", + "price": 733.69, + "stock_quantity": 24 + }, + "customer": { + "name": "Chad Mckee", + "age": 23, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Thomas and Castro", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "recently", + "category": "morning", + "price": 988.44, + "stock_quantity": 924 + }, + "customer": { + "name": "Anthony Myers", + "age": 54, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Lee, Williams and Taylor", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "none", + "category": "defense", + "price": 422.6, + "stock_quantity": 190 + }, + "customer": { + "name": "Steven Hurst", + "age": 68, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Kim Inc", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "teach", + "category": "in", + "price": 71.63, + "stock_quantity": 6 + }, + "customer": { + "name": "Lisa Ayala", + "age": 19, + "country": "India" + } + }, + { + "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'", + "company": { + "name": "Escobar Ltd", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "reflect", + "category": "experience", + "price": 593.12, + "stock_quantity": 565 + }, + "customer": { + "name": "Nicholas Bentley", + "age": 75, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Bright PLC", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "current", + "category": "find", + "price": 927.72, + "stock_quantity": 95 + }, + "customer": { + "name": "Mckenzie Welch", + "age": 59, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Lee-Stewart", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "agency", + "category": "structure", + "price": 773.12, + "stock_quantity": 538 + }, + "customer": { + "name": "Mary Garcia", + "age": 57, + "country": "Turks and Caicos Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Yates LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Yates LLC", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "south", + "category": "century", + "price": 990.38, + "stock_quantity": 938 + }, + "customer": { + "name": "James Hernandez", + "age": 73, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Baker, Jennings and Larsen", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "off", + "category": "scene", + "price": 733.52, + "stock_quantity": 714 + }, + "customer": { + "name": "Michael Rich", + "age": 20, + "country": "Brazil" + } + }, + { + "natural_query": "What are the top 9 products by customers for Stark Group all time?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Stark Group' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9", + "company": { + "name": "Stark Group", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "democratic", + "category": "strong", + "price": 199.96, + "stock_quantity": 494 + }, + "customer": { + "name": "April Berry", + "age": 67, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Prince, Rangel and Turner", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "too", + "category": "throughout", + "price": 510.55, + "stock_quantity": 847 + }, + "customer": { + "name": "Katrina Kennedy", + "age": 72, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Johnson Inc", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "participant", + "category": "doctor", + "price": 551.79, + "stock_quantity": 188 + }, + "customer": { + "name": "Matthew Johnston", + "age": 48, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Chan, Anderson and Fitzgerald", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "amount", + "category": "inside", + "price": 404.5, + "stock_quantity": 247 + }, + "customer": { + "name": "John Oliver", + "age": 66, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Nicholson-Russell", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "audience", + "category": "measure", + "price": 64.18, + "stock_quantity": 332 + }, + "customer": { + "name": "David Oliver", + "age": 19, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Rojas Ltd", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "my", + "category": "catch", + "price": 743.57, + "stock_quantity": 152 + }, + "customer": { + "name": "John Brown", + "age": 33, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Jenkins-Harmon", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "human", + "category": "sometimes", + "price": 718.69, + "stock_quantity": 988 + }, + "customer": { + "name": "Steve Bailey", + "age": 51, + "country": "Kiribati" + } + }, + { + "natural_query": "List all products of Bass, Gutierrez and Mcgee ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Bass, Gutierrez and Mcgee' ORDER BY stock_quantity ASC", + "company": { + "name": "Bass, Gutierrez and Mcgee", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "similar", + "category": "central", + "price": 264.5, + "stock_quantity": 697 + }, + "customer": { + "name": "Margaret Hamilton", + "age": 77, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Cannon Group", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "use", + "category": "civil", + "price": 844.45, + "stock_quantity": 617 + }, + "customer": { + "name": "Brad Martinez", + "age": 74, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Jones-Gill", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "myself", + "category": "up", + "price": 594.1, + "stock_quantity": 152 + }, + "customer": { + "name": "Bryan Johnson", + "age": 64, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Jenkins-Moreno", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "worry", + "category": "strong", + "price": 676.38, + "stock_quantity": 319 + }, + "customer": { + "name": "John Greer", + "age": 44, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Flores, Wall and Armstrong", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "continue", + "category": "can", + "price": 151.76, + "stock_quantity": 449 + }, + "customer": { + "name": "Samantha Reyes", + "age": 44, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Ellison, Brown and Gonzalez", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "cut", + "category": "per", + "price": 625.43, + "stock_quantity": 208 + }, + "customer": { + "name": "Sabrina Park", + "age": 57, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Huff Inc", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "attention", + "category": "enough", + "price": 668.99, + "stock_quantity": 38 + }, + "customer": { + "name": "Ann Murphy", + "age": 32, + "country": "Turks and Caicos Islands" + } + }, + { + "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'", + "company": { + "name": "Dalton-Ortiz", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "turn", + "category": "low", + "price": 899.38, + "stock_quantity": 46 + }, + "customer": { + "name": "Christopher Thomas", + "age": 57, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Brown, Andrade and Carpenter", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "little", + "category": "base", + "price": 430.59, + "stock_quantity": 349 + }, + "customer": { + "name": "Anthony Rodriguez", + "age": 59, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Mcdonald Inc", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "model", + "category": "shake", + "price": 693.75, + "stock_quantity": 635 + }, + "customer": { + "name": "Erica Brown", + "age": 28, + "country": "Mexico" + } + }, + { + "natural_query": "List all products of Vaughn and Sons ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Vaughn and Sons' ORDER BY price ASC", + "company": { + "name": "Vaughn and Sons", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "probably", + "category": "morning", + "price": 340.59, + "stock_quantity": 646 + }, + "customer": { + "name": "Diane Vazquez", + "age": 77, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Brown LLC", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "organization", + "category": "particular", + "price": 806.76, + "stock_quantity": 874 + }, + "customer": { + "name": "Stephen Bryan", + "age": 28, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Taylor Ltd", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "get", + "category": "begin", + "price": 121.2, + "stock_quantity": 689 + }, + "customer": { + "name": "Thomas Adams", + "age": 48, + "country": "Mexico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hanson-Watts'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hanson-Watts", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "tell", + "category": "always", + "price": 962.15, + "stock_quantity": 483 + }, + "customer": { + "name": "Maria Bender", + "age": 45, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Carter-Powell", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "important", + "category": "oil", + "price": 398.99, + "stock_quantity": 561 + }, + "customer": { + "name": "David Gonzalez", + "age": 26, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Waters-Arnold", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "speak", + "category": "help", + "price": 112.32, + "stock_quantity": 430 + }, + "customer": { + "name": "Kaylee Harris", + "age": 78, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Pierce, Warren and Cole", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "rock", + "category": "yet", + "price": 890.02, + "stock_quantity": 211 + }, + "customer": { + "name": "Nicholas Griffin", + "age": 36, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Schmidt and Sons", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "someone", + "category": "might", + "price": 771.6, + "stock_quantity": 528 + }, + "customer": { + "name": "Jill Brown", + "age": 22, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Francis, Martin and Taylor", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "fly", + "category": "gun", + "price": 194.4, + "stock_quantity": 898 + }, + "customer": { + "name": "David Pena", + "age": 38, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Jones-Riley", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "focus", + "category": "resource", + "price": 177.39, + "stock_quantity": 871 + }, + "customer": { + "name": "Frederick Murphy", + "age": 49, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Marks, Watson and Nguyen", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "make", + "category": "ever", + "price": 515.41, + "stock_quantity": 671 + }, + "customer": { + "name": "Brittany Parks", + "age": 33, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Mason, Atkinson and Lowe", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "or", + "category": "cost", + "price": 16.53, + "stock_quantity": 626 + }, + "customer": { + "name": "Roy Coleman", + "age": 30, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Brown-Mason", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "wall", + "category": "Republican", + "price": 472.34, + "stock_quantity": 136 + }, + "customer": { + "name": "Sharon Perez", + "age": 69, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Brown LLC", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "Mr", + "category": "side", + "price": 594.67, + "stock_quantity": 739 + }, + "customer": { + "name": "Corey Quinn", + "age": 61, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Howard, Luna and Jones", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "figure", + "category": "out", + "price": 253.5, + "stock_quantity": 571 + }, + "customer": { + "name": "Emily Kim", + "age": 43, + "country": "Solomon Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Edwards Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Edwards Ltd", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "detail", + "category": "action", + "price": 703.35, + "stock_quantity": 933 + }, + "customer": { + "name": "Larry Rice", + "age": 80, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Robinson, Norris and Lopez", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "himself", + "category": "right", + "price": 447.15, + "stock_quantity": 353 + }, + "customer": { + "name": "Jennifer Richardson DDS", + "age": 69, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Nguyen-Smith", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "discuss", + "category": "walk", + "price": 87.39, + "stock_quantity": 671 + }, + "customer": { + "name": "Tracy Dixon", + "age": 59, + "country": "Suriname" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dunlap and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dunlap and Sons", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "white", + "category": "miss", + "price": 569.07, + "stock_quantity": 559 + }, + "customer": { + "name": "Lauren Rose", + "age": 29, + "country": "Turkmenistan" + } + }, + { + "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'", + "company": { + "name": "Gaines, Hines and Hughes", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "face", + "category": "fight", + "price": 17.16, + "stock_quantity": 241 + }, + "customer": { + "name": "William Rush", + "age": 25, + "country": "Saint Martin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Archer, Clark and Black'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Archer, Clark and Black", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "world", + "category": "what", + "price": 673.45, + "stock_quantity": 988 + }, + "customer": { + "name": "Jane Anderson", + "age": 49, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Dougherty Ltd", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "guy", + "category": "window", + "price": 111.02, + "stock_quantity": 640 + }, + "customer": { + "name": "Richard Callahan", + "age": 18, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Barnes, Maxwell and Alexander", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "nature", + "category": "consider", + "price": 384.22, + "stock_quantity": 326 + }, + "customer": { + "name": "Luis Johnson", + "age": 62, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Jones-Jacobs", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "bring", + "category": "day", + "price": 651.6, + "stock_quantity": 475 + }, + "customer": { + "name": "Beth Smith", + "age": 43, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Medina-Lucas", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "side", + "category": "such", + "price": 82.94, + "stock_quantity": 523 + }, + "customer": { + "name": "Adam Walter", + "age": 39, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Simon, Morales and Kelly", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "on", + "category": "piece", + "price": 450.16, + "stock_quantity": 839 + }, + "customer": { + "name": "Laura Lopez", + "age": 41, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Thomas-Carter", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "southern", + "category": "within", + "price": 371.99, + "stock_quantity": 919 + }, + "customer": { + "name": "Sarah Anderson", + "age": 39, + "country": "Grenada" + } + }, + { + "natural_query": "What is the total quantity for each category in Marsh-Brewer?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Marsh-Brewer' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Marsh-Brewer", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "official", + "category": "true", + "price": 817.35, + "stock_quantity": 523 + }, + "customer": { + "name": "Sophia Martinez", + "age": 62, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Baldwin, Woodard and Gutierrez", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "focus", + "category": "country", + "price": 143.52, + "stock_quantity": 982 + }, + "customer": { + "name": "Michael Brown", + "age": 29, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Heath, Salas and King", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "commercial", + "category": "remain", + "price": 812.63, + "stock_quantity": 59 + }, + "customer": { + "name": "Robert Andrews", + "age": 39, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Hopkins, Coleman and Walter", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "interview", + "category": "table", + "price": 205.13, + "stock_quantity": 921 + }, + "customer": { + "name": "Timothy Lamb", + "age": 42, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Reeves LLC", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "power", + "category": "power", + "price": 200.5, + "stock_quantity": 946 + }, + "customer": { + "name": "Krystal Martin", + "age": 20, + "country": "French Southern Territories" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gallegos Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gallegos Ltd", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "finish", + "category": "TV", + "price": 66.24, + "stock_quantity": 391 + }, + "customer": { + "name": "Walter Marshall", + "age": 54, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Jennings Group", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "commercial", + "category": "lose", + "price": 427.48, + "stock_quantity": 600 + }, + "customer": { + "name": "Tammy Smith", + "age": 45, + "country": "Kiribati" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Allen-Andrews for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Allen-Andrews'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Allen-Andrews", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "scientist", + "category": "behavior", + "price": 252.35, + "stock_quantity": 109 + }, + "customer": { + "name": "Sara Martinez", + "age": 42, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Wallace, Friedman and Alexander", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "during", + "category": "than", + "price": 18.94, + "stock_quantity": 945 + }, + "customer": { + "name": "Andrew Kelly", + "age": 71, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Jackson, Simon and Phillips", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "too", + "category": "operation", + "price": 140.66, + "stock_quantity": 448 + }, + "customer": { + "name": "Emily King", + "age": 65, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Webster-Medina", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "election", + "category": "street", + "price": 721.12, + "stock_quantity": 253 + }, + "customer": { + "name": "Marie Gibson", + "age": 45, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Carr-Stephens", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "skill", + "category": "training", + "price": 278.27, + "stock_quantity": 249 + }, + "customer": { + "name": "Seth Harrison", + "age": 25, + "country": "French Polynesia" + } + }, + { + "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'", + "company": { + "name": "Hall, Hart and Meyer", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "human", + "category": "area", + "price": 279.08, + "stock_quantity": 368 + }, + "customer": { + "name": "Keith Jefferson", + "age": 42, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Smith-Larsen", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "day", + "category": "help", + "price": 119.23, + "stock_quantity": 36 + }, + "customer": { + "name": "April Cisneros", + "age": 66, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Singh-Morales", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "also", + "category": "arrive", + "price": 855.36, + "stock_quantity": 793 + }, + "customer": { + "name": "Jeffrey Ortiz", + "age": 69, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Torres PLC", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "hit", + "category": "set", + "price": 219.91, + "stock_quantity": 293 + }, + "customer": { + "name": "Teresa Williams", + "age": 57, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Silva-Jensen", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "take", + "category": "standard", + "price": 137.31, + "stock_quantity": 69 + }, + "customer": { + "name": "Katherine Payne", + "age": 67, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Miller, Wang and Howard", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "explain", + "category": "other", + "price": 571.73, + "stock_quantity": 249 + }, + "customer": { + "name": "Brad Klein", + "age": 61, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Vincent PLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "top", + "category": "behavior", + "price": 745.46, + "stock_quantity": 628 + }, + "customer": { + "name": "Alexis Fuller", + "age": 24, + "country": "New Zealand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Armstrong-Caldwell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Armstrong-Caldwell", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "myself", + "category": "day", + "price": 812.05, + "stock_quantity": 685 + }, + "customer": { + "name": "Joshua Dunlap", + "age": 78, + "country": "Namibia" + } + }, + { + "natural_query": "List all customers and their total order value for Tanner-Ford.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Tanner-Ford' GROUP BY c.customer_id", + "company": { + "name": "Tanner-Ford", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "develop", + "category": "admit", + "price": 882.44, + "stock_quantity": 380 + }, + "customer": { + "name": "Brittany Duran", + "age": 46, + "country": "Canada" + } + }, + { + "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'", + "company": { + "name": "Rodriguez-Hall", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "drop", + "category": "much", + "price": 404.92, + "stock_quantity": 483 + }, + "customer": { + "name": "Christina Douglas", + "age": 23, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Cox-Warner", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "financial", + "category": "me", + "price": 93.13, + "stock_quantity": 73 + }, + "customer": { + "name": "Jonathan Hensley", + "age": 18, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Webb, Cooper and Herrera", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "miss", + "category": "cold", + "price": 999.48, + "stock_quantity": 812 + }, + "customer": { + "name": "Philip Wilson", + "age": 69, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Salazar and Sons", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "future", + "category": "fall", + "price": 336.5, + "stock_quantity": 756 + }, + "customer": { + "name": "Antonio Parrish", + "age": 76, + "country": "China" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Colon LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Colon LLC", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "turn", + "category": "interview", + "price": 820.33, + "stock_quantity": 74 + }, + "customer": { + "name": "Zachary Martinez", + "age": 50, + "country": "Estonia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Andrews and Sons for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Andrews and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Andrews and Sons", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "table", + "category": "myself", + "price": 688.06, + "stock_quantity": 108 + }, + "customer": { + "name": "Meagan Brown", + "age": 43, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Bird, Ball and Williams", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "stock", + "category": "skill", + "price": 728.87, + "stock_quantity": 981 + }, + "customer": { + "name": "Debbie Blair", + "age": 58, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Joseph PLC", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "how", + "category": "nearly", + "price": 851.15, + "stock_quantity": 486 + }, + "customer": { + "name": "Tracy Richards", + "age": 19, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Ortiz, Reyes and Haas", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "really", + "category": "believe", + "price": 857.09, + "stock_quantity": 957 + }, + "customer": { + "name": "Julie Dudley", + "age": 79, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Welch LLC", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "perhaps", + "category": "writer", + "price": 981.94, + "stock_quantity": 412 + }, + "customer": { + "name": "Richard Mckee", + "age": 30, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Jimenez-Mathis", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "laugh", + "category": "difficult", + "price": 927.63, + "stock_quantity": 292 + }, + "customer": { + "name": "Michael Villarreal", + "age": 32, + "country": "Isle of Man" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Turner Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Turner Ltd", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "personal", + "category": "condition", + "price": 216.25, + "stock_quantity": 862 + }, + "customer": { + "name": "Brenda Houston", + "age": 30, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Cortez PLC", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "market", + "category": "article", + "price": 19.07, + "stock_quantity": 123 + }, + "customer": { + "name": "Marco King", + "age": 39, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Walker-Craig", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "call", + "category": "have", + "price": 339.46, + "stock_quantity": 346 + }, + "customer": { + "name": "Anna Mathews", + "age": 39, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Carlson, Farrell and Smith", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "store", + "category": "true", + "price": 299.53, + "stock_quantity": 926 + }, + "customer": { + "name": "Jade Allen", + "age": 68, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Ross, Thompson and Fischer", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "management", + "category": "direction", + "price": 394.73, + "stock_quantity": 201 + }, + "customer": { + "name": "Jason Stewart", + "age": 28, + "country": "Colombia" + } + }, + { + "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'", + "company": { + "name": "Morris, Brown and Long", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "career", + "category": "learn", + "price": 166.3, + "stock_quantity": 308 + }, + "customer": { + "name": "Mr. Jason Lewis", + "age": 71, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'James-Chapman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "James-Chapman", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "view", + "category": "job", + "price": 680.81, + "stock_quantity": 856 + }, + "customer": { + "name": "Edward Parker", + "age": 76, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Young-Knight", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "control", + "category": "avoid", + "price": 545.85, + "stock_quantity": 734 + }, + "customer": { + "name": "Jessica Murphy", + "age": 50, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Watts, Jones and James", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "everybody", + "category": "north", + "price": 643.49, + "stock_quantity": 736 + }, + "customer": { + "name": "Karen Brown", + "age": 22, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Molina, George and Contreras", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "increase", + "category": "model", + "price": 895.78, + "stock_quantity": 986 + }, + "customer": { + "name": "Michelle Davis", + "age": 31, + "country": "Turks and Caicos Islands" + } + }, + { + "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'", + "company": { + "name": "Mccoy-Haas", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "guy", + "category": "space", + "price": 208.92, + "stock_quantity": 334 + }, + "customer": { + "name": "Brandi Crawford", + "age": 18, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Carter, Callahan and Lee", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "class", + "category": "stuff", + "price": 465.95, + "stock_quantity": 244 + }, + "customer": { + "name": "James Peterson", + "age": 43, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Reed, Rush and Brown", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "itself", + "category": "yourself", + "price": 911.12, + "stock_quantity": 222 + }, + "customer": { + "name": "Eric Maddox", + "age": 67, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Dalton, Powers and Baker", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "perform", + "category": "important", + "price": 746.3, + "stock_quantity": 627 + }, + "customer": { + "name": "Jose Jackson", + "age": 80, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Hernandez LLC", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "base", + "category": "discuss", + "price": 770.7, + "stock_quantity": 853 + }, + "customer": { + "name": "Becky Waller", + "age": 18, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Johnson and Sons", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "mention", + "category": "growth", + "price": 54.01, + "stock_quantity": 508 + }, + "customer": { + "name": "Rachael Diaz", + "age": 46, + "country": "Saint Kitts and Nevis" + } + }, + { + "natural_query": "What is the total profit for each country in Holloway LLC?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Holloway LLC' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Holloway LLC", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "ok", + "category": "him", + "price": 449.25, + "stock_quantity": 525 + }, + "customer": { + "name": "Ashley Mitchell", + "age": 75, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Santos, West and Hale", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "serve", + "category": "list", + "price": 858.61, + "stock_quantity": 158 + }, + "customer": { + "name": "John Guerrero", + "age": 44, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Carter-Mitchell", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "involve", + "category": "break", + "price": 190.65, + "stock_quantity": 436 + }, + "customer": { + "name": "Mary Larson", + "age": 49, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Robinson-Thompson", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "rule", + "category": "financial", + "price": 970.46, + "stock_quantity": 196 + }, + "customer": { + "name": "Ashley Estrada", + "age": 69, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Guerra-Garcia", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "carry", + "category": "reality", + "price": 734.36, + "stock_quantity": 710 + }, + "customer": { + "name": "Monica Cardenas", + "age": 80, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Willis PLC", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "person", + "category": "leader", + "price": 940.77, + "stock_quantity": 213 + }, + "customer": { + "name": "Brandy Anderson", + "age": 63, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Freeman Ltd", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "these", + "category": "stage", + "price": 742.18, + "stock_quantity": 907 + }, + "customer": { + "name": "William Brady", + "age": 22, + "country": "Guatemala" + } + }, + { + "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'", + "company": { + "name": "Page, Jefferson and Butler", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "certainly", + "category": "eye", + "price": 121.41, + "stock_quantity": 75 + }, + "customer": { + "name": "Jesse Bryant", + "age": 51, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Olson PLC", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "apply", + "category": "explain", + "price": 25.47, + "stock_quantity": 573 + }, + "customer": { + "name": "Robert George", + "age": 42, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Knox, Johnson and Bell", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "suggest", + "category": "conference", + "price": 734.06, + "stock_quantity": 902 + }, + "customer": { + "name": "Elizabeth Smith", + "age": 51, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Gibson Ltd", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "control", + "category": "discussion", + "price": 516.36, + "stock_quantity": 55 + }, + "customer": { + "name": "Jason Roach", + "age": 70, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Frederick, Brown and Ward", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "record", + "category": "eye", + "price": 270.51, + "stock_quantity": 84 + }, + "customer": { + "name": "Steven Pratt", + "age": 75, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Cole-Gonzalez", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "skill", + "category": "last", + "price": 443.75, + "stock_quantity": 850 + }, + "customer": { + "name": "Monique Thomas", + "age": 27, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Barrett-Moore", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "option", + "category": "effort", + "price": 43.84, + "stock_quantity": 826 + }, + "customer": { + "name": "Gina Morrison", + "age": 32, + "country": "Liechtenstein" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harvey, Martinez and Dominguez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harvey, Martinez and Dominguez", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "because", + "category": "own", + "price": 589.77, + "stock_quantity": 721 + }, + "customer": { + "name": "Anthony Myers", + "age": 58, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Reed-Scott", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "later", + "category": "name", + "price": 744.25, + "stock_quantity": 555 + }, + "customer": { + "name": "Linda Lewis", + "age": 60, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Atkinson, Simpson and Harris", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "lead", + "category": "present", + "price": 281.39, + "stock_quantity": 261 + }, + "customer": { + "name": "Shannon Fernandez", + "age": 79, + "country": "Germany" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hogan, Johnson and Gonzalez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hogan, Johnson and Gonzalez", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "require", + "category": "none", + "price": 286.25, + "stock_quantity": 77 + }, + "customer": { + "name": "Aaron Jackson", + "age": 21, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Bennett, Nelson and Clark", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "create", + "category": "half", + "price": 585.86, + "stock_quantity": 565 + }, + "customer": { + "name": "Anthony Barrett", + "age": 79, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Martin, Lawson and Orozco", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "others", + "category": "movement", + "price": 43.52, + "stock_quantity": 510 + }, + "customer": { + "name": "Carl Garcia", + "age": 25, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Wright Inc", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "your", + "category": "night", + "price": 598.57, + "stock_quantity": 230 + }, + "customer": { + "name": "Amy Nelson", + "age": 44, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Webb-Walters", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "college", + "category": "suffer", + "price": 790.47, + "stock_quantity": 75 + }, + "customer": { + "name": "Nicholas White", + "age": 25, + "country": "China" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Diaz-Stafford'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Diaz-Stafford", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "dinner", + "category": "material", + "price": 490.05, + "stock_quantity": 437 + }, + "customer": { + "name": "Mrs. Samantha Hernandez MD", + "age": 52, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Edwards LLC", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "find", + "category": "piece", + "price": 667.95, + "stock_quantity": 312 + }, + "customer": { + "name": "Brandon Bradford", + "age": 44, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Anderson-Conway", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "cup", + "category": "office", + "price": 852.55, + "stock_quantity": 355 + }, + "customer": { + "name": "Jill Smith", + "age": 42, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Clark LLC", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "physical", + "category": "chance", + "price": 199.29, + "stock_quantity": 366 + }, + "customer": { + "name": "George Johnson", + "age": 53, + "country": "Sudan" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Wilson, Marks and Peterson for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson, Marks and Peterson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson, Marks and Peterson", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "bag", + "category": "fire", + "price": 483.2, + "stock_quantity": 762 + }, + "customer": { + "name": "William Fields", + "age": 32, + "country": "Andorra" + } + }, + { + "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'", + "company": { + "name": "Stewart, Mason and Shannon", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "current", + "category": "street", + "price": 234.8, + "stock_quantity": 554 + }, + "customer": { + "name": "Donna Rice", + "age": 45, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Bailey Ltd", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "something", + "category": "accept", + "price": 133.16, + "stock_quantity": 91 + }, + "customer": { + "name": "Stephanie Reyes", + "age": 38, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Walsh-Johnson", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "finally", + "category": "job", + "price": 128.16, + "stock_quantity": 351 + }, + "customer": { + "name": "Haley Olson", + "age": 30, + "country": "Netherlands" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Bennett, Durham and Davis?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bennett, Durham and Davis' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Bennett, Durham and Davis", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "rest", + "category": "trouble", + "price": 746.5, + "stock_quantity": 839 + }, + "customer": { + "name": "Brittany Smith", + "age": 45, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Bryant-Miles", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "campaign", + "category": "fund", + "price": 742.08, + "stock_quantity": 403 + }, + "customer": { + "name": "Ashley Gomez", + "age": 79, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Jimenez Ltd", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "decide", + "category": "sing", + "price": 707.15, + "stock_quantity": 14 + }, + "customer": { + "name": "Victoria Rivera", + "age": 59, + "country": "Cape Verde" + } + }, + { + "natural_query": "List all products of Smith-Wells ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Smith-Wells' ORDER BY rating DESC", + "company": { + "name": "Smith-Wells", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "board", + "category": "safe", + "price": 73.6, + "stock_quantity": 645 + }, + "customer": { + "name": "Tina White", + "age": 29, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Payne, Mcgrath and Montgomery", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "mention", + "category": "identify", + "price": 133.32, + "stock_quantity": 682 + }, + "customer": { + "name": "Amy Bautista", + "age": 28, + "country": "Myanmar" + } + }, + { + "natural_query": "Show me all products in the happy category with a price over $974.72.", + "sql_query": "SELECT * FROM products WHERE category = 'happy' AND price > 974.72", + "company": { + "name": "Hernandez, Wilson and Crane", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "him", + "category": "happy", + "price": 974.72, + "stock_quantity": 521 + }, + "customer": { + "name": "Robert Torres", + "age": 54, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Stewart and Sons", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "mother", + "category": "same", + "price": 922.07, + "stock_quantity": 434 + }, + "customer": { + "name": "Blake Brown", + "age": 23, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Brown, Crawford and Thomas", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "color", + "category": "fund", + "price": 370.61, + "stock_quantity": 942 + }, + "customer": { + "name": "Scott Andrews", + "age": 22, + "country": "Timor-Leste" + } + }, + { + "natural_query": "Show me all products in the hour category with a price over $250.37.", + "sql_query": "SELECT * FROM products WHERE category = 'hour' AND price > 250.37", + "company": { + "name": "Brown-Brown", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "market", + "category": "hour", + "price": 250.37, + "stock_quantity": 291 + }, + "customer": { + "name": "Rebecca Peck", + "age": 67, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Jackson, Allen and Dorsey", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "television", + "category": "view", + "price": 815.82, + "stock_quantity": 166 + }, + "customer": { + "name": "Erin Green", + "age": 49, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Lopez, Cervantes and Pierce", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "child", + "category": "this", + "price": 893.54, + "stock_quantity": 554 + }, + "customer": { + "name": "Michele Spencer", + "age": 69, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Powers, Braun and Boyd", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "ask", + "category": "water", + "price": 382.13, + "stock_quantity": 163 + }, + "customer": { + "name": "Mary Friedman", + "age": 39, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Walker, Cantrell and Brooks", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "without", + "category": "several", + "price": 377.63, + "stock_quantity": 229 + }, + "customer": { + "name": "Jennifer Sutton", + "age": 56, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Palmer-Garcia", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "expert", + "category": "teach", + "price": 483.27, + "stock_quantity": 192 + }, + "customer": { + "name": "Joe Weiss", + "age": 33, + "country": "Cambodia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kelly LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kelly LLC", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "free", + "category": "music", + "price": 257.93, + "stock_quantity": 43 + }, + "customer": { + "name": "Robin Ellis", + "age": 47, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Austin Group", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "hard", + "category": "left", + "price": 17.1, + "stock_quantity": 995 + }, + "customer": { + "name": "Cassandra Daniels", + "age": 19, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Mack, Thomas and Shields", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "allow", + "category": "opportunity", + "price": 287.64, + "stock_quantity": 721 + }, + "customer": { + "name": "Jeffrey Higgins", + "age": 64, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Johnson-Griffin", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "out", + "category": "education", + "price": 224.71, + "stock_quantity": 154 + }, + "customer": { + "name": "Travis Marshall", + "age": 19, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Smith-Morris", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "six", + "category": "water", + "price": 662.0, + "stock_quantity": 111 + }, + "customer": { + "name": "Dawn Ball", + "age": 78, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Bishop-Wilson", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "kind", + "category": "my", + "price": 951.73, + "stock_quantity": 482 + }, + "customer": { + "name": "Susan Aguilar", + "age": 40, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Williams Ltd", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "chance", + "category": "good", + "price": 101.47, + "stock_quantity": 869 + }, + "customer": { + "name": "Debra Garrett", + "age": 55, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Garcia, Silva and Butler", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "meeting", + "category": "kitchen", + "price": 98.27, + "stock_quantity": 400 + }, + "customer": { + "name": "Laura Lynch", + "age": 20, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Miller-English", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "consider", + "category": "let", + "price": 566.4, + "stock_quantity": 789 + }, + "customer": { + "name": "Larry Powers", + "age": 25, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Gonzales Inc", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "section", + "category": "against", + "price": 613.35, + "stock_quantity": 173 + }, + "customer": { + "name": "Andrea Trujillo", + "age": 37, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Mann, Hunt and Lewis", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "control", + "category": "truth", + "price": 642.56, + "stock_quantity": 76 + }, + "customer": { + "name": "Sherri Hunter DVM", + "age": 68, + "country": "Maldives" + } + }, + { + "natural_query": "How many orders were placed for Hardy-Bauer between 2023-10-31 and 2024-08-03?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hardy-Bauer' AND order_date BETWEEN '2023-10-31' AND '2024-08-03'", + "company": { + "name": "Hardy-Bauer", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "memory", + "category": "difference", + "price": 272.91, + "stock_quantity": 457 + }, + "customer": { + "name": "Michael Alvarado", + "age": 73, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Coleman LLC", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "budget", + "category": "goal", + "price": 333.44, + "stock_quantity": 229 + }, + "customer": { + "name": "Mark Wilson", + "age": 74, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Villa and Moore", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "seem", + "category": "put", + "price": 558.49, + "stock_quantity": 533 + }, + "customer": { + "name": "Jennifer Myers", + "age": 63, + "country": "Belgium" + } + }, + { + "natural_query": "How many orders were placed for Carlson-Flores between 2024-05-19 and 2024-06-30?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carlson-Flores' AND order_date BETWEEN '2024-05-19' AND '2024-06-30'", + "company": { + "name": "Carlson-Flores", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "he", + "category": "enough", + "price": 704.89, + "stock_quantity": 719 + }, + "customer": { + "name": "Jeremy House", + "age": 49, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Romero-Carter", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "international", + "category": "best", + "price": 453.17, + "stock_quantity": 401 + }, + "customer": { + "name": "Robert Miller", + "age": 42, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Costa-Sharp", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "cover", + "category": "yard", + "price": 914.47, + "stock_quantity": 759 + }, + "customer": { + "name": "John Cohen", + "age": 52, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Moore-Little", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "mean", + "category": "community", + "price": 526.31, + "stock_quantity": 94 + }, + "customer": { + "name": "Anthony Price", + "age": 73, + "country": "Norway" + } + }, + { + "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'", + "company": { + "name": "Smith, Robinson and Page", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "per", + "category": "into", + "price": 199.54, + "stock_quantity": 925 + }, + "customer": { + "name": "Krystal Soto", + "age": 28, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Erickson, Miller and Moore", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "ask", + "category": "beautiful", + "price": 191.44, + "stock_quantity": 416 + }, + "customer": { + "name": "Susan Smith", + "age": 51, + "country": "Papua New Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis-Johnson", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "public", + "category": "president", + "price": 654.48, + "stock_quantity": 108 + }, + "customer": { + "name": "Troy Shaw", + "age": 23, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Mendez-Moran", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "nation", + "category": "hold", + "price": 717.56, + "stock_quantity": 941 + }, + "customer": { + "name": "Teresa Brown", + "age": 66, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Turner, Lee and Butler", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "building", + "category": "significant", + "price": 315.93, + "stock_quantity": 907 + }, + "customer": { + "name": "Timothy Huynh", + "age": 51, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Torres Ltd", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "situation", + "category": "subject", + "price": 342.91, + "stock_quantity": 787 + }, + "customer": { + "name": "Ellen Reese", + "age": 40, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Burns, Carpenter and Garrison", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "success", + "category": "again", + "price": 781.46, + "stock_quantity": 94 + }, + "customer": { + "name": "Matthew Davis", + "age": 61, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Mcdonald-Jones", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "knowledge", + "category": "behind", + "price": 137.71, + "stock_quantity": 887 + }, + "customer": { + "name": "Keith Chase", + "age": 71, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Mcdonald-Rodriguez", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "theory", + "category": "fine", + "price": 336.44, + "stock_quantity": 81 + }, + "customer": { + "name": "Meagan Brown", + "age": 27, + "country": "Uzbekistan" + } + }, + { + "natural_query": "Show me all products in the impact category with a price over $650.04.", + "sql_query": "SELECT * FROM products WHERE category = 'impact' AND price > 650.04", + "company": { + "name": "Price, Gallegos and Martin", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "outside", + "category": "impact", + "price": 650.04, + "stock_quantity": 823 + }, + "customer": { + "name": "Virginia Fisher", + "age": 77, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Williamson and Sons", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "shake", + "category": "task", + "price": 337.65, + "stock_quantity": 204 + }, + "customer": { + "name": "Allison Williams", + "age": 63, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Wright-Davis", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "foot", + "category": "small", + "price": 980.71, + "stock_quantity": 143 + }, + "customer": { + "name": "Donna Dyer", + "age": 55, + "country": "Japan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ryan-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ryan-Anderson", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "work", + "category": "military", + "price": 479.04, + "stock_quantity": 186 + }, + "customer": { + "name": "Riley Miller", + "age": 31, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Fields-Fleming", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "shake", + "category": "author", + "price": 847.65, + "stock_quantity": 95 + }, + "customer": { + "name": "Cassandra Jones", + "age": 18, + "country": "Grenada" + } + }, + { + "natural_query": "Show me all products in the reflect category with a price over $894.08.", + "sql_query": "SELECT * FROM products WHERE category = 'reflect' AND price > 894.08", + "company": { + "name": "Wright-Gibson", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "father", + "category": "reflect", + "price": 894.08, + "stock_quantity": 747 + }, + "customer": { + "name": "Sabrina Herman", + "age": 41, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Huffman-Odonnell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Huffman-Odonnell", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "leader", + "category": "success", + "price": 329.41, + "stock_quantity": 650 + }, + "customer": { + "name": "Sara Wilkins", + "age": 40, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Bowman LLC", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "cultural", + "category": "expert", + "price": 478.45, + "stock_quantity": 767 + }, + "customer": { + "name": "Michael Walls", + "age": 50, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Wheeler-Ferguson", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "sister", + "category": "put", + "price": 558.69, + "stock_quantity": 519 + }, + "customer": { + "name": "Theresa Taylor", + "age": 66, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Smith, Patterson and Key", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "allow", + "category": "degree", + "price": 903.14, + "stock_quantity": 630 + }, + "customer": { + "name": "Allison Lindsey", + "age": 54, + "country": "Saudi Arabia" + } + }, + { + "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'", + "company": { + "name": "Jensen, Johnson and Rose", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "recent", + "category": "likely", + "price": 731.2, + "stock_quantity": 576 + }, + "customer": { + "name": "Jonathan Oliver", + "age": 47, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "King-Barrera", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "strategy", + "category": "technology", + "price": 439.23, + "stock_quantity": 601 + }, + "customer": { + "name": "Tyler Love", + "age": 72, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Burke Ltd", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "structure", + "category": "after", + "price": 55.32, + "stock_quantity": 279 + }, + "customer": { + "name": "Taylor Mann", + "age": 28, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Chang Group", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "action", + "category": "matter", + "price": 996.76, + "stock_quantity": 651 + }, + "customer": { + "name": "Stacy Wu", + "age": 43, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Hess Group", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "well", + "category": "from", + "price": 413.27, + "stock_quantity": 64 + }, + "customer": { + "name": "Megan Jones", + "age": 44, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Taylor, Medina and Pham", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "area", + "category": "full", + "price": 501.67, + "stock_quantity": 440 + }, + "customer": { + "name": "Dustin Miller", + "age": 60, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Estrada, Daugherty and Keller", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "office", + "category": "kid", + "price": 547.69, + "stock_quantity": 108 + }, + "customer": { + "name": "Michelle Harrington MD", + "age": 29, + "country": "North Macedonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carroll, Clark and Douglas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carroll, Clark and Douglas", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "catch", + "category": "yard", + "price": 840.48, + "stock_quantity": 686 + }, + "customer": { + "name": "Frank Sloan", + "age": 26, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Dixon, Newman and Hall", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "drug", + "category": "run", + "price": 264.82, + "stock_quantity": 340 + }, + "customer": { + "name": "Joshua Graham", + "age": 42, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Johnson-Bradshaw", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "building", + "category": "play", + "price": 457.54, + "stock_quantity": 656 + }, + "customer": { + "name": "Mary Hernandez", + "age": 62, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Howard, Smith and Vega", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "friend", + "category": "PM", + "price": 343.72, + "stock_quantity": 363 + }, + "customer": { + "name": "Joshua Martinez", + "age": 40, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Campbell-Moore", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "not", + "category": "war", + "price": 356.34, + "stock_quantity": 810 + }, + "customer": { + "name": "Keith Anderson", + "age": 65, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Williams-Schmitt", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "discover", + "category": "arm", + "price": 450.87, + "stock_quantity": 111 + }, + "customer": { + "name": "Tyler Robinson", + "age": 47, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Clayton Group", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "speak", + "category": "bill", + "price": 900.35, + "stock_quantity": 747 + }, + "customer": { + "name": "Cody Lee", + "age": 76, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Larson, Gardner and Perez", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "song", + "category": "nothing", + "price": 879.4, + "stock_quantity": 964 + }, + "customer": { + "name": "Dawn Jones", + "age": 51, + "country": "Singapore" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pearson-Williams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pearson-Williams", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "million", + "category": "answer", + "price": 172.33, + "stock_quantity": 973 + }, + "customer": { + "name": "Rachel Wilson", + "age": 76, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Logan Inc", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "agent", + "category": "home", + "price": 353.27, + "stock_quantity": 614 + }, + "customer": { + "name": "Derek Green", + "age": 26, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Zhang Inc", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "middle", + "category": "culture", + "price": 167.16, + "stock_quantity": 827 + }, + "customer": { + "name": "Deborah Franco", + "age": 21, + "country": "Uganda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Price, Munoz and Padilla'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Price, Munoz and Padilla", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "phone", + "category": "return", + "price": 913.81, + "stock_quantity": 353 + }, + "customer": { + "name": "April King", + "age": 24, + "country": "Saint Martin" + } + }, + { + "natural_query": "How many orders were placed for Fields Inc between 2023-12-10 and 2024-07-20?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fields Inc' AND order_date BETWEEN '2023-12-10' AND '2024-07-20'", + "company": { + "name": "Fields Inc", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "step", + "category": "will", + "price": 904.63, + "stock_quantity": 891 + }, + "customer": { + "name": "Lisa Hamilton", + "age": 59, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Padilla-Cox", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "tax", + "category": "walk", + "price": 293.21, + "stock_quantity": 241 + }, + "customer": { + "name": "Dr. Anthony Hansen", + "age": 67, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Moore, Goodwin and Davis", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "most", + "category": "best", + "price": 109.42, + "stock_quantity": 526 + }, + "customer": { + "name": "Bryan Morales", + "age": 56, + "country": "Israel" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Campbell and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Campbell and Sons", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "name", + "category": "lose", + "price": 91.21, + "stock_quantity": 487 + }, + "customer": { + "name": "Jodi Mccall", + "age": 48, + "country": "San Marino" + } + }, + { + "natural_query": "What are the top 3 products by customers for Rodriguez Inc this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodriguez Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3", + "company": { + "name": "Rodriguez Inc", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "charge", + "category": "new", + "price": 695.62, + "stock_quantity": 475 + }, + "customer": { + "name": "Angela Johnson", + "age": 40, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Davis-Wise", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "although", + "category": "where", + "price": 617.99, + "stock_quantity": 610 + }, + "customer": { + "name": "Susan Compton", + "age": 63, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Jones, Taylor and Herrera", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "concern", + "category": "reason", + "price": 549.1, + "stock_quantity": 730 + }, + "customer": { + "name": "Brianna Black", + "age": 37, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Phelps LLC", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "impact", + "category": "strategy", + "price": 667.67, + "stock_quantity": 982 + }, + "customer": { + "name": "Travis Rice", + "age": 73, + "country": "Cayman Islands" + } + }, + { + "natural_query": "Show me all products in the first category with a price over $44.27.", + "sql_query": "SELECT * FROM products WHERE category = 'first' AND price > 44.27", + "company": { + "name": "Ramirez, Peterson and Arnold", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "magazine", + "category": "first", + "price": 44.27, + "stock_quantity": 42 + }, + "customer": { + "name": "Jennifer Miller", + "age": 55, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Martinez-Bryant", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "mention", + "category": "five", + "price": 740.42, + "stock_quantity": 452 + }, + "customer": { + "name": "Robert Davis", + "age": 74, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Green Ltd", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "high", + "category": "audience", + "price": 661.83, + "stock_quantity": 675 + }, + "customer": { + "name": "Joshua Wiley", + "age": 76, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Cruz Ltd", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "compare", + "category": "alone", + "price": 866.09, + "stock_quantity": 731 + }, + "customer": { + "name": "Phillip Jordan", + "age": 75, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Sheppard, Jordan and Drake", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "evening", + "category": "everything", + "price": 453.69, + "stock_quantity": 174 + }, + "customer": { + "name": "Denise Anderson", + "age": 21, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Campbell, Williams and Cook", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "agree", + "category": "local", + "price": 692.61, + "stock_quantity": 649 + }, + "customer": { + "name": "William Carpenter", + "age": 52, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "natural_query": "How many orders were placed for Sandoval-Ferguson between 2024-05-18 and 2024-07-04?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sandoval-Ferguson' AND order_date BETWEEN '2024-05-18' AND '2024-07-04'", + "company": { + "name": "Sandoval-Ferguson", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "professor", + "category": "country", + "price": 372.9, + "stock_quantity": 179 + }, + "customer": { + "name": "Roy Boyd", + "age": 54, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Schaefer Group", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "will", + "category": "team", + "price": 146.77, + "stock_quantity": 789 + }, + "customer": { + "name": "Cindy Brown", + "age": 31, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Gray Group", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "tend", + "category": "worry", + "price": 338.68, + "stock_quantity": 229 + }, + "customer": { + "name": "Thomas Abbott", + "age": 46, + "country": "Solomon Islands" + } + }, + { + "natural_query": "List all customers and their total order value for Zamora-Newton.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Zamora-Newton' GROUP BY c.customer_id", + "company": { + "name": "Zamora-Newton", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "late", + "category": "democratic", + "price": 943.5, + "stock_quantity": 817 + }, + "customer": { + "name": "Joshua Atkins", + "age": 75, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Russo LLC", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "apply", + "category": "seven", + "price": 987.72, + "stock_quantity": 956 + }, + "customer": { + "name": "Michael Guzman", + "age": 51, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Moore-Moore", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "fill", + "category": "only", + "price": 402.58, + "stock_quantity": 847 + }, + "customer": { + "name": "Lauren Reynolds", + "age": 79, + "country": "Egypt" + } + }, + { + "natural_query": "List all customers and their total order value for Guerrero-Wilkinson.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Guerrero-Wilkinson' GROUP BY c.customer_id", + "company": { + "name": "Guerrero-Wilkinson", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "same", + "category": "example", + "price": 455.42, + "stock_quantity": 654 + }, + "customer": { + "name": "Christine Haley", + "age": 72, + "country": "French Guiana" + } + }, + { + "natural_query": "What is the total sales for each supplier in Martin, Scott and Mcintosh?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martin, Scott and Mcintosh' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Martin, Scott and Mcintosh", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "claim", + "category": "suggest", + "price": 477.47, + "stock_quantity": 997 + }, + "customer": { + "name": "John Dominguez", + "age": 69, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Mcfarland and Sons", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "decide", + "category": "action", + "price": 683.27, + "stock_quantity": 910 + }, + "customer": { + "name": "Lauren Farmer", + "age": 68, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Guzman, Davis and Anderson", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "Republican", + "category": "important", + "price": 53.25, + "stock_quantity": 727 + }, + "customer": { + "name": "Mason Stewart", + "age": 79, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Stewart Ltd", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "own", + "category": "style", + "price": 906.2, + "stock_quantity": 745 + }, + "customer": { + "name": "Michael Morales", + "age": 35, + "country": "Niue" + } + }, + { + "natural_query": "List all products of Perez and Sons ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Perez and Sons' ORDER BY rating ASC", + "company": { + "name": "Perez and Sons", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "page", + "category": "avoid", + "price": 842.97, + "stock_quantity": 620 + }, + "customer": { + "name": "Deborah Morgan", + "age": 46, + "country": "Aruba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller Ltd", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "boy", + "category": "various", + "price": 891.8, + "stock_quantity": 252 + }, + "customer": { + "name": "Russell Richardson", + "age": 21, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Taylor Group", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "same", + "category": "maybe", + "price": 487.71, + "stock_quantity": 212 + }, + "customer": { + "name": "Brian Sexton", + "age": 30, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Friedman Inc", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "property", + "category": "popular", + "price": 526.39, + "stock_quantity": 559 + }, + "customer": { + "name": "Jeffery Shepherd", + "age": 31, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Simmons-Allison", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "sister", + "category": "very", + "price": 285.92, + "stock_quantity": 91 + }, + "customer": { + "name": "Brenda Walker", + "age": 66, + "country": "Haiti" + } + }, + { + "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'", + "company": { + "name": "Mcdaniel, Stevenson and Murphy", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "every", + "category": "season", + "price": 996.09, + "stock_quantity": 849 + }, + "customer": { + "name": "Steven Lewis", + "age": 71, + "country": "Kenya" + } + }, + { + "natural_query": "What is the total rating of all products for Taylor and Sons?", + "sql_query": "SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Taylor and Sons'", + "company": { + "name": "Taylor and Sons", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "investment", + "category": "teach", + "price": 96.73, + "stock_quantity": 958 + }, + "customer": { + "name": "Jason Bryant", + "age": 55, + "country": "Myanmar" + } + }, + { + "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'", + "company": { + "name": "Hester and Sons", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "crime", + "category": "leg", + "price": 207.63, + "stock_quantity": 651 + }, + "customer": { + "name": "Brenda Madden", + "age": 50, + "country": "Somalia" + } + }, + { + "natural_query": "What is the total sales for each supplier in Brown, Pugh and Kim?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Brown, Pugh and Kim' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Brown, Pugh and Kim", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "style", + "category": "six", + "price": 813.63, + "stock_quantity": 184 + }, + "customer": { + "name": "Laura Adkins", + "age": 35, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Gordon-Horn", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "marriage", + "category": "approach", + "price": 884.09, + "stock_quantity": 432 + }, + "customer": { + "name": "Margaret Martinez", + "age": 26, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Bowers and Sons", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "environment", + "category": "go", + "price": 180.5, + "stock_quantity": 938 + }, + "customer": { + "name": "Danny Cannon", + "age": 34, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Reynolds, Miller and Newton", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "yard", + "category": "dinner", + "price": 957.4, + "stock_quantity": 10 + }, + "customer": { + "name": "Christina Owens", + "age": 79, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Lawrence-Tucker", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "economy", + "category": "million", + "price": 473.38, + "stock_quantity": 146 + }, + "customer": { + "name": "Donald Schaefer", + "age": 61, + "country": "Palau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wells, Wilson and Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wells, Wilson and Johnson", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "finally", + "category": "beautiful", + "price": 11.68, + "stock_quantity": 465 + }, + "customer": { + "name": "Kimberly Baker", + "age": 49, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith Group", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "soldier", + "category": "spring", + "price": 272.99, + "stock_quantity": 139 + }, + "customer": { + "name": "Timothy Brown", + "age": 50, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Bauer-Miller", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "would", + "category": "college", + "price": 648.78, + "stock_quantity": 361 + }, + "customer": { + "name": "Kayla Wiggins", + "age": 18, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Summers, Lawrence and Brady", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "least", + "category": "hundred", + "price": 64.02, + "stock_quantity": 657 + }, + "customer": { + "name": "Christina Young", + "age": 51, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Lopez-Hunt", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "late", + "category": "send", + "price": 845.38, + "stock_quantity": 628 + }, + "customer": { + "name": "Jerome Johnson", + "age": 25, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Carter-Day", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "discussion", + "category": "somebody", + "price": 507.16, + "stock_quantity": 56 + }, + "customer": { + "name": "Justin Chavez", + "age": 23, + "country": "Singapore" + } + }, + { + "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'", + "company": { + "name": "Mercer-Gray", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "find", + "category": "back", + "price": 241.13, + "stock_quantity": 857 + }, + "customer": { + "name": "Michael Lewis", + "age": 55, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Mccormick, Austin and Berger", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "man", + "category": "technology", + "price": 727.48, + "stock_quantity": 61 + }, + "customer": { + "name": "Donald White", + "age": 43, + "country": "Yemen" + } + }, + { + "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'", + "company": { + "name": "Walker, Sandoval and Weber", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "fill", + "category": "management", + "price": 867.4, + "stock_quantity": 804 + }, + "customer": { + "name": "Rachel Thompson", + "age": 79, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Grant, Jones and Morton", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "you", + "category": "offer", + "price": 632.34, + "stock_quantity": 763 + }, + "customer": { + "name": "Jeremy Roberts", + "age": 40, + "country": "Guadeloupe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nguyen-Walker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nguyen-Walker", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "blood", + "category": "about", + "price": 720.85, + "stock_quantity": 897 + }, + "customer": { + "name": "Patricia Middleton", + "age": 78, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Thompson-Martinez", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "why", + "category": "possible", + "price": 851.17, + "stock_quantity": 857 + }, + "customer": { + "name": "Ann Williams", + "age": 25, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Ellis-Bennett", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "the", + "category": "which", + "price": 517.09, + "stock_quantity": 370 + }, + "customer": { + "name": "Courtney Taylor DVM", + "age": 62, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Johnson-Thomas", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "walk", + "category": "street", + "price": 964.15, + "stock_quantity": 187 + }, + "customer": { + "name": "Mary Miller", + "age": 25, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Snyder, Kelly and Anderson", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "continue", + "category": "still", + "price": 326.9, + "stock_quantity": 66 + }, + "customer": { + "name": "Donna Salazar", + "age": 46, + "country": "Oman" + } + }, + { + "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'", + "company": { + "name": "Mclaughlin, Bush and Simpson", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "green", + "category": "computer", + "price": 217.55, + "stock_quantity": 463 + }, + "customer": { + "name": "Katie Holmes", + "age": 32, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Lam Group", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "late", + "category": "fund", + "price": 756.19, + "stock_quantity": 745 + }, + "customer": { + "name": "Charlene Bryant", + "age": 45, + "country": "Djibouti" + } + }, + { + "natural_query": "What is the minimum price of all products for Mcclure and Sons?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Mcclure and Sons'", + "company": { + "name": "Mcclure and Sons", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "huge", + "category": "the", + "price": 903.63, + "stock_quantity": 183 + }, + "customer": { + "name": "Jeffrey Leon", + "age": 56, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Hamilton-Hendrix", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "fast", + "category": "rule", + "price": 587.84, + "stock_quantity": 842 + }, + "customer": { + "name": "Tyler Dickerson", + "age": 72, + "country": "Chad" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murphy, Kaufman and Schultz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murphy, Kaufman and Schultz", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "team", + "category": "share", + "price": 375.83, + "stock_quantity": 74 + }, + "customer": { + "name": "Richard Lopez", + "age": 69, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Cummings-Rodriguez", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "within", + "category": "in", + "price": 125.66, + "stock_quantity": 947 + }, + "customer": { + "name": "Brandon Green", + "age": 45, + "country": "Singapore" + } + }, + { + "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'", + "company": { + "name": "Armstrong Group", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "white", + "category": "if", + "price": 691.65, + "stock_quantity": 411 + }, + "customer": { + "name": "Thomas Liu", + "age": 77, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Reed Ltd", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "close", + "category": "consider", + "price": 597.89, + "stock_quantity": 419 + }, + "customer": { + "name": "Stephanie Turner", + "age": 33, + "country": "Uzbekistan" + } + }, + { + "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'", + "company": { + "name": "Allen-Garcia", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "floor", + "category": "special", + "price": 925.92, + "stock_quantity": 215 + }, + "customer": { + "name": "Angela Wright", + "age": 76, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Lowe, Newman and Grant", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "finally", + "category": "issue", + "price": 751.05, + "stock_quantity": 234 + }, + "customer": { + "name": "Zachary Flynn", + "age": 72, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Davis PLC", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "why", + "category": "age", + "price": 906.6, + "stock_quantity": 79 + }, + "customer": { + "name": "Joseph Kelly", + "age": 25, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Robinson and Sons", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "parent", + "category": "you", + "price": 924.19, + "stock_quantity": 771 + }, + "customer": { + "name": "Wyatt Jimenez", + "age": 47, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Schmidt-Daniels", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "order", + "category": "teacher", + "price": 300.83, + "stock_quantity": 506 + }, + "customer": { + "name": "Anne Medina", + "age": 41, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Houston-Allen", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "bag", + "category": "Congress", + "price": 258.26, + "stock_quantity": 617 + }, + "customer": { + "name": "Kevin Miller", + "age": 76, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Morgan-Barnett", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "federal", + "category": "discussion", + "price": 77.46, + "stock_quantity": 61 + }, + "customer": { + "name": "Mathew Sanford", + "age": 66, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Murray, Myers and Ryan", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "hospital", + "category": "off", + "price": 372.84, + "stock_quantity": 608 + }, + "customer": { + "name": "Michelle Garrison", + "age": 67, + "country": "American Samoa" + } + }, + { + "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'", + "company": { + "name": "Garcia and Sons", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "few", + "category": "once", + "price": 807.09, + "stock_quantity": 268 + }, + "customer": { + "name": "Oscar Edwards", + "age": 73, + "country": "Papua New Guinea" + } + }, + { + "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'", + "company": { + "name": "Johnson-Ramsey", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "meeting", + "category": "raise", + "price": 149.72, + "stock_quantity": 477 + }, + "customer": { + "name": "Mrs. Erica Martin DDS", + "age": 54, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Romero-Todd", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "parent", + "category": "then", + "price": 230.95, + "stock_quantity": 713 + }, + "customer": { + "name": "Brittney Riggs", + "age": 60, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Mcgrath and Chen", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "raise", + "category": "spend", + "price": 700.05, + "stock_quantity": 937 + }, + "customer": { + "name": "Michelle Fisher", + "age": 62, + "country": "Liechtenstein" + } + }, + { + "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'", + "company": { + "name": "Lee-Aguilar", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "west", + "category": "claim", + "price": 872.93, + "stock_quantity": 820 + }, + "customer": { + "name": "Edward Taylor", + "age": 36, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Hanna-Walters", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "personal", + "category": "thus", + "price": 111.37, + "stock_quantity": 440 + }, + "customer": { + "name": "Valerie Sanchez", + "age": 65, + "country": "Tonga" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Powers-Carpenter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Powers-Carpenter", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "Mrs", + "category": "garden", + "price": 534.83, + "stock_quantity": 706 + }, + "customer": { + "name": "Devin Anderson", + "age": 53, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Peters, Johnson and Powell", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "population", + "category": "every", + "price": 24.64, + "stock_quantity": 283 + }, + "customer": { + "name": "Emily Hunter", + "age": 38, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Rivera Group", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "city", + "category": "lose", + "price": 792.69, + "stock_quantity": 416 + }, + "customer": { + "name": "William Knight", + "age": 23, + "country": "Czech Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Potter-Ortega'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Potter-Ortega", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "sing", + "category": "social", + "price": 495.06, + "stock_quantity": 533 + }, + "customer": { + "name": "Laura Huynh", + "age": 52, + "country": "Saint Helena" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson, Miller and Ware'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson, Miller and Ware", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "these", + "category": "against", + "price": 349.24, + "stock_quantity": 854 + }, + "customer": { + "name": "Victoria Shaw", + "age": 67, + "country": "Kiribati" + } + }, + { + "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'", + "company": { + "name": "Nolan Inc", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "change", + "category": "hold", + "price": 821.43, + "stock_quantity": 561 + }, + "customer": { + "name": "Matthew Murray", + "age": 29, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Blake, Warren and Wilkinson", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "know", + "category": "glass", + "price": 602.0, + "stock_quantity": 760 + }, + "customer": { + "name": "Tiffany Gray", + "age": 46, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Valdez Group", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "black", + "category": "capital", + "price": 380.83, + "stock_quantity": 923 + }, + "customer": { + "name": "Kevin Ortega", + "age": 69, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Goodwin-Flores", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "body", + "category": "dream", + "price": 413.67, + "stock_quantity": 972 + }, + "customer": { + "name": "Dr. Katherine Miller MD", + "age": 46, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "West-Torres", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "night", + "category": "deal", + "price": 468.21, + "stock_quantity": 636 + }, + "customer": { + "name": "Paula Tyler", + "age": 76, + "country": "Senegal" + } + }, + { + "natural_query": "List all products of Thompson, Dennis and Miller ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Thompson, Dennis and Miller' ORDER BY stock_quantity DESC", + "company": { + "name": "Thompson, Dennis and Miller", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "fight", + "category": "subject", + "price": 275.63, + "stock_quantity": 348 + }, + "customer": { + "name": "Bryan Knight", + "age": 27, + "country": "Cote d'Ivoire" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Washington Group for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Washington Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Washington Group", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "result", + "category": "compare", + "price": 538.89, + "stock_quantity": 218 + }, + "customer": { + "name": "Samantha Nolan", + "age": 41, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Cox, Adams and Owens", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "inside", + "category": "environmental", + "price": 168.09, + "stock_quantity": 119 + }, + "customer": { + "name": "Jill Taylor", + "age": 67, + "country": "Jersey" + } + }, + { + "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'", + "company": { + "name": "Payne-Soto", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "station", + "category": "against", + "price": 847.01, + "stock_quantity": 485 + }, + "customer": { + "name": "Leslie Powell", + "age": 70, + "country": "Mexico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Estrada-Stewart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Estrada-Stewart", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "research", + "category": "eat", + "price": 322.25, + "stock_quantity": 486 + }, + "customer": { + "name": "Wyatt Smith", + "age": 44, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Murray Ltd", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "talk", + "category": "usually", + "price": 601.96, + "stock_quantity": 177 + }, + "customer": { + "name": "Julie Williams", + "age": 64, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Powell PLC", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "light", + "category": "change", + "price": 447.93, + "stock_quantity": 212 + }, + "customer": { + "name": "Justin Peterson", + "age": 42, + "country": "Germany" + } + }, + { + "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'", + "company": { + "name": "Leonard-Molina", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "hope", + "category": "focus", + "price": 189.12, + "stock_quantity": 862 + }, + "customer": { + "name": "Sarah Martinez", + "age": 69, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Mclaughlin-Shelton", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "yet", + "category": "star", + "price": 261.18, + "stock_quantity": 622 + }, + "customer": { + "name": "Robert Kemp", + "age": 51, + "country": "Palestinian Territory" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Lowery-Smith for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lowery-Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lowery-Smith", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "oil", + "category": "even", + "price": 164.77, + "stock_quantity": 360 + }, + "customer": { + "name": "Lori Garcia", + "age": 33, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Michael PLC", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "student", + "category": "fact", + "price": 273.89, + "stock_quantity": 971 + }, + "customer": { + "name": "Eric Robinson", + "age": 47, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Woods Inc", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "artist", + "category": "citizen", + "price": 301.72, + "stock_quantity": 970 + }, + "customer": { + "name": "Sandra Silva", + "age": 66, + "country": "Romania" + } + }, + { + "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'", + "company": { + "name": "Cox-Walton", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "consumer", + "category": "speak", + "price": 371.66, + "stock_quantity": 17 + }, + "customer": { + "name": "Mark Williamson", + "age": 38, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Alexander and Sons", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "long", + "category": "ground", + "price": 41.18, + "stock_quantity": 245 + }, + "customer": { + "name": "Matthew Garcia", + "age": 21, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Schmidt, May and Davis", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "ok", + "category": "Republican", + "price": 954.1, + "stock_quantity": 497 + }, + "customer": { + "name": "Melissa Hall", + "age": 79, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Ayers-Tucker", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "your", + "category": "agency", + "price": 515.83, + "stock_quantity": 89 + }, + "customer": { + "name": "Kaitlyn Allen", + "age": 70, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'West, Evans and Williams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "West, Evans and Williams", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "everything", + "category": "time", + "price": 908.63, + "stock_quantity": 48 + }, + "customer": { + "name": "Edgar Brown", + "age": 37, + "country": "French Southern Territories" + } + }, + { + "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'", + "company": { + "name": "Allen Ltd", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "me", + "category": "in", + "price": 906.3, + "stock_quantity": 73 + }, + "customer": { + "name": "Justin Brown", + "age": 22, + "country": "Ethiopia" + } + }, + { + "natural_query": "What is the total quantity of all products for Landry-Owen?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Landry-Owen'", + "company": { + "name": "Landry-Owen", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "against", + "category": "check", + "price": 733.25, + "stock_quantity": 747 + }, + "customer": { + "name": "Amanda Wong", + "age": 19, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Levy-Blanchard", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "pattern", + "category": "Congress", + "price": 870.86, + "stock_quantity": 477 + }, + "customer": { + "name": "Dana Rodriguez", + "age": 38, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Roberts Inc", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "maintain", + "category": "start", + "price": 518.06, + "stock_quantity": 880 + }, + "customer": { + "name": "Max Bailey", + "age": 44, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Walker and Sons", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "yeah", + "category": "field", + "price": 992.52, + "stock_quantity": 932 + }, + "customer": { + "name": "Justin Silva", + "age": 35, + "country": "Solomon Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Daugherty, Roy and Oliver'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Daugherty, Roy and Oliver", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "race", + "category": "number", + "price": 493.53, + "stock_quantity": 654 + }, + "customer": { + "name": "Timothy Guzman", + "age": 75, + "country": "Cape Verde" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carr Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carr Inc", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "avoid", + "category": "movement", + "price": 933.93, + "stock_quantity": 408 + }, + "customer": { + "name": "Megan Wiggins", + "age": 55, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Gray, Ferguson and Farrell", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "person", + "category": "those", + "price": 468.74, + "stock_quantity": 267 + }, + "customer": { + "name": "Chelsea West", + "age": 27, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Fletcher Inc", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "interview", + "category": "condition", + "price": 675.8, + "stock_quantity": 895 + }, + "customer": { + "name": "Wendy Barnes", + "age": 57, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Smith-Smith", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "open", + "category": "land", + "price": 398.61, + "stock_quantity": 911 + }, + "customer": { + "name": "John Becker", + "age": 39, + "country": "Lesotho" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cervantes-Vazquez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cervantes-Vazquez", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "up", + "category": "thing", + "price": 646.95, + "stock_quantity": 634 + }, + "customer": { + "name": "Laurie King", + "age": 26, + "country": "Bulgaria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sheppard and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sheppard and Sons", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "floor", + "category": "surface", + "price": 349.02, + "stock_quantity": 595 + }, + "customer": { + "name": "Kenneth Brown", + "age": 19, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Duncan PLC", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "organization", + "category": "join", + "price": 842.47, + "stock_quantity": 78 + }, + "customer": { + "name": "James Sosa", + "age": 67, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Reynolds-Walker", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "exist", + "category": "book", + "price": 91.38, + "stock_quantity": 471 + }, + "customer": { + "name": "Samuel Adams", + "age": 39, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Moore Inc", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "data", + "category": "add", + "price": 622.3, + "stock_quantity": 941 + }, + "customer": { + "name": "Belinda George", + "age": 80, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Frederick, Johnson and Davis", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "laugh", + "category": "Congress", + "price": 196.17, + "stock_quantity": 499 + }, + "customer": { + "name": "Daniel Rodgers", + "age": 34, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Davidson-Wright", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "any", + "category": "factor", + "price": 284.73, + "stock_quantity": 620 + }, + "customer": { + "name": "Mr. William Mendez", + "age": 30, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "Pearson and Sons", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "structure", + "category": "against", + "price": 920.41, + "stock_quantity": 975 + }, + "customer": { + "name": "Christopher Ellis", + "age": 29, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Knight and Sons", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "method", + "category": "provide", + "price": 864.61, + "stock_quantity": 20 + }, + "customer": { + "name": "Nicole Young", + "age": 41, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Newman PLC", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "expect", + "category": "environment", + "price": 310.38, + "stock_quantity": 896 + }, + "customer": { + "name": "Brandon Taylor", + "age": 49, + "country": "Senegal" + } + }, + { + "natural_query": "What are the top 4 products by orders for Moran, Smith and Larson last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Moran, Smith and Larson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4", + "company": { + "name": "Moran, Smith and Larson", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "argue", + "category": "lawyer", + "price": 966.48, + "stock_quantity": 819 + }, + "customer": { + "name": "David Bishop", + "age": 42, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Sanchez, Byrd and Wilson", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "marriage", + "category": "those", + "price": 575.71, + "stock_quantity": 697 + }, + "customer": { + "name": "Rebecca Riley", + "age": 65, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Cunningham-Davis", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "body", + "category": "then", + "price": 251.47, + "stock_quantity": 466 + }, + "customer": { + "name": "Sandra Edwards", + "age": 63, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Trujillo-Blackburn", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "should", + "category": "road", + "price": 962.24, + "stock_quantity": 762 + }, + "customer": { + "name": "Courtney Gonzalez", + "age": 37, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Shaffer Ltd", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "water", + "category": "prove", + "price": 794.87, + "stock_quantity": 420 + }, + "customer": { + "name": "Aaron Martinez", + "age": 21, + "country": "Montserrat" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Osborne, Powers and Dyer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Osborne, Powers and Dyer", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "information", + "category": "indicate", + "price": 951.16, + "stock_quantity": 186 + }, + "customer": { + "name": "Jerry Moore", + "age": 34, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Mcdowell, Williams and Dawson", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "learn", + "category": "sometimes", + "price": 145.96, + "stock_quantity": 129 + }, + "customer": { + "name": "Jacqueline Anderson", + "age": 57, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Lamb-Adams", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "role", + "category": "method", + "price": 891.17, + "stock_quantity": 401 + }, + "customer": { + "name": "Nicole Brooks", + "age": 55, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Bailey and Sons", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "suddenly", + "category": "hand", + "price": 845.89, + "stock_quantity": 191 + }, + "customer": { + "name": "Melissa Le", + "age": 62, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Waters, Weber and Robinson", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "experience", + "category": "word", + "price": 702.93, + "stock_quantity": 698 + }, + "customer": { + "name": "Sheila Mathews", + "age": 41, + "country": "Comoros" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carter, Nelson and Parker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carter, Nelson and Parker", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "true", + "category": "deep", + "price": 764.55, + "stock_quantity": 768 + }, + "customer": { + "name": "Tammy Flores", + "age": 48, + "country": "Poland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sanders PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sanders PLC", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "even", + "category": "political", + "price": 163.25, + "stock_quantity": 706 + }, + "customer": { + "name": "Michael Odom", + "age": 22, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Lee, Anderson and Moreno", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "couple", + "category": "table", + "price": 683.92, + "stock_quantity": 109 + }, + "customer": { + "name": "Ricky Lopez", + "age": 48, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Perry Inc", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "movie", + "category": "energy", + "price": 271.21, + "stock_quantity": 546 + }, + "customer": { + "name": "Justin James", + "age": 53, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Morse, Fox and Rose", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "trouble", + "category": "painting", + "price": 422.88, + "stock_quantity": 244 + }, + "customer": { + "name": "Laurie Roberts", + "age": 78, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Frank LLC", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "enjoy", + "category": "research", + "price": 769.21, + "stock_quantity": 635 + }, + "customer": { + "name": "John Frey", + "age": 75, + "country": "Bahrain" + } + }, + { + "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'", + "company": { + "name": "Vaughn PLC", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "year", + "category": "skin", + "price": 543.56, + "stock_quantity": 317 + }, + "customer": { + "name": "Aaron Phillips", + "age": 27, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Hawkins-Rodriguez", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "none", + "category": "network", + "price": 431.85, + "stock_quantity": 344 + }, + "customer": { + "name": "Ashley Jones", + "age": 18, + "country": "India" + } + }, + { + "natural_query": "List all customers and their total order value for Ramirez-Smith.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Ramirez-Smith' GROUP BY c.customer_id", + "company": { + "name": "Ramirez-Smith", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "team", + "category": "foreign", + "price": 680.76, + "stock_quantity": 270 + }, + "customer": { + "name": "Jamie Reed", + "age": 48, + "country": "San Marino" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Knight, Brown and Warren'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Knight, Brown and Warren", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "worry", + "category": "range", + "price": 103.3, + "stock_quantity": 70 + }, + "customer": { + "name": "Heidi Boyd", + "age": 21, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Mcclure Inc", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "ground", + "category": "wish", + "price": 499.22, + "stock_quantity": 269 + }, + "customer": { + "name": "Amber Henry", + "age": 70, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harrison, Elliott and Hardy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harrison, Elliott and Hardy", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "others", + "category": "hit", + "price": 62.17, + "stock_quantity": 294 + }, + "customer": { + "name": "Renee Singh", + "age": 22, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Walter-Jones", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "accept", + "category": "present", + "price": 259.33, + "stock_quantity": 703 + }, + "customer": { + "name": "Kelly Berg", + "age": 27, + "country": "Zambia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Greene-Macias'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Greene-Macias", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "stay", + "category": "cold", + "price": 12.17, + "stock_quantity": 867 + }, + "customer": { + "name": "Molly Edwards", + "age": 59, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Avila, Gray and Smith", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "education", + "category": "window", + "price": 87.33, + "stock_quantity": 461 + }, + "customer": { + "name": "Steve Ruiz", + "age": 24, + "country": "Costa Rica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson PLC", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "color", + "category": "suddenly", + "price": 857.43, + "stock_quantity": 768 + }, + "customer": { + "name": "Julie Bell", + "age": 67, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "list", + "category": "likely", + "price": 170.84, + "stock_quantity": 774 + }, + "customer": { + "name": "Brian Smith", + "age": 41, + "country": "French Guiana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Strickland, Duncan and Strong'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Strickland, Duncan and Strong", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "size", + "category": "think", + "price": 672.59, + "stock_quantity": 773 + }, + "customer": { + "name": "Angela Hooper", + "age": 71, + "country": "Palau" + } + }, + { + "natural_query": "List all customers and their total order value for Wu Group.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Wu Group' GROUP BY c.customer_id", + "company": { + "name": "Wu Group", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "way", + "category": "care", + "price": 288.56, + "stock_quantity": 259 + }, + "customer": { + "name": "Carl Ruiz", + "age": 57, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Alvarez-Mendoza", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "teacher", + "category": "only", + "price": 515.54, + "stock_quantity": 283 + }, + "customer": { + "name": "Michael Mcguire", + "age": 71, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Copeland, Barton and Larson", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "realize", + "category": "list", + "price": 813.45, + "stock_quantity": 614 + }, + "customer": { + "name": "Shelly Jackson", + "age": 22, + "country": "Kuwait" + } + }, + { + "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'", + "company": { + "name": "Ward, Howard and Rivas", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "itself", + "category": "Congress", + "price": 82.46, + "stock_quantity": 554 + }, + "customer": { + "name": "Miranda Hubbard DDS", + "age": 61, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reid-Hahn'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reid-Hahn", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "point", + "category": "certainly", + "price": 262.26, + "stock_quantity": 876 + }, + "customer": { + "name": "Joel Moody", + "age": 36, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Morton-Bishop", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "like", + "category": "wide", + "price": 169.83, + "stock_quantity": 198 + }, + "customer": { + "name": "Ann Wilson", + "age": 56, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Liu-Benitez", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "theory", + "category": "white", + "price": 779.62, + "stock_quantity": 65 + }, + "customer": { + "name": "Brenda Burgess", + "age": 42, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Douglas-Evans", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "cover", + "category": "general", + "price": 624.59, + "stock_quantity": 938 + }, + "customer": { + "name": "Kathy Wood", + "age": 27, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Bowman, Vincent and Allen", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "huge", + "category": "argue", + "price": 162.74, + "stock_quantity": 962 + }, + "customer": { + "name": "Sean Davis", + "age": 24, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Harper PLC", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "section", + "category": "task", + "price": 48.99, + "stock_quantity": 50 + }, + "customer": { + "name": "Natalie Rowland", + "age": 38, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Lewis LLC", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "stay", + "category": "far", + "price": 571.63, + "stock_quantity": 750 + }, + "customer": { + "name": "Mr. Gary Gomez", + "age": 28, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Cain-Bailey", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "agreement", + "category": "American", + "price": 65.27, + "stock_quantity": 898 + }, + "customer": { + "name": "Matthew Mccarthy", + "age": 39, + "country": "Wallis and Futuna" + } + }, + { + "natural_query": "List all customers and their total order value for Ochoa and Sons.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Ochoa and Sons' GROUP BY c.customer_id", + "company": { + "name": "Ochoa and Sons", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "herself", + "category": "central", + "price": 436.0, + "stock_quantity": 499 + }, + "customer": { + "name": "Michael Anderson MD", + "age": 37, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Lam-Jones", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "hand", + "category": "fact", + "price": 103.34, + "stock_quantity": 650 + }, + "customer": { + "name": "Sally Clay", + "age": 60, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Romero-Mcdonald", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "think", + "category": "east", + "price": 396.98, + "stock_quantity": 949 + }, + "customer": { + "name": "Laura Young", + "age": 35, + "country": "South Africa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stevens-Baker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stevens-Baker", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "popular", + "category": "skill", + "price": 631.69, + "stock_quantity": 39 + }, + "customer": { + "name": "Jerry Sanders", + "age": 21, + "country": "Serbia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis and Sons", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "represent", + "category": "final", + "price": 677.17, + "stock_quantity": 35 + }, + "customer": { + "name": "Travis Clarke", + "age": 30, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Tate Inc", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "those", + "category": "clear", + "price": 426.36, + "stock_quantity": 846 + }, + "customer": { + "name": "Mariah Richards", + "age": 31, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Contreras, Carroll and Knox", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "finish", + "category": "strong", + "price": 263.55, + "stock_quantity": 701 + }, + "customer": { + "name": "Ryan Freeman", + "age": 55, + "country": "Madagascar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown, Norris and Mckenzie'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown, Norris and Mckenzie", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "blood", + "category": "rock", + "price": 772.31, + "stock_quantity": 259 + }, + "customer": { + "name": "Theresa Chung", + "age": 42, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Gardner-Campbell", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "relate", + "category": "rule", + "price": 336.07, + "stock_quantity": 162 + }, + "customer": { + "name": "Erica Conrad", + "age": 33, + "country": "Moldova" + } + }, + { + "natural_query": "List all customers and their total order value for Sandoval, Bennett and Hall.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Sandoval, Bennett and Hall' GROUP BY c.customer_id", + "company": { + "name": "Sandoval, Bennett and Hall", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "feel", + "category": "project", + "price": 319.98, + "stock_quantity": 653 + }, + "customer": { + "name": "Rebekah Long", + "age": 59, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "King-King", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "wrong", + "category": "sister", + "price": 749.21, + "stock_quantity": 430 + }, + "customer": { + "name": "Michael Evans", + "age": 56, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Roberson-Dixon", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "whole", + "category": "trial", + "price": 847.35, + "stock_quantity": 71 + }, + "customer": { + "name": "John Juarez MD", + "age": 29, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Hunt, Richards and Palmer", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "more", + "category": "training", + "price": 874.16, + "stock_quantity": 268 + }, + "customer": { + "name": "Michael Collier", + "age": 59, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Gilbert, Schmidt and Reynolds", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "bag", + "category": "through", + "price": 636.58, + "stock_quantity": 610 + }, + "customer": { + "name": "Charles Brown", + "age": 28, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Spencer Inc", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "strong", + "category": "international", + "price": 326.62, + "stock_quantity": 949 + }, + "customer": { + "name": "Jennifer Payne", + "age": 67, + "country": "Mauritania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Preston-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Preston-Johnson", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "produce", + "category": "involve", + "price": 953.65, + "stock_quantity": 14 + }, + "customer": { + "name": "Heidi Wilson", + "age": 42, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Coleman-Hinton", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "world", + "category": "speak", + "price": 462.85, + "stock_quantity": 122 + }, + "customer": { + "name": "Angela Lee", + "age": 80, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Johns PLC", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "tonight", + "category": "letter", + "price": 189.76, + "stock_quantity": 813 + }, + "customer": { + "name": "Amber Decker", + "age": 37, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Carlson Inc", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "investment", + "category": "condition", + "price": 486.64, + "stock_quantity": 346 + }, + "customer": { + "name": "Patricia Serrano", + "age": 65, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Goodwin, Long and Ortega", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "woman", + "category": "mission", + "price": 750.65, + "stock_quantity": 759 + }, + "customer": { + "name": "Donna Bell", + "age": 80, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Harris Inc", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "system", + "category": "coach", + "price": 515.67, + "stock_quantity": 318 + }, + "customer": { + "name": "Michelle Reid", + "age": 23, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Wade-Brown", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "often", + "category": "traditional", + "price": 901.85, + "stock_quantity": 750 + }, + "customer": { + "name": "Dr. Troy Avery", + "age": 58, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "oil", + "category": "life", + "price": 306.74, + "stock_quantity": 269 + }, + "customer": { + "name": "Kimberly Richardson", + "age": 68, + "country": "Mauritius" + } + }, + { + "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'", + "company": { + "name": "Burton-Stevens", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "guess", + "category": "imagine", + "price": 645.12, + "stock_quantity": 535 + }, + "customer": { + "name": "Jodi Murray", + "age": 56, + "country": "Kazakhstan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reese-Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reese-Jones", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "scientist", + "category": "fire", + "price": 669.37, + "stock_quantity": 74 + }, + "customer": { + "name": "Jennifer Allen", + "age": 44, + "country": "Barbados" + } + }, + { + "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'", + "company": { + "name": "Hunt PLC", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "somebody", + "category": "mention", + "price": 947.85, + "stock_quantity": 104 + }, + "customer": { + "name": "John Butler", + "age": 74, + "country": "Belgium" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Robinson Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Robinson Group", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "run", + "category": "prevent", + "price": 721.26, + "stock_quantity": 864 + }, + "customer": { + "name": "Jonathan Miller", + "age": 32, + "country": "Luxembourg" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kim, Williams and Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kim, Williams and Miller", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "try", + "category": "happy", + "price": 854.56, + "stock_quantity": 984 + }, + "customer": { + "name": "James Dyer", + "age": 39, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Thomas-Baker", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "maintain", + "category": "tax", + "price": 99.18, + "stock_quantity": 151 + }, + "customer": { + "name": "Jerry Rodriguez", + "age": 47, + "country": "Bulgaria" + } + }, + { + "natural_query": "What are the top 8 products by revenue for Dyer LLC this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Dyer LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8", + "company": { + "name": "Dyer LLC", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "so", + "category": "city", + "price": 24.65, + "stock_quantity": 662 + }, + "customer": { + "name": "Tara Williams", + "age": 42, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Johns, Sanford and Young", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "could", + "category": "employee", + "price": 447.43, + "stock_quantity": 305 + }, + "customer": { + "name": "Denise Turner", + "age": 74, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Garcia, Ware and Howard", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "note", + "category": "ground", + "price": 346.82, + "stock_quantity": 233 + }, + "customer": { + "name": "Tina Paul", + "age": 23, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Williams-Lawrence", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "professional", + "category": "green", + "price": 893.86, + "stock_quantity": 925 + }, + "customer": { + "name": "Norma Hatfield", + "age": 26, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Villarreal Ltd", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "worry", + "category": "life", + "price": 63.09, + "stock_quantity": 401 + }, + "customer": { + "name": "Katelyn Jennings", + "age": 68, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Patel, Sanchez and Brown", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "city", + "category": "attack", + "price": 531.55, + "stock_quantity": 12 + }, + "customer": { + "name": "George Perry", + "age": 80, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Knapp Inc", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "guy", + "category": "station", + "price": 724.58, + "stock_quantity": 488 + }, + "customer": { + "name": "Jeremy Hooper", + "age": 29, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Miller-Gibbs", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "ball", + "category": "test", + "price": 85.54, + "stock_quantity": 93 + }, + "customer": { + "name": "Lisa Burns", + "age": 18, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Thompson-Scott", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "concern", + "category": "prepare", + "price": 62.89, + "stock_quantity": 356 + }, + "customer": { + "name": "Wendy Thompson", + "age": 56, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Gordon, Thomas and Jenkins", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "over", + "category": "let", + "price": 465.76, + "stock_quantity": 329 + }, + "customer": { + "name": "Hannah Miller", + "age": 64, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Pope, Coleman and Blake", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "relate", + "category": "work", + "price": 406.83, + "stock_quantity": 836 + }, + "customer": { + "name": "Lisa Flynn", + "age": 35, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Evans Inc", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "go", + "category": "size", + "price": 644.43, + "stock_quantity": 525 + }, + "customer": { + "name": "Amanda Wallace", + "age": 79, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Price-Parks", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "number", + "category": "seat", + "price": 836.74, + "stock_quantity": 401 + }, + "customer": { + "name": "Johnathan Skinner", + "age": 48, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Jones, Scott and Estes", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "military", + "category": "mention", + "price": 798.75, + "stock_quantity": 528 + }, + "customer": { + "name": "Jordan Miller", + "age": 51, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Davis and Sons", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "program", + "category": "amount", + "price": 419.94, + "stock_quantity": 517 + }, + "customer": { + "name": "Samuel Hicks", + "age": 28, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Sullivan-Hoffman", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "walk", + "category": "baby", + "price": 978.87, + "stock_quantity": 397 + }, + "customer": { + "name": "Trevor Marquez", + "age": 55, + "country": "United Kingdom" + } + }, + { + "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'", + "company": { + "name": "Cunningham-Martinez", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "social", + "category": "smile", + "price": 282.0, + "stock_quantity": 321 + }, + "customer": { + "name": "Krista Collier", + "age": 20, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Aguilar Inc", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "step", + "category": "war", + "price": 877.8, + "stock_quantity": 696 + }, + "customer": { + "name": "Scott Reed", + "age": 42, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Davies, Russell and Ramirez", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "the", + "category": "environment", + "price": 801.08, + "stock_quantity": 636 + }, + "customer": { + "name": "Melissa Smith", + "age": 61, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Cunningham, Valenzuela and Morgan", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "center", + "category": "sing", + "price": 393.24, + "stock_quantity": 749 + }, + "customer": { + "name": "Rebekah Hines", + "age": 37, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Whitney, Wright and Anderson", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "minute", + "category": "education", + "price": 476.79, + "stock_quantity": 449 + }, + "customer": { + "name": "Charles Turner", + "age": 35, + "country": "Belarus" + } + }, + { + "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'", + "company": { + "name": "Mendez, Brown and Dean", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "daughter", + "category": "will", + "price": 503.29, + "stock_quantity": 944 + }, + "customer": { + "name": "Jennifer Norman", + "age": 65, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Franklin, Davis and Boyle", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "somebody", + "category": "deal", + "price": 303.55, + "stock_quantity": 215 + }, + "customer": { + "name": "Brendan Vang", + "age": 73, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Bell, Santana and Walker", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "science", + "category": "food", + "price": 487.6, + "stock_quantity": 139 + }, + "customer": { + "name": "Jill Henry", + "age": 29, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Jackson, Collins and Yang", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "around", + "category": "until", + "price": 140.73, + "stock_quantity": 625 + }, + "customer": { + "name": "Yvette Williams", + "age": 71, + "country": "Indonesia" + } + }, + { + "natural_query": "What are the top 4 products by sales for Dean Group this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dean Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4", + "company": { + "name": "Dean Group", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "ten", + "category": "value", + "price": 688.71, + "stock_quantity": 542 + }, + "customer": { + "name": "Timothy Lopez", + "age": 31, + "country": "Martinique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown, Bauer and Gordon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown, Bauer and Gordon", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "test", + "category": "ball", + "price": 179.04, + "stock_quantity": 531 + }, + "customer": { + "name": "Mr. Joshua Hamilton", + "age": 36, + "country": "Bulgaria" + } + }, + { + "natural_query": "What are the top 7 products by orders for Myers and Sons last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Myers and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7", + "company": { + "name": "Myers and Sons", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "performance", + "category": "walk", + "price": 355.05, + "stock_quantity": 504 + }, + "customer": { + "name": "Dawn Wiggins MD", + "age": 22, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Johnston, Wilcox and Preston", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "consumer", + "category": "threat", + "price": 787.1, + "stock_quantity": 292 + }, + "customer": { + "name": "Christina Armstrong", + "age": 48, + "country": "Malaysia" + } + }, + { + "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'", + "company": { + "name": "Caldwell Inc", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "computer", + "category": "once", + "price": 595.61, + "stock_quantity": 206 + }, + "customer": { + "name": "Robert Waller", + "age": 60, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Martin, Stafford and Erickson", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "person", + "category": "themselves", + "price": 976.26, + "stock_quantity": 410 + }, + "customer": { + "name": "Sarah Tran", + "age": 69, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Wright Ltd", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "word", + "category": "product", + "price": 506.22, + "stock_quantity": 732 + }, + "customer": { + "name": "Brittany Vasquez", + "age": 43, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Martin Ltd", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "strong", + "category": "evening", + "price": 787.14, + "stock_quantity": 870 + }, + "customer": { + "name": "Richard Chen", + "age": 75, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Graham LLC", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "green", + "category": "bag", + "price": 533.33, + "stock_quantity": 982 + }, + "customer": { + "name": "Kayla Blanchard", + "age": 33, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Holt Group", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "available", + "category": "require", + "price": 68.56, + "stock_quantity": 798 + }, + "customer": { + "name": "John Robinson", + "age": 48, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Burns-Nguyen", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "store", + "category": "alone", + "price": 197.3, + "stock_quantity": 360 + }, + "customer": { + "name": "Danielle Vasquez", + "age": 39, + "country": "Armenia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Flores-Mccoy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Flores-Mccoy", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "my", + "category": "hour", + "price": 610.79, + "stock_quantity": 325 + }, + "customer": { + "name": "Donna Meyer", + "age": 51, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Brown, Clark and Munoz", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "gun", + "category": "leg", + "price": 483.92, + "stock_quantity": 870 + }, + "customer": { + "name": "Carl Aguilar", + "age": 30, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Alexander Inc", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "remain", + "category": "whole", + "price": 50.03, + "stock_quantity": 355 + }, + "customer": { + "name": "Nathaniel Hart", + "age": 61, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Ramos-Underwood", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "grow", + "category": "lose", + "price": 171.33, + "stock_quantity": 138 + }, + "customer": { + "name": "Michael Lopez", + "age": 54, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Rivera, Charles and Ruiz", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "possible", + "category": "fear", + "price": 826.81, + "stock_quantity": 316 + }, + "customer": { + "name": "Christopher Hughes", + "age": 63, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Baker-Simmons", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "go", + "category": "PM", + "price": 615.75, + "stock_quantity": 275 + }, + "customer": { + "name": "Stephen Salazar", + "age": 72, + "country": "Jordan" + } + }, + { + "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'", + "company": { + "name": "Juarez LLC", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "peace", + "category": "activity", + "price": 52.47, + "stock_quantity": 706 + }, + "customer": { + "name": "Michael Choi", + "age": 62, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Keller-Herring", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "wife", + "category": "western", + "price": 888.58, + "stock_quantity": 158 + }, + "customer": { + "name": "Russell Singleton", + "age": 41, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Bailey PLC", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "look", + "category": "course", + "price": 996.97, + "stock_quantity": 735 + }, + "customer": { + "name": "Sarah Schmitt", + "age": 19, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Faulkner, Smith and Aguirre", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "TV", + "category": "film", + "price": 548.62, + "stock_quantity": 678 + }, + "customer": { + "name": "Harold Flores", + "age": 38, + "country": "Germany" + } + }, + { + "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'", + "company": { + "name": "Anderson Ltd", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "election", + "category": "contain", + "price": 261.23, + "stock_quantity": 740 + }, + "customer": { + "name": "David Robertson", + "age": 52, + "country": "Madagascar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson, Graham and Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson, Graham and Jones", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "manager", + "category": "thus", + "price": 285.65, + "stock_quantity": 906 + }, + "customer": { + "name": "Lisa Walters", + "age": 58, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Mathews and Sons", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "page", + "category": "about", + "price": 83.12, + "stock_quantity": 930 + }, + "customer": { + "name": "Mark Kent", + "age": 19, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Martinez PLC", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "without", + "category": "of", + "price": 608.59, + "stock_quantity": 8 + }, + "customer": { + "name": "Mark Key", + "age": 69, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Lane Group", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "check", + "category": "as", + "price": 438.87, + "stock_quantity": 187 + }, + "customer": { + "name": "Michelle Walters", + "age": 62, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Martin Inc", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "health", + "category": "couple", + "price": 295.87, + "stock_quantity": 690 + }, + "customer": { + "name": "William Valentine", + "age": 40, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Simpson, Adams and Lucas", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "buy", + "category": "mean", + "price": 128.15, + "stock_quantity": 560 + }, + "customer": { + "name": "Kendra Dean", + "age": 38, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Atkins LLC", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "many", + "category": "wide", + "price": 287.97, + "stock_quantity": 86 + }, + "customer": { + "name": "Jeremy Jennings", + "age": 28, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Pratt-Thomas", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "fear", + "category": "begin", + "price": 742.27, + "stock_quantity": 54 + }, + "customer": { + "name": "Melody Taylor", + "age": 41, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Green-Morris", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "commercial", + "category": "physical", + "price": 645.16, + "stock_quantity": 939 + }, + "customer": { + "name": "Javier Ingram", + "age": 77, + "country": "Belarus" + } + }, + { + "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'", + "company": { + "name": "Waters-Bass", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "low", + "category": "forget", + "price": 870.44, + "stock_quantity": 39 + }, + "customer": { + "name": "Tina Schwartz", + "age": 40, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Brown, Johnson and Le", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "evidence", + "category": "surface", + "price": 221.57, + "stock_quantity": 551 + }, + "customer": { + "name": "Jacqueline Baldwin", + "age": 33, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Russell-Juarez", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "cultural", + "category": "even", + "price": 118.61, + "stock_quantity": 300 + }, + "customer": { + "name": "Mary Harrell DDS", + "age": 23, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Garner, Terry and Tucker", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "second", + "category": "account", + "price": 406.48, + "stock_quantity": 38 + }, + "customer": { + "name": "Miguel Smith", + "age": 20, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Buckley-Johnson", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "about", + "category": "too", + "price": 523.56, + "stock_quantity": 431 + }, + "customer": { + "name": "David Robinson", + "age": 56, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Vaughan, Nelson and Stone", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "assume", + "category": "picture", + "price": 894.03, + "stock_quantity": 495 + }, + "customer": { + "name": "Michael Salazar", + "age": 64, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Prince, Pace and Jones", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "high", + "category": "near", + "price": 357.62, + "stock_quantity": 343 + }, + "customer": { + "name": "Ashley Neal", + "age": 66, + "country": "Cook Islands" + } + }, + { + "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'", + "company": { + "name": "Fernandez Ltd", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "certainly", + "category": "people", + "price": 873.93, + "stock_quantity": 215 + }, + "customer": { + "name": "Sonya Moreno MD", + "age": 22, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Wood Group", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "collection", + "category": "Republican", + "price": 992.42, + "stock_quantity": 692 + }, + "customer": { + "name": "Patricia Patterson", + "age": 18, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Franco, Combs and English", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "action", + "category": "we", + "price": 307.2, + "stock_quantity": 475 + }, + "customer": { + "name": "Carolyn Wilkerson", + "age": 61, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Jackson and Sons", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "movement", + "category": "around", + "price": 976.54, + "stock_quantity": 954 + }, + "customer": { + "name": "Sean Willis", + "age": 30, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Lopez, Williams and Weaver", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "four", + "category": "care", + "price": 533.96, + "stock_quantity": 119 + }, + "customer": { + "name": "Amanda Ramos", + "age": 80, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Martin PLC", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "be", + "category": "that", + "price": 34.46, + "stock_quantity": 468 + }, + "customer": { + "name": "Hannah Moreno", + "age": 41, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Osborn Inc", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "garden", + "category": "actually", + "price": 644.23, + "stock_quantity": 67 + }, + "customer": { + "name": "Eric Smith", + "age": 76, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Hughes-Herman", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "we", + "category": "see", + "price": 423.71, + "stock_quantity": 135 + }, + "customer": { + "name": "Amy Johnson", + "age": 31, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Pennington, Beck and Miller", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "back", + "category": "able", + "price": 77.06, + "stock_quantity": 79 + }, + "customer": { + "name": "Jonathan Aguirre", + "age": 19, + "country": "Netherlands" + } + }, + { + "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'", + "company": { + "name": "Miller PLC", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "fast", + "category": "law", + "price": 311.57, + "stock_quantity": 832 + }, + "customer": { + "name": "Summer Jenkins", + "age": 48, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Hurley, Cook and Rodriguez", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "win", + "category": "life", + "price": 545.44, + "stock_quantity": 742 + }, + "customer": { + "name": "Jared Johnson", + "age": 22, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Tran Ltd", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "year", + "category": "machine", + "price": 109.13, + "stock_quantity": 489 + }, + "customer": { + "name": "Shelly Brooks DDS", + "age": 72, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Larson-Smith", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "leg", + "category": "physical", + "price": 441.51, + "stock_quantity": 282 + }, + "customer": { + "name": "Alexander Mcgee", + "age": 47, + "country": "Austria" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Chandler-Hartman for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chandler-Hartman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chandler-Hartman", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "stay", + "category": "event", + "price": 84.02, + "stock_quantity": 636 + }, + "customer": { + "name": "Christopher Gordon", + "age": 59, + "country": "Brazil" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia, Farley and Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia, Farley and Smith", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "material", + "category": "vote", + "price": 885.75, + "stock_quantity": 510 + }, + "customer": { + "name": "Julie Brown", + "age": 33, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Dean PLC", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "raise", + "category": "relationship", + "price": 483.12, + "stock_quantity": 607 + }, + "customer": { + "name": "Brandon Reed", + "age": 70, + "country": "Mauritania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Li-Jenkins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Li-Jenkins", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "girl", + "category": "thus", + "price": 370.31, + "stock_quantity": 981 + }, + "customer": { + "name": "Matthew Mendoza", + "age": 71, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Moore LLC", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "sense", + "category": "above", + "price": 597.92, + "stock_quantity": 916 + }, + "customer": { + "name": "John Sullivan", + "age": 67, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Baker Inc", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "voice", + "category": "tend", + "price": 842.3, + "stock_quantity": 52 + }, + "customer": { + "name": "Ms. Michelle Mcguire", + "age": 48, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Ellis LLC", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "wonder", + "category": "to", + "price": 778.78, + "stock_quantity": 217 + }, + "customer": { + "name": "Dr. Mark Huffman", + "age": 70, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Stephens Ltd", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "inside", + "category": "country", + "price": 206.97, + "stock_quantity": 705 + }, + "customer": { + "name": "Michael Sanders", + "age": 21, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baker-Jarvis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baker-Jarvis", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "situation", + "category": "ten", + "price": 673.88, + "stock_quantity": 230 + }, + "customer": { + "name": "Amy Garcia", + "age": 56, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Lopez-Rios", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "bar", + "category": "house", + "price": 45.63, + "stock_quantity": 928 + }, + "customer": { + "name": "Jessica Johnson", + "age": 28, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Meyer, Henry and Smith", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "box", + "category": "will", + "price": 50.25, + "stock_quantity": 635 + }, + "customer": { + "name": "Mr. Antonio Mcmillan", + "age": 56, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Baker-Wallace", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "develop", + "category": "statement", + "price": 154.1, + "stock_quantity": 556 + }, + "customer": { + "name": "Chad Coffey", + "age": 57, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Brown, Payne and Andrews", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "crime", + "category": "fact", + "price": 264.43, + "stock_quantity": 655 + }, + "customer": { + "name": "Carol Smith", + "age": 71, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Cardenas LLC", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "just", + "category": "check", + "price": 895.88, + "stock_quantity": 261 + }, + "customer": { + "name": "Jerry Mccoy", + "age": 72, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Henderson and Sons", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "sense", + "category": "upon", + "price": 811.52, + "stock_quantity": 564 + }, + "customer": { + "name": "Aaron Montgomery", + "age": 79, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Sanford-Adams", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "open", + "category": "marriage", + "price": 188.33, + "stock_quantity": 397 + }, + "customer": { + "name": "Sylvia Austin", + "age": 53, + "country": "Madagascar" + } + }, + { + "natural_query": "What are the top 10 products by sales for Garcia-Cain last quarter?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Garcia-Cain' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10", + "company": { + "name": "Garcia-Cain", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "seat", + "category": "particularly", + "price": 342.04, + "stock_quantity": 305 + }, + "customer": { + "name": "Mark Williams", + "age": 73, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Park Inc", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "physical", + "category": "attack", + "price": 465.26, + "stock_quantity": 630 + }, + "customer": { + "name": "Keith Wells", + "age": 46, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Singh, Lowe and Cowan", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "report", + "category": "something", + "price": 464.16, + "stock_quantity": 931 + }, + "customer": { + "name": "Kimberly Porter", + "age": 76, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Love, Robbins and Chaney", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "us", + "category": "art", + "price": 139.57, + "stock_quantity": 251 + }, + "customer": { + "name": "Jennifer Guzman", + "age": 35, + "country": "Dominican Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams-Doyle'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams-Doyle", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "article", + "category": "out", + "price": 453.49, + "stock_quantity": 859 + }, + "customer": { + "name": "Karla Foster", + "age": 66, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Perez Ltd", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "friend", + "category": "brother", + "price": 220.9, + "stock_quantity": 841 + }, + "customer": { + "name": "Miranda Patel", + "age": 39, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Smith, Khan and Tran", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "total", + "category": "beautiful", + "price": 944.1, + "stock_quantity": 935 + }, + "customer": { + "name": "Robert Murphy", + "age": 28, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Thomas PLC", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "skin", + "category": "win", + "price": 199.11, + "stock_quantity": 715 + }, + "customer": { + "name": "Tara Vega", + "age": 77, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Garcia-Flores", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "their", + "category": "if", + "price": 16.48, + "stock_quantity": 363 + }, + "customer": { + "name": "Christopher Kelly", + "age": 64, + "country": "Canada" + } + }, + { + "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'", + "company": { + "name": "Hudson and Sons", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "compare", + "category": "a", + "price": 213.01, + "stock_quantity": 849 + }, + "customer": { + "name": "Robert Shaw", + "age": 75, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Williams-Roberts", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "great", + "category": "care", + "price": 803.99, + "stock_quantity": 533 + }, + "customer": { + "name": "Marcus Rodriguez", + "age": 78, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Sullivan, Young and Moody", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "recent", + "category": "type", + "price": 794.7, + "stock_quantity": 214 + }, + "customer": { + "name": "Eric Lawson", + "age": 72, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cox, Manning and Collins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cox, Manning and Collins", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "we", + "category": "past", + "price": 789.63, + "stock_quantity": 612 + }, + "customer": { + "name": "Alicia White", + "age": 27, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Brown and Sons", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "summer", + "category": "money", + "price": 507.6, + "stock_quantity": 666 + }, + "customer": { + "name": "Martin Werner", + "age": 45, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Ray LLC", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "item", + "category": "network", + "price": 550.16, + "stock_quantity": 393 + }, + "customer": { + "name": "Jaclyn Dawson", + "age": 72, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Nelson-Rodriguez", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "news", + "category": "nearly", + "price": 681.47, + "stock_quantity": 139 + }, + "customer": { + "name": "Linda Edwards", + "age": 45, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Young, Williams and Miller", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "democratic", + "category": "early", + "price": 914.74, + "stock_quantity": 467 + }, + "customer": { + "name": "Linda Cook", + "age": 45, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Jackson-Jones", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "language", + "category": "fly", + "price": 398.29, + "stock_quantity": 705 + }, + "customer": { + "name": "Dr. Bryan Tate Jr.", + "age": 62, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Lin, Ross and Rose", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "ability", + "category": "its", + "price": 836.28, + "stock_quantity": 935 + }, + "customer": { + "name": "Hannah Smith", + "age": 34, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Jensen-Conner", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "best", + "category": "office", + "price": 594.75, + "stock_quantity": 899 + }, + "customer": { + "name": "Anita Watkins", + "age": 48, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Huber, Perez and Rogers", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "long", + "category": "rise", + "price": 963.09, + "stock_quantity": 882 + }, + "customer": { + "name": "Melissa Marquez", + "age": 55, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Davis, Francis and Lopez", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "door", + "category": "hair", + "price": 993.63, + "stock_quantity": 999 + }, + "customer": { + "name": "Christopher Warren", + "age": 31, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Hodge, Morris and Bailey", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "but", + "category": "seek", + "price": 557.74, + "stock_quantity": 968 + }, + "customer": { + "name": "Evan Morales", + "age": 23, + "country": "France" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moore-Barnett'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moore-Barnett", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "often", + "category": "can", + "price": 471.12, + "stock_quantity": 354 + }, + "customer": { + "name": "Lynn Thompson", + "age": 51, + "country": "New Caledonia" + } + }, + { + "natural_query": "List all products of Sanford-Morris ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Sanford-Morris' ORDER BY rating DESC", + "company": { + "name": "Sanford-Morris", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "production", + "category": "I", + "price": 383.3, + "stock_quantity": 910 + }, + "customer": { + "name": "Brittany Nelson", + "age": 57, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Silva-Henderson", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "already", + "category": "food", + "price": 462.47, + "stock_quantity": 345 + }, + "customer": { + "name": "Michael Colon MD", + "age": 74, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Garcia-Barnes", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "risk", + "category": "specific", + "price": 964.11, + "stock_quantity": 830 + }, + "customer": { + "name": "Jennifer Greene", + "age": 38, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Price Group", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "oil", + "category": "reflect", + "price": 83.28, + "stock_quantity": 754 + }, + "customer": { + "name": "Malik Nguyen", + "age": 64, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Pitts-Yoder", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "watch", + "category": "ground", + "price": 395.32, + "stock_quantity": 912 + }, + "customer": { + "name": "Jack Fitzgerald", + "age": 68, + "country": "Tonga" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hayes-Thomas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hayes-Thomas", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "theory", + "category": "machine", + "price": 610.56, + "stock_quantity": 959 + }, + "customer": { + "name": "Lee Small", + "age": 56, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Dunn-Cook", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "meet", + "category": "ball", + "price": 795.21, + "stock_quantity": 876 + }, + "customer": { + "name": "Richard Perez", + "age": 69, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Campos-Young", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "house", + "category": "language", + "price": 438.76, + "stock_quantity": 393 + }, + "customer": { + "name": "Regina Douglas", + "age": 68, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Reid, Morris and Chapman", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "early", + "category": "glass", + "price": 285.48, + "stock_quantity": 522 + }, + "customer": { + "name": "Sabrina Clark", + "age": 22, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Lara, Brown and Olson", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "use", + "category": "successful", + "price": 330.41, + "stock_quantity": 513 + }, + "customer": { + "name": "Daniel Rodriguez", + "age": 52, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Fox, Tyler and Salazar", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "city", + "category": "ahead", + "price": 652.31, + "stock_quantity": 147 + }, + "customer": { + "name": "Holly Moyer", + "age": 75, + "country": "Malawi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez-Becker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez-Becker", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "fly", + "category": "knowledge", + "price": 337.8, + "stock_quantity": 163 + }, + "customer": { + "name": "Edward Andrews", + "age": 41, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Patterson-Jones", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "huge", + "category": "head", + "price": 832.45, + "stock_quantity": 286 + }, + "customer": { + "name": "Kimberly Ryan", + "age": 20, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Lopez Group", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "listen", + "category": "difficult", + "price": 412.96, + "stock_quantity": 728 + }, + "customer": { + "name": "Rachel Jordan", + "age": 61, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Wall-Johnson", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "study", + "category": "commercial", + "price": 124.43, + "stock_quantity": 785 + }, + "customer": { + "name": "Charles Chavez", + "age": 36, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Martinez-Smith", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "fine", + "category": "positive", + "price": 484.68, + "stock_quantity": 354 + }, + "customer": { + "name": "Betty Kim", + "age": 39, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Calderon-David", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "structure", + "category": "rate", + "price": 931.2, + "stock_quantity": 759 + }, + "customer": { + "name": "Bianca Hopkins", + "age": 58, + "country": "Turkmenistan" + } + }, + { + "natural_query": "What are the top 6 products by customers for Carter-Walker this month?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Carter-Walker' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6", + "company": { + "name": "Carter-Walker", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "though", + "category": "teacher", + "price": 831.43, + "stock_quantity": 666 + }, + "customer": { + "name": "Jason Williams", + "age": 24, + "country": "Iraq" + } + }, + { + "natural_query": "How many orders were placed for Harding and Sons between 2024-02-19 and 2024-08-26?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Harding and Sons' AND order_date BETWEEN '2024-02-19' AND '2024-08-26'", + "company": { + "name": "Harding and Sons", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "candidate", + "category": "clear", + "price": 652.34, + "stock_quantity": 680 + }, + "customer": { + "name": "Yvonne Turner", + "age": 30, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Sparks, Jacobson and Ramirez", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "here", + "category": "fish", + "price": 914.48, + "stock_quantity": 362 + }, + "customer": { + "name": "Kristen Rogers", + "age": 28, + "country": "Malta" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Greene LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Greene LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Greene LLC", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "sometimes", + "category": "provide", + "price": 833.59, + "stock_quantity": 141 + }, + "customer": { + "name": "Elizabeth Hunt", + "age": 52, + "country": "Austria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stone, Green and Herrera'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stone, Green and Herrera", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "case", + "category": "itself", + "price": 33.15, + "stock_quantity": 763 + }, + "customer": { + "name": "Sarah Rogers", + "age": 57, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Brown, Love and Duran", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "hour", + "category": "social", + "price": 158.45, + "stock_quantity": 648 + }, + "customer": { + "name": "Nicholas Harvey", + "age": 47, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Long, Miller and Little", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "onto", + "category": "brother", + "price": 403.09, + "stock_quantity": 464 + }, + "customer": { + "name": "Barbara Mclaughlin", + "age": 66, + "country": "Slovenia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Young, Santiago and Bradley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Young, Santiago and Bradley", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "large", + "category": "race", + "price": 387.59, + "stock_quantity": 582 + }, + "customer": { + "name": "Christopher Brown", + "age": 78, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Jones-Bailey", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "national", + "category": "go", + "price": 338.41, + "stock_quantity": 283 + }, + "customer": { + "name": "Anthony Bell", + "age": 61, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Peterson, Davis and Davenport", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "will", + "category": "capital", + "price": 309.04, + "stock_quantity": 865 + }, + "customer": { + "name": "Danielle Rangel", + "age": 53, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Baker-Smith", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "official", + "category": "across", + "price": 382.8, + "stock_quantity": 695 + }, + "customer": { + "name": "Tyler Wiley", + "age": 77, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Davis, Wilkinson and Hooper", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "person", + "category": "understand", + "price": 278.95, + "stock_quantity": 868 + }, + "customer": { + "name": "Jack Lozano", + "age": 67, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Franklin Ltd", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "since", + "category": "stop", + "price": 955.93, + "stock_quantity": 500 + }, + "customer": { + "name": "Mark Hardy", + "age": 42, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Smith, Campos and Gallegos", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "save", + "category": "company", + "price": 760.64, + "stock_quantity": 936 + }, + "customer": { + "name": "Tammy Johnson", + "age": 80, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Powell Group", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "game", + "category": "see", + "price": 25.31, + "stock_quantity": 590 + }, + "customer": { + "name": "Dr. Laura Stewart", + "age": 44, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Robinson, Wilson and Gutierrez", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "form", + "category": "region", + "price": 506.37, + "stock_quantity": 388 + }, + "customer": { + "name": "Victoria Bauer", + "age": 34, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Hopkins, Maldonado and Castillo", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "food", + "category": "several", + "price": 356.4, + "stock_quantity": 335 + }, + "customer": { + "name": "Scott Payne", + "age": 63, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Kaiser-Dixon", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "decide", + "category": "receive", + "price": 329.71, + "stock_quantity": 114 + }, + "customer": { + "name": "Mrs. Catherine King DVM", + "age": 68, + "country": "Guam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ward-Martinez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ward-Martinez", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "enjoy", + "category": "ball", + "price": 843.67, + "stock_quantity": 725 + }, + "customer": { + "name": "Heather Norman", + "age": 67, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Mayo LLC", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "everybody", + "category": "smile", + "price": 88.05, + "stock_quantity": 147 + }, + "customer": { + "name": "Madison Wells", + "age": 25, + "country": "Tuvalu" + } + }, + { + "natural_query": "Show me all products in the sea category with a price over $944.36.", + "sql_query": "SELECT * FROM products WHERE category = 'sea' AND price > 944.36", + "company": { + "name": "Baker-Brooks", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "sister", + "category": "sea", + "price": 944.36, + "stock_quantity": 487 + }, + "customer": { + "name": "Veronica Arnold", + "age": 29, + "country": "Netherlands" + } + }, + { + "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'", + "company": { + "name": "Evans-Holloway", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "meeting", + "category": "model", + "price": 414.7, + "stock_quantity": 92 + }, + "customer": { + "name": "John Schmidt", + "age": 68, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Ruiz, Navarro and Berry", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "today", + "category": "clearly", + "price": 605.33, + "stock_quantity": 123 + }, + "customer": { + "name": "Amy Berry", + "age": 71, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Roman-Lucero", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "mission", + "category": "listen", + "price": 47.37, + "stock_quantity": 487 + }, + "customer": { + "name": "Russell Smith", + "age": 53, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Nelson, Sullivan and Miller", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "work", + "category": "he", + "price": 276.41, + "stock_quantity": 869 + }, + "customer": { + "name": "Allison Harrell", + "age": 18, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Harris PLC", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "mother", + "category": "billion", + "price": 811.33, + "stock_quantity": 246 + }, + "customer": { + "name": "Savannah Smith", + "age": 64, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Clark and Hunter", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "society", + "category": "apply", + "price": 992.81, + "stock_quantity": 651 + }, + "customer": { + "name": "Arthur Macdonald", + "age": 55, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Nguyen, Mercado and Sanchez", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "ready", + "category": "investment", + "price": 424.5, + "stock_quantity": 927 + }, + "customer": { + "name": "Connie Fleming", + "age": 49, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Hogan-Buckley", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "operation", + "category": "notice", + "price": 852.86, + "stock_quantity": 437 + }, + "customer": { + "name": "Anthony Sanchez", + "age": 41, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Ward-Jackson", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "word", + "category": "book", + "price": 888.99, + "stock_quantity": 883 + }, + "customer": { + "name": "Mrs. Lauren Perry DVM", + "age": 30, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Jones LLC", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "modern", + "category": "book", + "price": 547.9, + "stock_quantity": 681 + }, + "customer": { + "name": "Bradley Cummings", + "age": 41, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Murphy-Wong", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "future", + "category": "program", + "price": 137.73, + "stock_quantity": 250 + }, + "customer": { + "name": "Joe Long", + "age": 51, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Thompson Inc", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "today", + "category": "majority", + "price": 663.28, + "stock_quantity": 142 + }, + "customer": { + "name": "Jennifer Thompson", + "age": 28, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Boyd-Duffy", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "young", + "category": "dark", + "price": 842.15, + "stock_quantity": 884 + }, + "customer": { + "name": "Erin Lee", + "age": 29, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Adams-Lane", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "begin", + "category": "sister", + "price": 413.17, + "stock_quantity": 492 + }, + "customer": { + "name": "Patrick Austin", + "age": 59, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Morales-Sparks", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "foot", + "category": "heavy", + "price": 765.64, + "stock_quantity": 725 + }, + "customer": { + "name": "Rachel Marquez", + "age": 63, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Cline, Medina and Fletcher", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "decision", + "category": "relate", + "price": 536.65, + "stock_quantity": 143 + }, + "customer": { + "name": "Joshua Frank", + "age": 44, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Harvey, Benjamin and Thompson", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "real", + "category": "against", + "price": 775.03, + "stock_quantity": 886 + }, + "customer": { + "name": "Ashley Phillips", + "age": 70, + "country": "Korea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martin, Jacobs and Lee'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martin, Jacobs and Lee", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "collection", + "category": "but", + "price": 69.54, + "stock_quantity": 917 + }, + "customer": { + "name": "Eduardo Decker", + "age": 47, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Morrison-Ho", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "decide", + "category": "get", + "price": 747.16, + "stock_quantity": 638 + }, + "customer": { + "name": "Kristen Johnson", + "age": 80, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Nixon, Shaffer and Moore", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "consider", + "category": "design", + "price": 695.59, + "stock_quantity": 509 + }, + "customer": { + "name": "Jade Barnes", + "age": 48, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Nelson and Sons", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "address", + "category": "enjoy", + "price": 874.36, + "stock_quantity": 215 + }, + "customer": { + "name": "Louis Hurley", + "age": 74, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Schmidt, Villa and Jones", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "ten", + "category": "mouth", + "price": 319.28, + "stock_quantity": 223 + }, + "customer": { + "name": "Joshua Andrews", + "age": 53, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Collins Inc", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "interesting", + "category": "still", + "price": 409.98, + "stock_quantity": 265 + }, + "customer": { + "name": "April Bowers", + "age": 58, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Figueroa Group", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "fill", + "category": "weight", + "price": 363.05, + "stock_quantity": 125 + }, + "customer": { + "name": "Ricky Vaughan", + "age": 69, + "country": "Namibia" + } + }, + { + "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'", + "company": { + "name": "Marquez Group", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "product", + "category": "cup", + "price": 454.58, + "stock_quantity": 307 + }, + "customer": { + "name": "Kristen Smith", + "age": 39, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Lopez Ltd", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "commercial", + "category": "let", + "price": 701.33, + "stock_quantity": 600 + }, + "customer": { + "name": "Christopher Foster", + "age": 55, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Rodriguez Group", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "meet", + "category": "own", + "price": 744.47, + "stock_quantity": 326 + }, + "customer": { + "name": "Amanda Gamble", + "age": 49, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Foster, Winters and Wilson", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "star", + "category": "unit", + "price": 589.63, + "stock_quantity": 93 + }, + "customer": { + "name": "Frank Chambers", + "age": 32, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Moore Inc", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "score", + "category": "white", + "price": 552.72, + "stock_quantity": 383 + }, + "customer": { + "name": "Cynthia Smith", + "age": 34, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Klein-Gonzalez", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "action", + "category": "wind", + "price": 818.73, + "stock_quantity": 679 + }, + "customer": { + "name": "Matthew Maxwell", + "age": 80, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Orr-Hawkins", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "beautiful", + "category": "quite", + "price": 520.9, + "stock_quantity": 943 + }, + "customer": { + "name": "Pamela Turner", + "age": 24, + "country": "Nepal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Flores-Washington'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Flores-Washington", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "federal", + "category": "modern", + "price": 711.21, + "stock_quantity": 659 + }, + "customer": { + "name": "Anthony Burke", + "age": 34, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Cole-Ortiz", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "history", + "category": "phone", + "price": 685.42, + "stock_quantity": 101 + }, + "customer": { + "name": "Julie Bryant", + "age": 34, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Lee and Sons", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "collection", + "category": "fight", + "price": 126.85, + "stock_quantity": 388 + }, + "customer": { + "name": "Sandra Holloway", + "age": 77, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sanchez, Wilson and Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sanchez, Wilson and Jones", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "maintain", + "category": "same", + "price": 836.89, + "stock_quantity": 156 + }, + "customer": { + "name": "Stacy Powell", + "age": 77, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Garcia PLC", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "page", + "category": "relate", + "price": 463.73, + "stock_quantity": 522 + }, + "customer": { + "name": "Margaret Gibson", + "age": 23, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Ortiz LLC", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "hundred", + "category": "base", + "price": 410.03, + "stock_quantity": 516 + }, + "customer": { + "name": "Brian Coffey", + "age": 75, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Davis, Le and Hammond", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "wife", + "category": "feel", + "price": 683.33, + "stock_quantity": 923 + }, + "customer": { + "name": "Roger Everett", + "age": 78, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Melton PLC", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "particularly", + "category": "cut", + "price": 939.61, + "stock_quantity": 718 + }, + "customer": { + "name": "Chase Schmidt", + "age": 41, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Beasley, Bender and Parks", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "hear", + "category": "million", + "price": 42.94, + "stock_quantity": 547 + }, + "customer": { + "name": "Mallory Fields", + "age": 29, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Young, Long and Figueroa", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "then", + "category": "into", + "price": 118.05, + "stock_quantity": 864 + }, + "customer": { + "name": "April Smith DDS", + "age": 58, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Ray PLC", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "statement", + "category": "cover", + "price": 898.61, + "stock_quantity": 649 + }, + "customer": { + "name": "Mark Rodriguez", + "age": 43, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Benitez-Stone", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "five", + "category": "garden", + "price": 846.16, + "stock_quantity": 176 + }, + "customer": { + "name": "Kathy Johnson", + "age": 19, + "country": "Christmas Island" + } + }, + { + "natural_query": "How many orders were placed for Farmer, Martin and Johnson between 2023-12-24 and 2024-07-29?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Farmer, Martin and Johnson' AND order_date BETWEEN '2023-12-24' AND '2024-07-29'", + "company": { + "name": "Farmer, Martin and Johnson", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "no", + "category": "put", + "price": 404.14, + "stock_quantity": 285 + }, + "customer": { + "name": "Chris Baxter", + "age": 50, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Welch PLC", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "generation", + "category": "miss", + "price": 431.82, + "stock_quantity": 631 + }, + "customer": { + "name": "Sean Richard", + "age": 38, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Wilcox-Rowe", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "traditional", + "category": "up", + "price": 275.38, + "stock_quantity": 329 + }, + "customer": { + "name": "Bryan Roberts", + "age": 55, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Kirby-Miller", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "actually", + "category": "raise", + "price": 93.59, + "stock_quantity": 633 + }, + "customer": { + "name": "Brandon Patton", + "age": 42, + "country": "Bhutan" + } + }, + { + "natural_query": "Show me all products in the bill category with a price over $186.35.", + "sql_query": "SELECT * FROM products WHERE category = 'bill' AND price > 186.35", + "company": { + "name": "Munoz Inc", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "nearly", + "category": "bill", + "price": 186.35, + "stock_quantity": 714 + }, + "customer": { + "name": "Jean Gonzalez", + "age": 60, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Jackson Inc", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "despite", + "category": "determine", + "price": 635.98, + "stock_quantity": 555 + }, + "customer": { + "name": "Todd Pena", + "age": 62, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Taylor, Garcia and Snyder", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "play", + "category": "image", + "price": 847.8, + "stock_quantity": 811 + }, + "customer": { + "name": "Charles Tanner", + "age": 44, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Cook and Sons", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "include", + "category": "physical", + "price": 124.5, + "stock_quantity": 80 + }, + "customer": { + "name": "Andrew Ferrell", + "age": 20, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Martinez, Moyer and Larson", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "source", + "category": "interest", + "price": 568.23, + "stock_quantity": 576 + }, + "customer": { + "name": "Brenda Mckinney", + "age": 78, + "country": "Kuwait" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stewart, Roberts and Allen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stewart, Roberts and Allen", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "without", + "category": "church", + "price": 507.79, + "stock_quantity": 900 + }, + "customer": { + "name": "Samantha Cole", + "age": 73, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Fitzgerald, Thompson and Hill", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "audience", + "category": "foot", + "price": 324.47, + "stock_quantity": 698 + }, + "customer": { + "name": "Carolyn Ford", + "age": 32, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Taylor-Fischer", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "PM", + "category": "eat", + "price": 845.98, + "stock_quantity": 510 + }, + "customer": { + "name": "Donald Anderson", + "age": 43, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Jackson, Hill and Jackson", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "point", + "category": "soon", + "price": 884.3, + "stock_quantity": 643 + }, + "customer": { + "name": "Thomas Allison", + "age": 42, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Kelly, Byrd and Kennedy", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "room", + "category": "development", + "price": 485.68, + "stock_quantity": 525 + }, + "customer": { + "name": "Brandy Wilson", + "age": 64, + "country": "Central African Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Evans and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Evans and Sons", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "kid", + "category": "ten", + "price": 980.47, + "stock_quantity": 985 + }, + "customer": { + "name": "Erin Clark", + "age": 56, + "country": "Mongolia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Navarro-Morris'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Navarro-Morris", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "man", + "category": "he", + "price": 589.3, + "stock_quantity": 463 + }, + "customer": { + "name": "Paul King", + "age": 62, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Thompson PLC", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "laugh", + "category": "stage", + "price": 186.09, + "stock_quantity": 670 + }, + "customer": { + "name": "Sandra Moore", + "age": 39, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Molina, Smith and Campbell", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "stage", + "category": "third", + "price": 264.44, + "stock_quantity": 652 + }, + "customer": { + "name": "Mr. Benjamin Snyder MD", + "age": 28, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Turner Inc", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "wall", + "category": "science", + "price": 386.25, + "stock_quantity": 701 + }, + "customer": { + "name": "Philip Branch", + "age": 28, + "country": "Chad" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barker Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barker Inc", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "natural", + "category": "minute", + "price": 794.19, + "stock_quantity": 187 + }, + "customer": { + "name": "Steven Hernandez", + "age": 27, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "natural_query": "What is the total profit for each country in Bruce, Harris and Morales?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bruce, Harris and Morales' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Bruce, Harris and Morales", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "father", + "category": "leg", + "price": 929.83, + "stock_quantity": 259 + }, + "customer": { + "name": "Jennifer Ramsey", + "age": 67, + "country": "Cook Islands" + } + }, + { + "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'", + "company": { + "name": "Casey Inc", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "here", + "category": "federal", + "price": 842.86, + "stock_quantity": 828 + }, + "customer": { + "name": "Steven Flores", + "age": 64, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Perez Ltd", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "seem", + "category": "keep", + "price": 642.9, + "stock_quantity": 516 + }, + "customer": { + "name": "Tracy Hood", + "age": 41, + "country": "Cape Verde" + } + }, + { + "natural_query": "How many orders were placed for Davis Group between 2023-10-01 and 2024-09-12?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis Group' AND order_date BETWEEN '2023-10-01' AND '2024-09-12'", + "company": { + "name": "Davis Group", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "most", + "category": "direction", + "price": 402.54, + "stock_quantity": 54 + }, + "customer": { + "name": "Crystal Moyer", + "age": 38, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Banks-Gill", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "call", + "category": "foot", + "price": 774.58, + "stock_quantity": 650 + }, + "customer": { + "name": "Rebecca Strickland", + "age": 57, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Maxwell-Hardy", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "drop", + "category": "shoulder", + "price": 540.21, + "stock_quantity": 452 + }, + "customer": { + "name": "Lauren Michael", + "age": 76, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Morales, Pena and Williams", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "beautiful", + "category": "movie", + "price": 237.41, + "stock_quantity": 761 + }, + "customer": { + "name": "Sara Davidson", + "age": 57, + "country": "Sudan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones PLC", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "mother", + "category": "heart", + "price": 344.55, + "stock_quantity": 745 + }, + "customer": { + "name": "Kimberly Valdez", + "age": 73, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Nelson Group", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "memory", + "category": "organization", + "price": 309.13, + "stock_quantity": 210 + }, + "customer": { + "name": "Christian Vargas", + "age": 34, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Smith, Travis and Perez", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "project", + "category": "PM", + "price": 304.29, + "stock_quantity": 837 + }, + "customer": { + "name": "Zachary Miller", + "age": 55, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Sampson-Parks", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "system", + "category": "area", + "price": 688.65, + "stock_quantity": 988 + }, + "customer": { + "name": "Sheila Matthews", + "age": 46, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Baker, Forbes and Todd", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "floor", + "category": "top", + "price": 585.25, + "stock_quantity": 35 + }, + "customer": { + "name": "Michael Singleton", + "age": 48, + "country": "Somalia" + } + }, + { + "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'", + "company": { + "name": "Bell-Thomas", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "my", + "category": "toward", + "price": 119.57, + "stock_quantity": 65 + }, + "customer": { + "name": "Jeremy Sanchez", + "age": 68, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Morales, Schmidt and Nguyen", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "piece", + "category": "commercial", + "price": 929.76, + "stock_quantity": 788 + }, + "customer": { + "name": "Stephen Mcintosh", + "age": 23, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Boyd Inc", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "statement", + "category": "hear", + "price": 902.22, + "stock_quantity": 817 + }, + "customer": { + "name": "Kimberly Ruiz", + "age": 63, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Davis, Hoffman and Todd", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "case", + "category": "argue", + "price": 590.99, + "stock_quantity": 121 + }, + "customer": { + "name": "Stephen Vasquez", + "age": 23, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Larson, Sanchez and Boyle", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "name", + "category": "person", + "price": 189.69, + "stock_quantity": 0 + }, + "customer": { + "name": "Terry Lee", + "age": 37, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Stark, Perry and Jackson", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "speak", + "category": "nor", + "price": 135.48, + "stock_quantity": 848 + }, + "customer": { + "name": "Benjamin Bowman", + "age": 19, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Prince-Cain", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "role", + "category": "year", + "price": 646.23, + "stock_quantity": 539 + }, + "customer": { + "name": "Curtis Wilson", + "age": 50, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Wang-Donovan", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "serious", + "category": "throw", + "price": 724.02, + "stock_quantity": 95 + }, + "customer": { + "name": "Emily Adams", + "age": 35, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Wilkins-Williams", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "game", + "category": "so", + "price": 552.82, + "stock_quantity": 576 + }, + "customer": { + "name": "Douglas Wilson", + "age": 35, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Thompson-Horton", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "decision", + "category": "power", + "price": 654.52, + "stock_quantity": 24 + }, + "customer": { + "name": "Lee Davis", + "age": 55, + "country": "United Arab Emirates" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rios-Clark'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rios-Clark", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "out", + "category": "history", + "price": 950.28, + "stock_quantity": 783 + }, + "customer": { + "name": "Bradley Lyons", + "age": 21, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Jensen Inc", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "happen", + "category": "no", + "price": 777.89, + "stock_quantity": 426 + }, + "customer": { + "name": "Nancy Novak", + "age": 47, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Rice, Hernandez and Martin", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "those", + "category": "enjoy", + "price": 750.94, + "stock_quantity": 115 + }, + "customer": { + "name": "Jessica Obrien", + "age": 39, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Burton, Clark and Harrell", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "too", + "category": "second", + "price": 304.24, + "stock_quantity": 262 + }, + "customer": { + "name": "Andrew Miller", + "age": 53, + "country": "Japan" + } + }, + { + "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'", + "company": { + "name": "Fisher, Chen and Carrillo", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "enter", + "category": "common", + "price": 969.56, + "stock_quantity": 826 + }, + "customer": { + "name": "Patty Conner", + "age": 62, + "country": "Botswana" + } + }, + { + "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'", + "company": { + "name": "Mullins Inc", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "practice", + "category": "because", + "price": 385.37, + "stock_quantity": 297 + }, + "customer": { + "name": "Marcia Fisher", + "age": 51, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Richards-Lewis", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "without", + "category": "us", + "price": 486.81, + "stock_quantity": 19 + }, + "customer": { + "name": "John Cook", + "age": 26, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Ford, Young and Hawkins", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "theory", + "category": "chance", + "price": 95.29, + "stock_quantity": 472 + }, + "customer": { + "name": "Shelly Boyd", + "age": 67, + "country": "Taiwan" + } + }, + { + "natural_query": "How many orders were placed for Fleming-Silva between 2024-03-04 and 2024-08-24?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fleming-Silva' AND order_date BETWEEN '2024-03-04' AND '2024-08-24'", + "company": { + "name": "Fleming-Silva", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "behavior", + "category": "dream", + "price": 583.74, + "stock_quantity": 166 + }, + "customer": { + "name": "Mr. Jonathan Brooks", + "age": 63, + "country": "Mexico" + } + }, + { + "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'", + "company": { + "name": "Aguirre Inc", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "today", + "category": "energy", + "price": 261.79, + "stock_quantity": 841 + }, + "customer": { + "name": "Jeffrey Smith", + "age": 74, + "country": "Mexico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Burton Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Burton Inc", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "television", + "category": "manage", + "price": 889.51, + "stock_quantity": 266 + }, + "customer": { + "name": "Sandy Anderson", + "age": 35, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "James, Sharp and Bailey", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "surface", + "category": "never", + "price": 493.09, + "stock_quantity": 850 + }, + "customer": { + "name": "Monica Gregory", + "age": 20, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Anderson-Nunez", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "effort", + "category": "share", + "price": 643.8, + "stock_quantity": 708 + }, + "customer": { + "name": "Heather Holmes", + "age": 56, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Marsh Group", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "hospital", + "category": "form", + "price": 522.32, + "stock_quantity": 314 + }, + "customer": { + "name": "Keith Pierce", + "age": 72, + "country": "Norway" + } + }, + { + "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'", + "company": { + "name": "Christensen-Meza", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "list", + "category": "her", + "price": 966.36, + "stock_quantity": 120 + }, + "customer": { + "name": "Amanda Willis", + "age": 69, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Hamilton-Atkinson", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "half", + "category": "truth", + "price": 707.11, + "stock_quantity": 57 + }, + "customer": { + "name": "Tim Kramer", + "age": 73, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Schmidt, Burgess and Hicks", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "maintain", + "category": "land", + "price": 418.22, + "stock_quantity": 596 + }, + "customer": { + "name": "Tony Howard", + "age": 62, + "country": "Lesotho" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mclaughlin PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mclaughlin PLC", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "already", + "category": "pretty", + "price": 860.89, + "stock_quantity": 84 + }, + "customer": { + "name": "Katrina Jones", + "age": 77, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Perez-Cuevas", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "beautiful", + "category": "marriage", + "price": 695.2, + "stock_quantity": 702 + }, + "customer": { + "name": "Michael Reeves", + "age": 33, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Acosta, Patel and Phillips", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "friend", + "category": "notice", + "price": 885.6, + "stock_quantity": 617 + }, + "customer": { + "name": "Jennifer Cain MD", + "age": 64, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Wise-Morgan", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "through", + "category": "protect", + "price": 711.4, + "stock_quantity": 924 + }, + "customer": { + "name": "David Carter", + "age": 68, + "country": "Eritrea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nelson and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nelson and Sons", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "image", + "category": "painting", + "price": 694.88, + "stock_quantity": 610 + }, + "customer": { + "name": "Kelly Potter", + "age": 42, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Scott-Cox", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "clear", + "category": "able", + "price": 602.07, + "stock_quantity": 974 + }, + "customer": { + "name": "Leslie Baker", + "age": 66, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Duncan-Lewis", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "just", + "category": "outside", + "price": 852.87, + "stock_quantity": 384 + }, + "customer": { + "name": "Caleb Mason", + "age": 61, + "country": "Ghana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hill-Robertson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hill-Robertson", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "arm", + "category": "look", + "price": 953.28, + "stock_quantity": 102 + }, + "customer": { + "name": "Jeremy Parker", + "age": 64, + "country": "Palau" + } + }, + { + "natural_query": "Show me all products in the institution category with a price over $100.49.", + "sql_query": "SELECT * FROM products WHERE category = 'institution' AND price > 100.49", + "company": { + "name": "Estes Inc", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "accept", + "category": "institution", + "price": 100.49, + "stock_quantity": 261 + }, + "customer": { + "name": "Katie Smith", + "age": 63, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Morgan, Lawson and Adams", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "each", + "category": "law", + "price": 824.17, + "stock_quantity": 259 + }, + "customer": { + "name": "Tina Edwards", + "age": 60, + "country": "Haiti" + } + }, + { + "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'", + "company": { + "name": "Bishop-Wallace", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "sometimes", + "category": "determine", + "price": 429.08, + "stock_quantity": 359 + }, + "customer": { + "name": "Randy Griffin", + "age": 77, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "natural_query": "List all customers and their total order value for Vaughn Inc.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Vaughn Inc' GROUP BY c.customer_id", + "company": { + "name": "Vaughn Inc", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "little", + "category": "late", + "price": 286.22, + "stock_quantity": 735 + }, + "customer": { + "name": "Curtis Lopez", + "age": 34, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Chambers Group", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "agency", + "category": "matter", + "price": 855.74, + "stock_quantity": 34 + }, + "customer": { + "name": "Raymond Williams", + "age": 19, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Schultz Inc", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "ten", + "category": "operation", + "price": 359.18, + "stock_quantity": 449 + }, + "customer": { + "name": "Gregory Carter", + "age": 55, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Randall and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Randall and Sons", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "store", + "category": "indeed", + "price": 350.86, + "stock_quantity": 469 + }, + "customer": { + "name": "Shannon Perez MD", + "age": 78, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Kim-Wall", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "learn", + "category": "effort", + "price": 633.83, + "stock_quantity": 368 + }, + "customer": { + "name": "Dale Lam", + "age": 45, + "country": "Nicaragua" + } + }, + { + "natural_query": "List all customers and their total order value for Smith, Serrano and Larson.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Smith, Serrano and Larson' GROUP BY c.customer_id", + "company": { + "name": "Smith, Serrano and Larson", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "campaign", + "category": "first", + "price": 715.5, + "stock_quantity": 751 + }, + "customer": { + "name": "Nichole Mays", + "age": 40, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Meyer-Garcia", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "book", + "category": "hold", + "price": 250.42, + "stock_quantity": 21 + }, + "customer": { + "name": "Jennifer Benson", + "age": 33, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Kennedy Ltd", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "foot", + "category": "them", + "price": 551.36, + "stock_quantity": 934 + }, + "customer": { + "name": "Kaitlin Frazier", + "age": 61, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Hart PLC", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "condition", + "category": "team", + "price": 186.44, + "stock_quantity": 520 + }, + "customer": { + "name": "Jason Yang", + "age": 31, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Fuentes-Escobar", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "speech", + "category": "yes", + "price": 715.36, + "stock_quantity": 161 + }, + "customer": { + "name": "Kathleen Michael", + "age": 70, + "country": "Central African Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chapman-Bell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chapman-Bell", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "late", + "category": "everybody", + "price": 779.17, + "stock_quantity": 38 + }, + "customer": { + "name": "Anthony Arias", + "age": 60, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Davis, Weber and Glenn", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "their", + "category": "have", + "price": 497.99, + "stock_quantity": 150 + }, + "customer": { + "name": "Theresa Morales", + "age": 62, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Holland Ltd", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "season", + "category": "look", + "price": 304.94, + "stock_quantity": 366 + }, + "customer": { + "name": "Erica Long", + "age": 59, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Cantu LLC", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "kind", + "category": "marriage", + "price": 465.81, + "stock_quantity": 68 + }, + "customer": { + "name": "Robert Fox", + "age": 79, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Christian Inc", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "rather", + "category": "something", + "price": 744.29, + "stock_quantity": 403 + }, + "customer": { + "name": "Phillip Clark", + "age": 41, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Brock and Sons", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "on", + "category": "require", + "price": 198.76, + "stock_quantity": 615 + }, + "customer": { + "name": "Robin Peters", + "age": 46, + "country": "Bosnia and Herzegovina" + } + }, + { + "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'", + "company": { + "name": "Martin-Martinez", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "concern", + "category": "make", + "price": 799.13, + "stock_quantity": 895 + }, + "customer": { + "name": "Elizabeth Williams", + "age": 39, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Smith-Hernandez", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "family", + "category": "information", + "price": 519.27, + "stock_quantity": 195 + }, + "customer": { + "name": "Donna Garcia", + "age": 53, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Herrera-Hester", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "question", + "category": "allow", + "price": 202.51, + "stock_quantity": 454 + }, + "customer": { + "name": "Alexander Mueller", + "age": 61, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Price Ltd", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "security", + "category": "event", + "price": 453.03, + "stock_quantity": 236 + }, + "customer": { + "name": "Gregory Ibarra", + "age": 24, + "country": "Solomon Islands" + } + }, + { + "natural_query": "What is the total price of all products for Turner LLC?", + "sql_query": "SELECT TOTAL(price) as result FROM products WHERE company_name = 'Turner LLC'", + "company": { + "name": "Turner LLC", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "drop", + "category": "candidate", + "price": 522.13, + "stock_quantity": 524 + }, + "customer": { + "name": "Thomas Brown", + "age": 78, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Martinez, Christensen and Hicks", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "yard", + "category": "anyone", + "price": 500.6, + "stock_quantity": 13 + }, + "customer": { + "name": "Samantha Daniels", + "age": 72, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Taylor, Parks and Rivera", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "sometimes", + "category": "soldier", + "price": 150.58, + "stock_quantity": 789 + }, + "customer": { + "name": "Elizabeth Rodriguez", + "age": 40, + "country": "Malaysia" + } + }, + { + "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'", + "company": { + "name": "Davis-Cox", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "look", + "category": "his", + "price": 623.56, + "stock_quantity": 40 + }, + "customer": { + "name": "Tammy Davis", + "age": 25, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Scott-Hamilton", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "word", + "category": "civil", + "price": 559.09, + "stock_quantity": 761 + }, + "customer": { + "name": "Grant Walker", + "age": 28, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Carrillo-Rivera", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "rather", + "category": "father", + "price": 555.9, + "stock_quantity": 410 + }, + "customer": { + "name": "John Cole", + "age": 69, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Santos, Reese and Harris", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "something", + "category": "lead", + "price": 111.85, + "stock_quantity": 185 + }, + "customer": { + "name": "William Abbott", + "age": 78, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Scott-Smith", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "must", + "category": "result", + "price": 569.3, + "stock_quantity": 71 + }, + "customer": { + "name": "Kaylee Werner", + "age": 73, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Davis-Farrell", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "box", + "category": "yes", + "price": 894.79, + "stock_quantity": 293 + }, + "customer": { + "name": "Catherine Rodriguez", + "age": 69, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "Vasquez-Wilson", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "book", + "category": "speak", + "price": 398.33, + "stock_quantity": 851 + }, + "customer": { + "name": "Todd Kim", + "age": 62, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Williams Ltd", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "at", + "category": "never", + "price": 298.79, + "stock_quantity": 55 + }, + "customer": { + "name": "Jeffrey Jackson", + "age": 48, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Warren, Walker and Garner", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "account", + "category": "study", + "price": 998.73, + "stock_quantity": 180 + }, + "customer": { + "name": "Jill Phillips", + "age": 80, + "country": "Ecuador" + } + }, + { + "natural_query": "How many orders were placed for Franco, Hughes and Anderson between 2024-04-11 and 2024-04-26?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Franco, Hughes and Anderson' AND order_date BETWEEN '2024-04-11' AND '2024-04-26'", + "company": { + "name": "Franco, Hughes and Anderson", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "west", + "category": "six", + "price": 625.55, + "stock_quantity": 284 + }, + "customer": { + "name": "Jennifer Newton", + "age": 22, + "country": "San Marino" + } + }, + { + "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'", + "company": { + "name": "Jacobson PLC", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "consider", + "category": "personal", + "price": 667.03, + "stock_quantity": 787 + }, + "customer": { + "name": "Larry Daniels", + "age": 58, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Davis, Gould and Velazquez", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "ready", + "category": "but", + "price": 667.91, + "stock_quantity": 245 + }, + "customer": { + "name": "Jennifer Price", + "age": 63, + "country": "United Arab Emirates" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Haynes LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Haynes LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Haynes LLC", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "various", + "category": "seven", + "price": 783.67, + "stock_quantity": 457 + }, + "customer": { + "name": "Keith Marquez", + "age": 77, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Greer LLC", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "clear", + "category": "ok", + "price": 505.92, + "stock_quantity": 596 + }, + "customer": { + "name": "Andrew Ramirez", + "age": 49, + "country": "Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris Ltd", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "responsibility", + "category": "address", + "price": 877.77, + "stock_quantity": 284 + }, + "customer": { + "name": "Daniel Zuniga", + "age": 62, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Cantrell LLC", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "join", + "category": "southern", + "price": 157.45, + "stock_quantity": 660 + }, + "customer": { + "name": "Erin Gilmore", + "age": 67, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Richard, Greer and Wheeler", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "PM", + "category": "modern", + "price": 54.98, + "stock_quantity": 285 + }, + "customer": { + "name": "Aaron Cummings", + "age": 39, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Herman, Ortiz and Welch", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "indeed", + "category": "character", + "price": 39.22, + "stock_quantity": 176 + }, + "customer": { + "name": "Sabrina Strickland", + "age": 30, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fletcher, Callahan and Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fletcher, Callahan and Campbell", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "state", + "category": "great", + "price": 39.86, + "stock_quantity": 72 + }, + "customer": { + "name": "Jim Swanson", + "age": 73, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Lopez, Murphy and Gomez", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "culture", + "category": "activity", + "price": 438.78, + "stock_quantity": 649 + }, + "customer": { + "name": "Kim Pierce", + "age": 59, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Barnes Ltd", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "born", + "category": "member", + "price": 988.53, + "stock_quantity": 725 + }, + "customer": { + "name": "Dawn Tyler", + "age": 66, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Howell and Sons", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "training", + "category": "decision", + "price": 855.95, + "stock_quantity": 136 + }, + "customer": { + "name": "Gina Adkins", + "age": 37, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Bennett PLC", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "debate", + "category": "century", + "price": 836.3, + "stock_quantity": 791 + }, + "customer": { + "name": "Dustin Newman", + "age": 71, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Melendez and Sons", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "dream", + "category": "color", + "price": 799.93, + "stock_quantity": 804 + }, + "customer": { + "name": "Luis Roberts", + "age": 50, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Stevens, Johnson and Alexander", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "size", + "category": "mother", + "price": 714.82, + "stock_quantity": 38 + }, + "customer": { + "name": "Alexander Moore", + "age": 51, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Shields-Anderson", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "discover", + "category": "finally", + "price": 56.34, + "stock_quantity": 829 + }, + "customer": { + "name": "Stephen French", + "age": 18, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Reid-Guzman", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "risk", + "category": "agent", + "price": 276.74, + "stock_quantity": 231 + }, + "customer": { + "name": "Jennifer Cummings", + "age": 58, + "country": "Barbados" + } + }, + { + "natural_query": "List all customers and their total order value for Williams and Sons.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Williams and Sons' GROUP BY c.customer_id", + "company": { + "name": "Williams and Sons", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "too", + "category": "soon", + "price": 776.64, + "stock_quantity": 350 + }, + "customer": { + "name": "Lisa Frederick", + "age": 39, + "country": "Kyrgyz Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dillon-Allen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dillon-Allen", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "enter", + "category": "real", + "price": 947.97, + "stock_quantity": 848 + }, + "customer": { + "name": "Jennifer Jones", + "age": 51, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Howe, Morris and Phillips", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "speech", + "category": "protect", + "price": 914.04, + "stock_quantity": 584 + }, + "customer": { + "name": "Mikayla Hernandez", + "age": 33, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Kelly PLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "generation", + "category": "boy", + "price": 642.69, + "stock_quantity": 732 + }, + "customer": { + "name": "Michelle Hudson", + "age": 39, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Hoffman, White and Collins", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "those", + "category": "drop", + "price": 254.77, + "stock_quantity": 391 + }, + "customer": { + "name": "Daniel Pittman", + "age": 31, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Lyons-Sloan", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "film", + "category": "ready", + "price": 112.22, + "stock_quantity": 754 + }, + "customer": { + "name": "Richard Johnson", + "age": 69, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Daniels, Parker and Conway", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "key", + "category": "room", + "price": 17.81, + "stock_quantity": 37 + }, + "customer": { + "name": "Shannon Sanchez", + "age": 64, + "country": "Bosnia and Herzegovina" + } + }, + { + "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'", + "company": { + "name": "Braun PLC", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "weight", + "category": "win", + "price": 72.05, + "stock_quantity": 109 + }, + "customer": { + "name": "Monica Graham", + "age": 20, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Hunt Ltd", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "enjoy", + "category": "well", + "price": 70.91, + "stock_quantity": 386 + }, + "customer": { + "name": "Austin Young", + "age": 36, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Wise-Wood", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "generation", + "category": "vote", + "price": 450.36, + "stock_quantity": 964 + }, + "customer": { + "name": "Daniel Hubbard", + "age": 22, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Sims, Ryan and Randall", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "spend", + "category": "ago", + "price": 709.05, + "stock_quantity": 111 + }, + "customer": { + "name": "Kimberly Fry", + "age": 62, + "country": "Iran" + } + }, + { + "natural_query": "What is the total sales for each country in Coleman, Clark and Cook?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Coleman, Clark and Cook' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Coleman, Clark and Cook", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "material", + "category": "still", + "price": 593.14, + "stock_quantity": 345 + }, + "customer": { + "name": "Dominique Oconnor", + "age": 34, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Black-Grant", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "kitchen", + "category": "chance", + "price": 44.58, + "stock_quantity": 292 + }, + "customer": { + "name": "Walter Oliver", + "age": 68, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Garrett, Mercado and Ramirez", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "science", + "category": "set", + "price": 199.07, + "stock_quantity": 510 + }, + "customer": { + "name": "Diana Baker", + "age": 29, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Myers Ltd", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "throw", + "category": "model", + "price": 951.07, + "stock_quantity": 511 + }, + "customer": { + "name": "Lisa Acevedo", + "age": 30, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Oconnell PLC", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "worker", + "category": "before", + "price": 58.07, + "stock_quantity": 546 + }, + "customer": { + "name": "Jacob Noble", + "age": 32, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Banks, Allen and Shields", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "lose", + "category": "show", + "price": 171.85, + "stock_quantity": 43 + }, + "customer": { + "name": "Mr. Ricky Robbins", + "age": 35, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Wyatt PLC", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "career", + "category": "anyone", + "price": 326.21, + "stock_quantity": 545 + }, + "customer": { + "name": "Meagan Robinson", + "age": 75, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Powell Inc", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "wonder", + "category": "let", + "price": 978.01, + "stock_quantity": 794 + }, + "customer": { + "name": "James Fernandez", + "age": 25, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Brown-Turner", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "stay", + "category": "somebody", + "price": 308.66, + "stock_quantity": 408 + }, + "customer": { + "name": "Danny Smith", + "age": 36, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Green Ltd", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "receive", + "category": "business", + "price": 129.61, + "stock_quantity": 19 + }, + "customer": { + "name": "Cristian Williams", + "age": 44, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Powell-Beard", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "dream", + "category": "economic", + "price": 413.73, + "stock_quantity": 163 + }, + "customer": { + "name": "Jennifer Washington", + "age": 78, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Nguyen, Reid and Torres", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "cause", + "category": "especially", + "price": 303.58, + "stock_quantity": 998 + }, + "customer": { + "name": "James Davis", + "age": 60, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Davis and Sons", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "though", + "category": "tell", + "price": 876.68, + "stock_quantity": 456 + }, + "customer": { + "name": "Stephanie Murray", + "age": 79, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Lambert Group", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "off", + "category": "while", + "price": 632.75, + "stock_quantity": 175 + }, + "customer": { + "name": "Andrew Thomas", + "age": 43, + "country": "Guernsey" + } + }, + { + "natural_query": "What is the total sales for each supplier in Ewing-Armstrong?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ewing-Armstrong' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Ewing-Armstrong", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "such", + "category": "describe", + "price": 392.57, + "stock_quantity": 781 + }, + "customer": { + "name": "Angela Smith", + "age": 62, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Henderson LLC", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "share", + "category": "seven", + "price": 949.84, + "stock_quantity": 869 + }, + "customer": { + "name": "Glen Floyd", + "age": 68, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Gomez Inc", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "must", + "category": "group", + "price": 123.77, + "stock_quantity": 910 + }, + "customer": { + "name": "Mr. Mario Bass", + "age": 42, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Boone, Miller and Randolph", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "dark", + "category": "south", + "price": 879.14, + "stock_quantity": 755 + }, + "customer": { + "name": "Robert Brown", + "age": 61, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Wells, Mitchell and Griffith", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "indicate", + "category": "Republican", + "price": 141.86, + "stock_quantity": 567 + }, + "customer": { + "name": "Natasha Wood", + "age": 60, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Burns, Long and Estrada", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "know", + "category": "cost", + "price": 508.03, + "stock_quantity": 58 + }, + "customer": { + "name": "Stephanie Lewis", + "age": 25, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Vasquez LLC", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "stand", + "category": "build", + "price": 271.56, + "stock_quantity": 980 + }, + "customer": { + "name": "Mary Gonzalez", + "age": 62, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Berger, White and Brown", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "oil", + "category": "participant", + "price": 269.54, + "stock_quantity": 330 + }, + "customer": { + "name": "Kara Huynh", + "age": 56, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Kennedy, Peterson and Booth", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "look", + "category": "might", + "price": 438.38, + "stock_quantity": 199 + }, + "customer": { + "name": "Jason Figueroa", + "age": 76, + "country": "Mexico" + } + }, + { + "natural_query": "How many orders were placed for Robles-Rodriguez between 2023-12-06 and 2024-06-09?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Robles-Rodriguez' AND order_date BETWEEN '2023-12-06' AND '2024-06-09'", + "company": { + "name": "Robles-Rodriguez", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "room", + "category": "security", + "price": 166.53, + "stock_quantity": 617 + }, + "customer": { + "name": "Claire Michael", + "age": 51, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Thompson-Gutierrez", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "federal", + "category": "travel", + "price": 689.66, + "stock_quantity": 767 + }, + "customer": { + "name": "David Bruce", + "age": 51, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Solomon LLC", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "city", + "category": "focus", + "price": 853.59, + "stock_quantity": 867 + }, + "customer": { + "name": "Nathan Raymond", + "age": 28, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Taylor, Johnson and Freeman", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "pull", + "category": "place", + "price": 897.92, + "stock_quantity": 460 + }, + "customer": { + "name": "Joseph Brown", + "age": 21, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Franklin-Larsen", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "free", + "category": "meet", + "price": 840.66, + "stock_quantity": 699 + }, + "customer": { + "name": "Kendra Marks", + "age": 71, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Martinez, Gaines and Miles", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "police", + "category": "administration", + "price": 228.91, + "stock_quantity": 885 + }, + "customer": { + "name": "Renee Stewart", + "age": 61, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Fuller PLC", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "only", + "category": "detail", + "price": 655.93, + "stock_quantity": 16 + }, + "customer": { + "name": "Pamela Gregory", + "age": 66, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "White, Daniel and Friedman", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "stuff", + "category": "newspaper", + "price": 995.91, + "stock_quantity": 642 + }, + "customer": { + "name": "Barbara White", + "age": 70, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Bennett-Jefferson", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "future", + "category": "success", + "price": 837.03, + "stock_quantity": 591 + }, + "customer": { + "name": "William Miller", + "age": 72, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Mason-Burns", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "clearly", + "category": "like", + "price": 78.71, + "stock_quantity": 813 + }, + "customer": { + "name": "Michael Turner", + "age": 78, + "country": "Suriname" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hughes, Cook and Meyer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hughes, Cook and Meyer", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "author", + "category": "sport", + "price": 817.31, + "stock_quantity": 933 + }, + "customer": { + "name": "Samantha Cummings", + "age": 80, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "White, Rice and Stewart", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "box", + "category": "Mr", + "price": 788.53, + "stock_quantity": 686 + }, + "customer": { + "name": "Sarah Fuller", + "age": 44, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Salinas, Delacruz and Ortiz", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "contain", + "category": "certainly", + "price": 512.69, + "stock_quantity": 940 + }, + "customer": { + "name": "Andrew Macias DVM", + "age": 60, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Sanders, Gutierrez and Shaffer", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "gun", + "category": "voice", + "price": 844.99, + "stock_quantity": 858 + }, + "customer": { + "name": "Cynthia Whitaker", + "age": 50, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Davenport, Harrington and Scott", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "offer", + "category": "can", + "price": 368.06, + "stock_quantity": 84 + }, + "customer": { + "name": "Tiffany Caldwell", + "age": 26, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Stewart Group", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "threat", + "category": "matter", + "price": 876.45, + "stock_quantity": 334 + }, + "customer": { + "name": "Elizabeth Martinez", + "age": 49, + "country": "Netherlands Antilles" + } + }, + { + "natural_query": "List all customers and their total order value for Long PLC.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Long PLC' GROUP BY c.customer_id", + "company": { + "name": "Long PLC", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "decision", + "category": "appear", + "price": 380.49, + "stock_quantity": 600 + }, + "customer": { + "name": "Lisa Spencer", + "age": 45, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Burke Group", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "up", + "category": "institution", + "price": 702.07, + "stock_quantity": 35 + }, + "customer": { + "name": "Michele Powell", + "age": 27, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Mora LLC", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "option", + "category": "fear", + "price": 878.84, + "stock_quantity": 22 + }, + "customer": { + "name": "Robert Reese", + "age": 40, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Frank, Hester and Snyder", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "respond", + "category": "fill", + "price": 304.56, + "stock_quantity": 964 + }, + "customer": { + "name": "Matthew Mckee", + "age": 19, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Cortez LLC", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "note", + "category": "remain", + "price": 923.83, + "stock_quantity": 315 + }, + "customer": { + "name": "Scott Dougherty", + "age": 60, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Mason-Haynes", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "form", + "category": "language", + "price": 172.5, + "stock_quantity": 630 + }, + "customer": { + "name": "Greg Robles", + "age": 42, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Wilson, Lopez and Woods", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "reach", + "category": "performance", + "price": 906.96, + "stock_quantity": 786 + }, + "customer": { + "name": "Jason Wood", + "age": 46, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Haney, Wise and Lee", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "law", + "category": "program", + "price": 779.62, + "stock_quantity": 997 + }, + "customer": { + "name": "Anthony Randall", + "age": 80, + "country": "Guadeloupe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murphy, Palmer and Taylor'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murphy, Palmer and Taylor", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "operation", + "category": "after", + "price": 537.71, + "stock_quantity": 845 + }, + "customer": { + "name": "Kimberly Taylor", + "age": 64, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Bailey Inc", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "goal", + "category": "check", + "price": 350.76, + "stock_quantity": 672 + }, + "customer": { + "name": "Alex Taylor", + "age": 65, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Brown, Weiss and Morris", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "him", + "category": "what", + "price": 361.51, + "stock_quantity": 358 + }, + "customer": { + "name": "Brenda Patterson", + "age": 35, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Carter, York and Kent", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "guy", + "category": "business", + "price": 863.94, + "stock_quantity": 151 + }, + "customer": { + "name": "Theresa Hoffman", + "age": 65, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Edwards Group", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "agree", + "category": "however", + "price": 671.28, + "stock_quantity": 589 + }, + "customer": { + "name": "Todd Jefferson", + "age": 65, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Murray LLC", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "member", + "category": "stage", + "price": 528.56, + "stock_quantity": 60 + }, + "customer": { + "name": "Christopher Davidson", + "age": 46, + "country": "Lebanon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davies, Neal and Benton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davies, Neal and Benton", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "year", + "category": "economic", + "price": 872.84, + "stock_quantity": 204 + }, + "customer": { + "name": "Barry Perez", + "age": 59, + "country": "Canada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Villanueva-Liu'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Villanueva-Liu", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "themselves", + "category": "interesting", + "price": 509.61, + "stock_quantity": 519 + }, + "customer": { + "name": "Raymond Bradley MD", + "age": 39, + "country": "Sweden" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sullivan-Trujillo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sullivan-Trujillo", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "hour", + "category": "save", + "price": 358.39, + "stock_quantity": 652 + }, + "customer": { + "name": "Judith Kelley", + "age": 54, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Mendez LLC", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "worker", + "category": "image", + "price": 269.06, + "stock_quantity": 693 + }, + "customer": { + "name": "Kimberly Larsen", + "age": 52, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wright-Lopez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wright-Lopez", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "various", + "category": "if", + "price": 99.29, + "stock_quantity": 403 + }, + "customer": { + "name": "Mrs. Rachael Curtis", + "age": 59, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Wiley Group", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "write", + "category": "skin", + "price": 887.29, + "stock_quantity": 553 + }, + "customer": { + "name": "Alexis Doyle", + "age": 71, + "country": "Jamaica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jordan PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jordan PLC", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "plan", + "category": "play", + "price": 878.2, + "stock_quantity": 176 + }, + "customer": { + "name": "Judy Malone", + "age": 58, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Holmes LLC", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "support", + "category": "speech", + "price": 479.78, + "stock_quantity": 856 + }, + "customer": { + "name": "Donna Rice", + "age": 35, + "country": "Belgium" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cook, Gonzalez and Robinson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cook, Gonzalez and Robinson", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "enough", + "category": "carry", + "price": 508.96, + "stock_quantity": 537 + }, + "customer": { + "name": "Cody Torres", + "age": 79, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Kim PLC", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "threat", + "category": "hospital", + "price": 248.13, + "stock_quantity": 172 + }, + "customer": { + "name": "Kevin Torres", + "age": 77, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Hernandez, Strickland and Glover", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "side", + "category": "wide", + "price": 140.65, + "stock_quantity": 976 + }, + "customer": { + "name": "Joshua Goodman", + "age": 20, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Nelson-Morris", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "authority", + "category": "start", + "price": 252.12, + "stock_quantity": 564 + }, + "customer": { + "name": "Billy Lewis", + "age": 77, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Watson and Sons", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "base", + "category": "response", + "price": 101.15, + "stock_quantity": 555 + }, + "customer": { + "name": "Richard Garcia", + "age": 18, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Davis-Lowe", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "offer", + "category": "everybody", + "price": 500.62, + "stock_quantity": 681 + }, + "customer": { + "name": "Brandon Jones", + "age": 38, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Cobb-Kim", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "computer", + "category": "rule", + "price": 607.42, + "stock_quantity": 815 + }, + "customer": { + "name": "Peter Rodriguez", + "age": 30, + "country": "Ireland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wolf Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wolf Group", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "answer", + "category": "such", + "price": 160.66, + "stock_quantity": 61 + }, + "customer": { + "name": "Elizabeth White", + "age": 42, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Ramirez, Wright and Bell", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "computer", + "category": "dark", + "price": 332.52, + "stock_quantity": 582 + }, + "customer": { + "name": "Maria Garcia", + "age": 80, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Turner-Blevins", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "decision", + "category": "commercial", + "price": 758.21, + "stock_quantity": 782 + }, + "customer": { + "name": "Ronald Jones", + "age": 62, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Campbell Ltd", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "they", + "category": "safe", + "price": 165.38, + "stock_quantity": 244 + }, + "customer": { + "name": "Ashley Hartman", + "age": 54, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Wu, Hubbard and Rodriguez", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "interesting", + "category": "tend", + "price": 295.4, + "stock_quantity": 928 + }, + "customer": { + "name": "John Gray", + "age": 60, + "country": "Saint Kitts and Nevis" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harrison-Jenkins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harrison-Jenkins", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "act", + "category": "relate", + "price": 229.05, + "stock_quantity": 264 + }, + "customer": { + "name": "Kelly Lindsey", + "age": 63, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Vaughn PLC", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "market", + "category": "four", + "price": 51.06, + "stock_quantity": 101 + }, + "customer": { + "name": "James Banks", + "age": 56, + "country": "Guam" + } + }, + { + "natural_query": "List all products of Moore-Herman ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Moore-Herman' ORDER BY stock_quantity DESC", + "company": { + "name": "Moore-Herman", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "image", + "category": "tax", + "price": 97.71, + "stock_quantity": 126 + }, + "customer": { + "name": "Eric Hendricks", + "age": 79, + "country": "Portugal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jordan, Sullivan and Martinez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jordan, Sullivan and Martinez", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "give", + "category": "weight", + "price": 331.24, + "stock_quantity": 99 + }, + "customer": { + "name": "Brian Harris", + "age": 76, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Martin LLC", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "foot", + "category": "analysis", + "price": 61.1, + "stock_quantity": 813 + }, + "customer": { + "name": "David Delacruz", + "age": 61, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Carroll, Brown and Diaz", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "society", + "category": "continue", + "price": 872.7, + "stock_quantity": 871 + }, + "customer": { + "name": "Leslie Padilla", + "age": 26, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Simmons-Nash", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "every", + "category": "capital", + "price": 720.56, + "stock_quantity": 908 + }, + "customer": { + "name": "Rebecca Watkins", + "age": 50, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Jackson PLC", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "local", + "category": "everyone", + "price": 165.76, + "stock_quantity": 518 + }, + "customer": { + "name": "Samuel Watkins", + "age": 54, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Beltran-Paul", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "create", + "category": "just", + "price": 222.58, + "stock_quantity": 178 + }, + "customer": { + "name": "Emily Mack", + "age": 23, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Gutierrez-Hamilton", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "computer", + "category": "red", + "price": 369.46, + "stock_quantity": 780 + }, + "customer": { + "name": "Jeffrey Adams", + "age": 54, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Roberts-Brown", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "thus", + "category": "both", + "price": 320.54, + "stock_quantity": 706 + }, + "customer": { + "name": "Richard Young", + "age": 46, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Williams, Aguilar and Molina", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "yourself", + "category": "down", + "price": 607.38, + "stock_quantity": 268 + }, + "customer": { + "name": "Erin Collier", + "age": 34, + "country": "Thailand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Walker, Martinez and Kennedy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Walker, Martinez and Kennedy", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "suggest", + "category": "strong", + "price": 377.08, + "stock_quantity": 237 + }, + "customer": { + "name": "Ana Powell", + "age": 37, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gregory, Watts and Kelley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gregory, Watts and Kelley", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "tree", + "category": "staff", + "price": 367.0, + "stock_quantity": 575 + }, + "customer": { + "name": "Jennifer Parker", + "age": 47, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Holland and Sons", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "value", + "category": "whatever", + "price": 663.24, + "stock_quantity": 713 + }, + "customer": { + "name": "Tiffany Morales", + "age": 62, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Hayes-Terrell", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "view", + "category": "open", + "price": 905.05, + "stock_quantity": 21 + }, + "customer": { + "name": "Michael Harrison", + "age": 71, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Hall Ltd", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "goal", + "category": "total", + "price": 582.9, + "stock_quantity": 551 + }, + "customer": { + "name": "Colin Schultz", + "age": 76, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Lopez-Buckley", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "air", + "category": "hope", + "price": 408.17, + "stock_quantity": 924 + }, + "customer": { + "name": "Michael Rocha", + "age": 68, + "country": "Palestinian Territory" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson, Perry and Winters'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson, Perry and Winters", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "miss", + "category": "right", + "price": 275.48, + "stock_quantity": 117 + }, + "customer": { + "name": "Cindy Nelson", + "age": 36, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Martin-Townsend", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "door", + "category": "give", + "price": 881.24, + "stock_quantity": 766 + }, + "customer": { + "name": "Dr. William Barnes", + "age": 50, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Watson-Gonzalez", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "policy", + "category": "decision", + "price": 700.34, + "stock_quantity": 749 + }, + "customer": { + "name": "Susan Richardson", + "age": 30, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "natural_query": "What are the top 4 products by sales for Burns Inc this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Burns Inc' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4", + "company": { + "name": "Burns Inc", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "approach", + "category": "eye", + "price": 763.87, + "stock_quantity": 266 + }, + "customer": { + "name": "Kevin Collins", + "age": 26, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Wilkerson, Brown and Harper", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "third", + "category": "light", + "price": 158.45, + "stock_quantity": 204 + }, + "customer": { + "name": "Jasmine Fields MD", + "age": 69, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Wilson Inc", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "test", + "category": "always", + "price": 74.27, + "stock_quantity": 654 + }, + "customer": { + "name": "Jonathan Garcia", + "age": 57, + "country": "Martinique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ramos-Lee'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ramos-Lee", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "know", + "category": "home", + "price": 803.9, + "stock_quantity": 41 + }, + "customer": { + "name": "Elizabeth Cox", + "age": 76, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Price and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Price and Sons", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "since", + "category": "usually", + "price": 250.83, + "stock_quantity": 480 + }, + "customer": { + "name": "Virginia Davis", + "age": 41, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Spencer, Bradshaw and Grant", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "full", + "category": "offer", + "price": 218.33, + "stock_quantity": 502 + }, + "customer": { + "name": "William Benson", + "age": 66, + "country": "Puerto Rico" + } + }, + { + "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'", + "company": { + "name": "Wilson Inc", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "authority", + "category": "star", + "price": 498.72, + "stock_quantity": 708 + }, + "customer": { + "name": "Jacqueline Oliver", + "age": 58, + "country": "Vanuatu" + } + }, + { + "natural_query": "Show me all products in the list category with a price over $298.81.", + "sql_query": "SELECT * FROM products WHERE category = 'list' AND price > 298.81", + "company": { + "name": "Franklin, Murillo and Cabrera", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "allow", + "category": "list", + "price": 298.81, + "stock_quantity": 421 + }, + "customer": { + "name": "Aaron Padilla", + "age": 33, + "country": "Singapore" + } + }, + { + "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'", + "company": { + "name": "Campos Inc", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "matter", + "category": "because", + "price": 469.69, + "stock_quantity": 133 + }, + "customer": { + "name": "James Scott", + "age": 69, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Wilson Inc", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "discuss", + "category": "agreement", + "price": 396.74, + "stock_quantity": 17 + }, + "customer": { + "name": "Ana Lee", + "age": 54, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Mills, Crane and White", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "interview", + "category": "keep", + "price": 197.11, + "stock_quantity": 65 + }, + "customer": { + "name": "Ann Porter", + "age": 68, + "country": "Malaysia" + } + }, + { + "natural_query": "What are the top 4 products by sales for Reed-Kelley last quarter?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reed-Kelley' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4", + "company": { + "name": "Reed-Kelley", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "management", + "category": "term", + "price": 108.52, + "stock_quantity": 191 + }, + "customer": { + "name": "Michael Robinson", + "age": 61, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Mcdonald LLC", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "focus", + "category": "stuff", + "price": 873.37, + "stock_quantity": 856 + }, + "customer": { + "name": "Kevin Martin", + "age": 35, + "country": "Lao People's Democratic Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson, Barrett and Mccoy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson, Barrett and Mccoy", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "happy", + "category": "build", + "price": 471.06, + "stock_quantity": 771 + }, + "customer": { + "name": "David Jennings", + "age": 58, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Bell-Bowman", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "purpose", + "category": "key", + "price": 200.34, + "stock_quantity": 921 + }, + "customer": { + "name": "Timothy Allen", + "age": 44, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Johnson, Smith and Graham", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "smile", + "category": "should", + "price": 190.75, + "stock_quantity": 770 + }, + "customer": { + "name": "James Campbell", + "age": 39, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Navarro-Gutierrez", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "least", + "category": "couple", + "price": 416.45, + "stock_quantity": 467 + }, + "customer": { + "name": "Lisa Stewart", + "age": 52, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Kerr, Cooke and Rhodes", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "site", + "category": "exactly", + "price": 950.84, + "stock_quantity": 779 + }, + "customer": { + "name": "Joshua Garza", + "age": 59, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Davis-Oconnor", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "now", + "category": "left", + "price": 512.93, + "stock_quantity": 499 + }, + "customer": { + "name": "Ashley White", + "age": 20, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Young, Miller and Hampton", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "line", + "category": "own", + "price": 348.96, + "stock_quantity": 717 + }, + "customer": { + "name": "Darren White", + "age": 80, + "country": "Netherlands Antilles" + } + }, + { + "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'", + "company": { + "name": "Williams-Harper", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "technology", + "category": "reflect", + "price": 229.17, + "stock_quantity": 445 + }, + "customer": { + "name": "Dylan Butler", + "age": 68, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Williams Group", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "since", + "category": "computer", + "price": 38.67, + "stock_quantity": 87 + }, + "customer": { + "name": "Cassandra Cole", + "age": 74, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Dean-Gutierrez", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "center", + "category": "sing", + "price": 536.18, + "stock_quantity": 753 + }, + "customer": { + "name": "Rachel Hunt", + "age": 55, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Lopez, Todd and Hill", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "hour", + "category": "trial", + "price": 254.67, + "stock_quantity": 269 + }, + "customer": { + "name": "April Snyder", + "age": 28, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Young-Vasquez", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "seem", + "category": "moment", + "price": 290.85, + "stock_quantity": 460 + }, + "customer": { + "name": "Jordan White", + "age": 79, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "King LLC", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "must", + "category": "exist", + "price": 877.56, + "stock_quantity": 101 + }, + "customer": { + "name": "Kevin Moore", + "age": 43, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Lloyd, Brown and Kaiser", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "room", + "category": "skin", + "price": 633.95, + "stock_quantity": 881 + }, + "customer": { + "name": "Rachael Smith", + "age": 45, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Mckee Inc", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "throughout", + "category": "statement", + "price": 903.22, + "stock_quantity": 419 + }, + "customer": { + "name": "Kelly Reynolds", + "age": 35, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Garcia, Hardy and Mathews", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "become", + "category": "prove", + "price": 504.94, + "stock_quantity": 65 + }, + "customer": { + "name": "Katherine Kelly", + "age": 73, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Smith and Sons", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "decision", + "category": "rule", + "price": 901.21, + "stock_quantity": 132 + }, + "customer": { + "name": "Tina Anderson", + "age": 56, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Donaldson Ltd", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "upon", + "category": "executive", + "price": 208.92, + "stock_quantity": 181 + }, + "customer": { + "name": "Derrick Walters", + "age": 21, + "country": "Guernsey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Tapia Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Tapia Ltd", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "remember", + "category": "doctor", + "price": 602.74, + "stock_quantity": 931 + }, + "customer": { + "name": "Dr. Thomas Hodge MD", + "age": 59, + "country": "Peru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roberson, Humphrey and Lambert'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roberson, Humphrey and Lambert", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "begin", + "category": "nature", + "price": 872.21, + "stock_quantity": 857 + }, + "customer": { + "name": "Mr. Brandon Hernandez MD", + "age": 48, + "country": "Denmark" + } + }, + { + "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'", + "company": { + "name": "Smith-Price", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "character", + "category": "issue", + "price": 964.81, + "stock_quantity": 82 + }, + "customer": { + "name": "Marilyn Lee", + "age": 61, + "country": "Chad" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Herrera Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Herrera Inc", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "or", + "category": "television", + "price": 758.81, + "stock_quantity": 587 + }, + "customer": { + "name": "Kenneth Phillips", + "age": 55, + "country": "Uzbekistan" + } + }, + { + "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'", + "company": { + "name": "Reyes PLC", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "cup", + "category": "full", + "price": 299.62, + "stock_quantity": 190 + }, + "customer": { + "name": "Thomas Adams", + "age": 47, + "country": "Japan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson-Villegas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson-Villegas", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "take", + "category": "nearly", + "price": 447.15, + "stock_quantity": 374 + }, + "customer": { + "name": "David Shaw", + "age": 66, + "country": "Thailand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith Inc", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "claim", + "category": "subject", + "price": 83.66, + "stock_quantity": 899 + }, + "customer": { + "name": "Lisa Mueller", + "age": 63, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Wood, Williams and Jones", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "almost", + "category": "outside", + "price": 389.86, + "stock_quantity": 628 + }, + "customer": { + "name": "Jonathan Davis", + "age": 40, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murphy, Duran and Munoz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murphy, Duran and Munoz", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "food", + "category": "environment", + "price": 93.98, + "stock_quantity": 573 + }, + "customer": { + "name": "Joshua Wilkins", + "age": 56, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Barr, Daniels and Stevenson", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "upon", + "category": "morning", + "price": 930.97, + "stock_quantity": 832 + }, + "customer": { + "name": "Ian Brown", + "age": 30, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Smith-Miller", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "such", + "category": "ball", + "price": 275.18, + "stock_quantity": 27 + }, + "customer": { + "name": "Leslie Casey", + "age": 19, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Thomas-Jones", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "parent", + "category": "popular", + "price": 340.54, + "stock_quantity": 796 + }, + "customer": { + "name": "Maria Burke", + "age": 29, + "country": "United States Minor Outlying Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ross, Brown and Nguyen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ross, Brown and Nguyen", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "chair", + "category": "admit", + "price": 875.36, + "stock_quantity": 876 + }, + "customer": { + "name": "Caroline Hall", + "age": 47, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Christensen-Lucas", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "prepare", + "category": "reflect", + "price": 208.55, + "stock_quantity": 832 + }, + "customer": { + "name": "Lee Thomas", + "age": 41, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Lowe-Holt", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "decision", + "category": "accept", + "price": 926.61, + "stock_quantity": 449 + }, + "customer": { + "name": "Daniel Soto", + "age": 62, + "country": "Qatar" + } + }, + { + "natural_query": "List all customers and their total order value for Day Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Day Ltd' GROUP BY c.customer_id", + "company": { + "name": "Day Ltd", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "their", + "category": "send", + "price": 204.06, + "stock_quantity": 902 + }, + "customer": { + "name": "Dr. Pamela Garcia DVM", + "age": 62, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Miller-Smith", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "technology", + "category": "base", + "price": 552.47, + "stock_quantity": 865 + }, + "customer": { + "name": "Todd Mcdaniel", + "age": 75, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Bauer-Roth", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "work", + "category": "trouble", + "price": 771.7, + "stock_quantity": 641 + }, + "customer": { + "name": "Ray Williams", + "age": 64, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Strickland PLC", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "phone", + "category": "assume", + "price": 847.19, + "stock_quantity": 784 + }, + "customer": { + "name": "Gina Petersen", + "age": 45, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Wall, Harding and Smith", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "give", + "category": "develop", + "price": 629.24, + "stock_quantity": 703 + }, + "customer": { + "name": "Samantha Gibson", + "age": 66, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Higgins-Salas", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "pass", + "category": "market", + "price": 30.0, + "stock_quantity": 872 + }, + "customer": { + "name": "Jennifer White", + "age": 76, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Davis Inc", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "decision", + "category": "check", + "price": 768.65, + "stock_quantity": 894 + }, + "customer": { + "name": "Donald Gibson", + "age": 76, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Anderson Ltd", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "building", + "category": "myself", + "price": 916.01, + "stock_quantity": 256 + }, + "customer": { + "name": "Ronnie Fernandez", + "age": 35, + "country": "Yemen" + } + }, + { + "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'", + "company": { + "name": "Rivera, Neal and Castillo", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "her", + "category": "either", + "price": 147.2, + "stock_quantity": 154 + }, + "customer": { + "name": "Austin Savage", + "age": 80, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Perry, Pearson and Schneider", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "she", + "category": "building", + "price": 591.48, + "stock_quantity": 556 + }, + "customer": { + "name": "Jeffery Shaw", + "age": 62, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Hensley, Gordon and Wade", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "total", + "category": "could", + "price": 538.93, + "stock_quantity": 445 + }, + "customer": { + "name": "Theresa Kim", + "age": 39, + "country": "Lithuania" + } + }, + { + "natural_query": "How many orders were placed for Houston, Goodwin and Mcneil between 2023-11-01 and 2023-11-01?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Houston, Goodwin and Mcneil' AND order_date BETWEEN '2023-11-01' AND '2023-11-01'", + "company": { + "name": "Houston, Goodwin and Mcneil", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "ready", + "category": "popular", + "price": 653.95, + "stock_quantity": 638 + }, + "customer": { + "name": "Jenna Garner", + "age": 64, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Taylor, Carey and Lam", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "listen", + "category": "newspaper", + "price": 863.22, + "stock_quantity": 7 + }, + "customer": { + "name": "Lucas Weaver", + "age": 19, + "country": "Dominican Republic" + } + }, + { + "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'", + "company": { + "name": "Petersen, Rodriguez and Williamson", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "poor", + "category": "international", + "price": 282.02, + "stock_quantity": 269 + }, + "customer": { + "name": "Heather Smith", + "age": 63, + "country": "Serbia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lewis-Taylor'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lewis-Taylor", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "couple", + "category": "player", + "price": 602.99, + "stock_quantity": 251 + }, + "customer": { + "name": "Joann Sanford", + "age": 21, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Carter, Mccormick and Pearson", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "behavior", + "category": "wall", + "price": 843.29, + "stock_quantity": 673 + }, + "customer": { + "name": "Frederick Richards", + "age": 31, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Wilson LLC", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "TV", + "category": "focus", + "price": 616.89, + "stock_quantity": 936 + }, + "customer": { + "name": "Amber Nichols", + "age": 34, + "country": "Marshall Islands" + } + }, + { + "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'", + "company": { + "name": "Hicks, Petty and Moore", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "reflect", + "category": "such", + "price": 39.35, + "stock_quantity": 564 + }, + "customer": { + "name": "Alexandra Anderson", + "age": 43, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Ward Group", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "hair", + "category": "must", + "price": 40.89, + "stock_quantity": 801 + }, + "customer": { + "name": "Timothy Butler", + "age": 37, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Brown Ltd", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "add", + "category": "skin", + "price": 519.84, + "stock_quantity": 143 + }, + "customer": { + "name": "Mark Whitehead", + "age": 36, + "country": "Somalia" + } + }, + { + "natural_query": "How many orders were placed for Smith, Jacobs and Erickson between 2024-06-26 and 2024-07-26?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Smith, Jacobs and Erickson' AND order_date BETWEEN '2024-06-26' AND '2024-07-26'", + "company": { + "name": "Smith, Jacobs and Erickson", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "reduce", + "category": "discuss", + "price": 907.55, + "stock_quantity": 954 + }, + "customer": { + "name": "Shawn Sanders", + "age": 53, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Martinez, Gilmore and Perry", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "music", + "category": "challenge", + "price": 25.8, + "stock_quantity": 683 + }, + "customer": { + "name": "Mark Hernandez", + "age": 78, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Raymond, Myers and Ibarra", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "reflect", + "category": "read", + "price": 900.08, + "stock_quantity": 569 + }, + "customer": { + "name": "Maureen Parker", + "age": 65, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Le, Martinez and Rodriguez", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "lot", + "category": "system", + "price": 133.55, + "stock_quantity": 884 + }, + "customer": { + "name": "Amanda Rich", + "age": 57, + "country": "Mexico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jordan, Roberts and Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jordan, Roberts and Moore", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "perform", + "category": "improve", + "price": 188.55, + "stock_quantity": 295 + }, + "customer": { + "name": "Joshua Lewis", + "age": 20, + "country": "Israel" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor Group", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "behind", + "category": "federal", + "price": 265.68, + "stock_quantity": 807 + }, + "customer": { + "name": "Joanne Anderson", + "age": 52, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Carey, Mayer and Castillo", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "improve", + "category": "member", + "price": 706.94, + "stock_quantity": 10 + }, + "customer": { + "name": "Brandon Patton", + "age": 76, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Simpson Group", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "me", + "category": "car", + "price": 575.61, + "stock_quantity": 951 + }, + "customer": { + "name": "Kristin Johnson", + "age": 66, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Maddox, Hensley and Gonzalez", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "upon", + "category": "read", + "price": 11.9, + "stock_quantity": 898 + }, + "customer": { + "name": "Nicholas Warren", + "age": 65, + "country": "Ethiopia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Reyes LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reyes LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reyes LLC", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "activity", + "category": "market", + "price": 811.62, + "stock_quantity": 92 + }, + "customer": { + "name": "David Harris", + "age": 78, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Garcia, Smith and Johnson", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "job", + "category": "moment", + "price": 168.22, + "stock_quantity": 839 + }, + "customer": { + "name": "Michael Combs", + "age": 78, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Lee LLC", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "work", + "category": "pretty", + "price": 346.42, + "stock_quantity": 80 + }, + "customer": { + "name": "Courtney Sutton", + "age": 47, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Medina, Burton and Miller", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "option", + "category": "despite", + "price": 288.65, + "stock_quantity": 781 + }, + "customer": { + "name": "Patricia Mata", + "age": 55, + "country": "Philippines" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Stephens, Roberts and Shaffer for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stephens, Roberts and Shaffer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stephens, Roberts and Shaffer", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "single", + "category": "attention", + "price": 134.97, + "stock_quantity": 195 + }, + "customer": { + "name": "Alexander Ortiz", + "age": 40, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Cook, Douglas and Murphy", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "interest", + "category": "data", + "price": 490.61, + "stock_quantity": 233 + }, + "customer": { + "name": "Stacey Stone", + "age": 62, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Bauer Inc", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "put", + "category": "nothing", + "price": 712.95, + "stock_quantity": 556 + }, + "customer": { + "name": "Jerry White", + "age": 76, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Cohen-Garcia", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "keep", + "category": "officer", + "price": 31.09, + "stock_quantity": 766 + }, + "customer": { + "name": "Derrick Torres", + "age": 37, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Williams Ltd", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "ago", + "category": "issue", + "price": 546.5, + "stock_quantity": 412 + }, + "customer": { + "name": "Mrs. Ashley Michael MD", + "age": 69, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Owen Group", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "administration", + "category": "the", + "price": 651.13, + "stock_quantity": 966 + }, + "customer": { + "name": "Patrick Johnson", + "age": 35, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Bryant, Delgado and Snyder", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "personal", + "category": "partner", + "price": 271.18, + "stock_quantity": 948 + }, + "customer": { + "name": "Erin Mcdaniel", + "age": 54, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Bowman, Walker and Tucker", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "result", + "category": "red", + "price": 261.24, + "stock_quantity": 969 + }, + "customer": { + "name": "Timothy Mcpherson", + "age": 72, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Malone-Morrow", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "religious", + "category": "guy", + "price": 371.53, + "stock_quantity": 940 + }, + "customer": { + "name": "Samuel Murphy", + "age": 35, + "country": "Comoros" + } + }, + { + "natural_query": "How many orders were placed for Ramirez, Castillo and Luna between 2023-12-02 and 2024-04-10?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Ramirez, Castillo and Luna' AND order_date BETWEEN '2023-12-02' AND '2024-04-10'", + "company": { + "name": "Ramirez, Castillo and Luna", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "entire", + "category": "sometimes", + "price": 449.7, + "stock_quantity": 643 + }, + "customer": { + "name": "William Allen", + "age": 74, + "country": "Micronesia" + } + }, + { + "natural_query": "What is the total profit for each country in Koch-Becker?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Koch-Becker' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Koch-Becker", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "popular", + "category": "lead", + "price": 496.23, + "stock_quantity": 209 + }, + "customer": { + "name": "Christopher Wood", + "age": 72, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Barton, Lee and Adams", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "policy", + "category": "can", + "price": 497.93, + "stock_quantity": 115 + }, + "customer": { + "name": "Wanda Wilcox", + "age": 80, + "country": "Ghana" + } + }, + { + "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'", + "company": { + "name": "Rogers-Hill", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "course", + "category": "tend", + "price": 831.89, + "stock_quantity": 642 + }, + "customer": { + "name": "Kenneth Merritt", + "age": 29, + "country": "Indonesia" + } + }, + { + "natural_query": "List all customers and their total order value for Anderson and Sons.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Anderson and Sons' GROUP BY c.customer_id", + "company": { + "name": "Anderson and Sons", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "probably", + "category": "place", + "price": 824.25, + "stock_quantity": 635 + }, + "customer": { + "name": "Jasmine Garrett", + "age": 26, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Cook and Sons", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "process", + "category": "from", + "price": 678.18, + "stock_quantity": 511 + }, + "customer": { + "name": "Randall Hall", + "age": 38, + "country": "United States Minor Outlying Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stevens-Santos'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stevens-Santos", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "pass", + "category": "yard", + "price": 764.89, + "stock_quantity": 489 + }, + "customer": { + "name": "Joel Wright", + "age": 33, + "country": "Romania" + } + }, + { + "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'", + "company": { + "name": "Conway LLC", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "or", + "category": "where", + "price": 563.28, + "stock_quantity": 338 + }, + "customer": { + "name": "Andrew Patel", + "age": 70, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Cain PLC", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "throw", + "category": "capital", + "price": 673.64, + "stock_quantity": 696 + }, + "customer": { + "name": "Brian Davila", + "age": 78, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Burton, Castillo and Padilla", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "Republican", + "category": "yourself", + "price": 493.68, + "stock_quantity": 131 + }, + "customer": { + "name": "Adriana Pineda", + "age": 74, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Holmes-Wall", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "foreign", + "category": "candidate", + "price": 165.03, + "stock_quantity": 517 + }, + "customer": { + "name": "Austin Peters", + "age": 18, + "country": "Oman" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gonzalez-Alexander'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gonzalez-Alexander", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "drive", + "category": "prevent", + "price": 208.91, + "stock_quantity": 874 + }, + "customer": { + "name": "Robert West", + "age": 60, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Nicholson Group", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "capital", + "category": "raise", + "price": 438.09, + "stock_quantity": 70 + }, + "customer": { + "name": "Ryan Brown", + "age": 80, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Ellis, Leonard and Garrett", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "describe", + "category": "job", + "price": 88.01, + "stock_quantity": 389 + }, + "customer": { + "name": "Jasmine Harris", + "age": 62, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Young-Rivera", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "community", + "category": "population", + "price": 92.01, + "stock_quantity": 372 + }, + "customer": { + "name": "Hailey Rollins", + "age": 43, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Jennings, Jones and Flynn", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "option", + "category": "pass", + "price": 369.85, + "stock_quantity": 787 + }, + "customer": { + "name": "Joe Guzman", + "age": 77, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Ho Group", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "increase", + "category": "message", + "price": 405.94, + "stock_quantity": 29 + }, + "customer": { + "name": "Mr. Kevin Schmidt MD", + "age": 30, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "raise", + "category": "natural", + "price": 946.54, + "stock_quantity": 540 + }, + "customer": { + "name": "Mrs. Hannah Smith", + "age": 73, + "country": "Russian Federation" + } + }, + { + "natural_query": "List all customers and their total order value for Meyer, Castro and Hudson.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Meyer, Castro and Hudson' GROUP BY c.customer_id", + "company": { + "name": "Meyer, Castro and Hudson", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "rate", + "category": "push", + "price": 949.15, + "stock_quantity": 610 + }, + "customer": { + "name": "Lisa Williamson", + "age": 37, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Weiss Ltd", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "prepare", + "category": "team", + "price": 445.59, + "stock_quantity": 826 + }, + "customer": { + "name": "Julie Harris", + "age": 18, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Perez and Sons", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "money", + "category": "recently", + "price": 263.68, + "stock_quantity": 826 + }, + "customer": { + "name": "Gary Dunn", + "age": 23, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Moreno Group", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "training", + "category": "option", + "price": 370.16, + "stock_quantity": 56 + }, + "customer": { + "name": "Bradley Sheppard", + "age": 27, + "country": "Faroe Islands" + } + }, + { + "natural_query": "List all products of Tucker, Burns and Brown ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Tucker, Burns and Brown' ORDER BY price ASC", + "company": { + "name": "Tucker, Burns and Brown", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "letter", + "category": "suffer", + "price": 593.51, + "stock_quantity": 836 + }, + "customer": { + "name": "Hayley Thomas", + "age": 72, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Cox Group", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "computer", + "category": "word", + "price": 85.1, + "stock_quantity": 772 + }, + "customer": { + "name": "Jody Ross", + "age": 47, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Evans-Burke", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "save", + "category": "similar", + "price": 195.06, + "stock_quantity": 462 + }, + "customer": { + "name": "Steven Smith", + "age": 62, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Duran, Cook and Meyer", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "and", + "category": "require", + "price": 552.3, + "stock_quantity": 918 + }, + "customer": { + "name": "Ashlee Mcdaniel", + "age": 61, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Horn-Davis", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "station", + "category": "region", + "price": 512.91, + "stock_quantity": 63 + }, + "customer": { + "name": "David Scott", + "age": 54, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Walker Group", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "many", + "category": "discussion", + "price": 92.67, + "stock_quantity": 932 + }, + "customer": { + "name": "Joseph Hunt", + "age": 73, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Silva Ltd", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "compare", + "category": "statement", + "price": 590.46, + "stock_quantity": 948 + }, + "customer": { + "name": "Steven Chen", + "age": 74, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Conner, Vazquez and Stewart", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "get", + "category": "summer", + "price": 544.8, + "stock_quantity": 73 + }, + "customer": { + "name": "Travis Fisher", + "age": 34, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Donaldson-Davis", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "than", + "category": "manager", + "price": 937.49, + "stock_quantity": 927 + }, + "customer": { + "name": "Jesus Morgan", + "age": 49, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Thompson, Hinton and Rodriguez", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "truth", + "category": "data", + "price": 628.71, + "stock_quantity": 131 + }, + "customer": { + "name": "Robert Sloan", + "age": 52, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "natural_query": "List all customers and their total order value for Costa PLC.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Costa PLC' GROUP BY c.customer_id", + "company": { + "name": "Costa PLC", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "forward", + "category": "town", + "price": 48.24, + "stock_quantity": 406 + }, + "customer": { + "name": "Daniel King", + "age": 54, + "country": "Norfolk Island" + } + }, + { + "natural_query": "Show me all products in the peace category with a price over $641.25.", + "sql_query": "SELECT * FROM products WHERE category = 'peace' AND price > 641.25", + "company": { + "name": "Yu, Perry and Jones", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "spring", + "category": "peace", + "price": 641.25, + "stock_quantity": 153 + }, + "customer": { + "name": "Reginald Knox", + "age": 56, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Russell-Pham", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "follow", + "category": "fish", + "price": 532.96, + "stock_quantity": 498 + }, + "customer": { + "name": "Lisa Short", + "age": 53, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Miller, Bennett and Wood", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "side", + "category": "more", + "price": 71.62, + "stock_quantity": 728 + }, + "customer": { + "name": "Jenny Moore", + "age": 46, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Bishop-Williams", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "daughter", + "category": "around", + "price": 822.95, + "stock_quantity": 332 + }, + "customer": { + "name": "Mark Monroe", + "age": 54, + "country": "Korea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lane PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lane PLC", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "country", + "category": "risk", + "price": 82.05, + "stock_quantity": 214 + }, + "customer": { + "name": "Christopher Wilson", + "age": 79, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Lloyd-Pratt", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "bad", + "category": "government", + "price": 673.84, + "stock_quantity": 408 + }, + "customer": { + "name": "Beth Stephens", + "age": 52, + "country": "Pitcairn Islands" + } + }, + { + "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'", + "company": { + "name": "Hayes-Brock", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "style", + "category": "newspaper", + "price": 541.71, + "stock_quantity": 646 + }, + "customer": { + "name": "Andrew Alvarado", + "age": 29, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Kent, Chavez and Benjamin", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "page", + "category": "program", + "price": 78.92, + "stock_quantity": 135 + }, + "customer": { + "name": "Tyrone Burke", + "age": 21, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Price-Miller", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "hit", + "category": "create", + "price": 73.45, + "stock_quantity": 995 + }, + "customer": { + "name": "Ashley Bauer", + "age": 68, + "country": "American Samoa" + } + }, + { + "natural_query": "Show me all products in the staff category with a price over $810.71.", + "sql_query": "SELECT * FROM products WHERE category = 'staff' AND price > 810.71", + "company": { + "name": "Lee-Cole", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "natural", + "category": "staff", + "price": 810.71, + "stock_quantity": 631 + }, + "customer": { + "name": "Jonathan Rivera", + "age": 60, + "country": "Honduras" + } + }, + { + "natural_query": "What are the top 5 products by customers for Powell Ltd last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Powell Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5", + "company": { + "name": "Powell Ltd", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "show", + "category": "sense", + "price": 344.69, + "stock_quantity": 702 + }, + "customer": { + "name": "Kevin Hernandez", + "age": 64, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Salas Group", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "Republican", + "category": "science", + "price": 219.44, + "stock_quantity": 966 + }, + "customer": { + "name": "Matthew Dean", + "age": 30, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Flores-Sanford", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "back", + "category": "agree", + "price": 674.95, + "stock_quantity": 636 + }, + "customer": { + "name": "Jennifer Kidd", + "age": 27, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Jenkins-Carroll", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "fight", + "category": "single", + "price": 351.35, + "stock_quantity": 96 + }, + "customer": { + "name": "Laura Miller", + "age": 68, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Dillon, Paul and Boyd", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "yes", + "category": "identify", + "price": 812.54, + "stock_quantity": 187 + }, + "customer": { + "name": "Jennifer Kim", + "age": 42, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Holmes-Hester", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "must", + "category": "cost", + "price": 620.54, + "stock_quantity": 324 + }, + "customer": { + "name": "Jeffrey Palmer", + "age": 77, + "country": "Guam" + } + }, + { + "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'", + "company": { + "name": "Lawson LLC", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "research", + "category": "relate", + "price": 27.67, + "stock_quantity": 140 + }, + "customer": { + "name": "Sean George", + "age": 76, + "country": "Colombia" + } + }, + { + "natural_query": "Show me all products in the than category with a price over $927.71.", + "sql_query": "SELECT * FROM products WHERE category = 'than' AND price > 927.71", + "company": { + "name": "Tyler, Little and Atkins", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "particular", + "category": "than", + "price": 927.71, + "stock_quantity": 832 + }, + "customer": { + "name": "Manuel Gonzalez", + "age": 49, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Dixon, Henderson and Poole", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "three", + "category": "model", + "price": 217.47, + "stock_quantity": 597 + }, + "customer": { + "name": "Brandon Carpenter PhD", + "age": 67, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Brown-Donaldson", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "include", + "category": "peace", + "price": 234.03, + "stock_quantity": 748 + }, + "customer": { + "name": "Marcus Duffy", + "age": 49, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Smith and Sons", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "writer", + "category": "start", + "price": 156.26, + "stock_quantity": 950 + }, + "customer": { + "name": "Maria Perry", + "age": 54, + "country": "Morocco" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lamb, Li and Barber'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lamb, Li and Barber", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "now", + "category": "property", + "price": 748.52, + "stock_quantity": 947 + }, + "customer": { + "name": "Cody Robinson", + "age": 46, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Taylor-Allen", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "eight", + "category": "these", + "price": 923.32, + "stock_quantity": 782 + }, + "customer": { + "name": "Kyle Kennedy", + "age": 57, + "country": "Belarus" + } + }, + { + "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'", + "company": { + "name": "Jenkins Group", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "letter", + "category": "get", + "price": 852.58, + "stock_quantity": 389 + }, + "customer": { + "name": "Amanda Barnes", + "age": 67, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Buck Inc", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "authority", + "category": "rich", + "price": 41.63, + "stock_quantity": 322 + }, + "customer": { + "name": "Wanda Lawson", + "age": 19, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Rogers-Mercado", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "you", + "category": "example", + "price": 678.91, + "stock_quantity": 456 + }, + "customer": { + "name": "John Henderson", + "age": 80, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "natural_query": "List all customers and their total order value for Macias, Foster and Perez.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Macias, Foster and Perez' GROUP BY c.customer_id", + "company": { + "name": "Macias, Foster and Perez", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "report", + "category": "state", + "price": 45.23, + "stock_quantity": 653 + }, + "customer": { + "name": "Eric Wilson", + "age": 41, + "country": "Serbia" + } + }, + { + "natural_query": "How many orders were placed for Peck-Andrews between 2024-04-06 and 2024-05-27?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Peck-Andrews' AND order_date BETWEEN '2024-04-06' AND '2024-05-27'", + "company": { + "name": "Peck-Andrews", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "black", + "category": "eight", + "price": 585.77, + "stock_quantity": 425 + }, + "customer": { + "name": "Christopher Holland", + "age": 72, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Clay, Ramirez and Robinson", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "already", + "category": "American", + "price": 491.18, + "stock_quantity": 160 + }, + "customer": { + "name": "Kimberly Arias", + "age": 78, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Stewart LLC", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "six", + "category": "hope", + "price": 451.89, + "stock_quantity": 550 + }, + "customer": { + "name": "Tony Combs", + "age": 77, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Robertson-Hernandez", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "act", + "category": "cell", + "price": 993.29, + "stock_quantity": 463 + }, + "customer": { + "name": "Jennifer Sullivan", + "age": 28, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Lucas Group", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "drug", + "category": "apply", + "price": 247.18, + "stock_quantity": 382 + }, + "customer": { + "name": "Erik Anderson DDS", + "age": 48, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Skinner, Miller and Davis", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "rule", + "category": "realize", + "price": 298.95, + "stock_quantity": 134 + }, + "customer": { + "name": "Christian Kelly", + "age": 36, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "White, Monroe and Oliver", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "national", + "category": "generation", + "price": 50.24, + "stock_quantity": 745 + }, + "customer": { + "name": "Jeremiah Hansen", + "age": 28, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Smith", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "say", + "category": "deep", + "price": 729.21, + "stock_quantity": 345 + }, + "customer": { + "name": "Sabrina Brooks", + "age": 23, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Wilson, Bender and Lopez", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "about", + "category": "successful", + "price": 897.81, + "stock_quantity": 406 + }, + "customer": { + "name": "Ian Petty", + "age": 44, + "country": "Georgia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gibson-Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gibson-Miller", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "human", + "category": "door", + "price": 689.54, + "stock_quantity": 52 + }, + "customer": { + "name": "Angel Villarreal", + "age": 39, + "country": "Taiwan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wright PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wright PLC", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "attack", + "category": "message", + "price": 564.65, + "stock_quantity": 696 + }, + "customer": { + "name": "Nicole May", + "age": 75, + "country": "Guinea-Bissau" + } + }, + { + "natural_query": "List all products of Elliott Ltd ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Elliott Ltd' ORDER BY price ASC", + "company": { + "name": "Elliott Ltd", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "continue", + "category": "mouth", + "price": 283.86, + "stock_quantity": 484 + }, + "customer": { + "name": "Jared Diaz", + "age": 22, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Jones Ltd", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "across", + "category": "build", + "price": 54.21, + "stock_quantity": 893 + }, + "customer": { + "name": "Nicole Figueroa", + "age": 51, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Vaughan-Mahoney", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "mouth", + "category": "quite", + "price": 735.83, + "stock_quantity": 251 + }, + "customer": { + "name": "Samantha Mcpherson", + "age": 37, + "country": "Cook Islands" + } + }, + { + "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'", + "company": { + "name": "Welch Inc", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "billion", + "category": "if", + "price": 147.59, + "stock_quantity": 863 + }, + "customer": { + "name": "Kevin Lopez", + "age": 38, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Blair, Robinson and Bowen", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "paper", + "category": "news", + "price": 381.04, + "stock_quantity": 105 + }, + "customer": { + "name": "Samantha Mckenzie", + "age": 45, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Castillo, Thomas and Moss", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "situation", + "category": "especially", + "price": 169.34, + "stock_quantity": 667 + }, + "customer": { + "name": "Emily Becker", + "age": 54, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Parker, Morgan and Williams", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "contain", + "category": "some", + "price": 524.37, + "stock_quantity": 845 + }, + "customer": { + "name": "Lisa Rodriguez", + "age": 30, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Schneider-Avery", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "writer", + "category": "practice", + "price": 481.01, + "stock_quantity": 990 + }, + "customer": { + "name": "Benjamin Gonzalez", + "age": 77, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Brandt, Blair and Jackson", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "issue", + "category": "right", + "price": 583.14, + "stock_quantity": 274 + }, + "customer": { + "name": "Michael Kelley", + "age": 43, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Johnson, Schmitt and Hernandez", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "shake", + "category": "film", + "price": 330.04, + "stock_quantity": 887 + }, + "customer": { + "name": "Charles Cruz", + "age": 68, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Vargas-Singh", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "during", + "category": "lay", + "price": 406.56, + "stock_quantity": 841 + }, + "customer": { + "name": "Destiny Romero", + "age": 68, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Moreno, Burke and Ayers", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "role", + "category": "form", + "price": 740.94, + "stock_quantity": 843 + }, + "customer": { + "name": "Jamie Mercer", + "age": 75, + "country": "Yemen" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hall, Anderson and Lopez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hall, Anderson and Lopez", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "two", + "category": "hour", + "price": 427.04, + "stock_quantity": 96 + }, + "customer": { + "name": "Jose Jones", + "age": 45, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Shaffer Inc", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "wall", + "category": "contain", + "price": 279.03, + "stock_quantity": 8 + }, + "customer": { + "name": "Andrew Gill", + "age": 65, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Kelley, Cole and Coleman", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "yard", + "category": "experience", + "price": 765.07, + "stock_quantity": 371 + }, + "customer": { + "name": "Melanie Oconnor DDS", + "age": 56, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Vaughan, Hull and Huffman", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "teach", + "category": "clearly", + "price": 288.15, + "stock_quantity": 400 + }, + "customer": { + "name": "Christine Stanley DDS", + "age": 36, + "country": "Belize" + } + }, + { + "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'", + "company": { + "name": "Costa-Jackson", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "month", + "category": "this", + "price": 937.27, + "stock_quantity": 137 + }, + "customer": { + "name": "Billy Curtis", + "age": 68, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Shields, Martin and Cox", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "owner", + "category": "item", + "price": 956.17, + "stock_quantity": 575 + }, + "customer": { + "name": "Cindy Payne", + "age": 69, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Morris, Welch and Rodriguez", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "past", + "category": "state", + "price": 403.52, + "stock_quantity": 125 + }, + "customer": { + "name": "Valerie Sanchez", + "age": 53, + "country": "Heard Island and McDonald Islands" + } + }, + { + "natural_query": "List all products of Chambers Group ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Chambers Group' ORDER BY stock_quantity ASC", + "company": { + "name": "Chambers Group", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "weight", + "category": "pass", + "price": 833.68, + "stock_quantity": 525 + }, + "customer": { + "name": "Stephanie Manning", + "age": 69, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Mercado, Obrien and Norton", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "by", + "category": "particular", + "price": 59.77, + "stock_quantity": 788 + }, + "customer": { + "name": "Kelli Garrett", + "age": 47, + "country": "Wallis and Futuna" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dillon, Ford and Salinas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dillon, Ford and Salinas", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "leave", + "category": "paper", + "price": 156.37, + "stock_quantity": 335 + }, + "customer": { + "name": "Nathan Morris", + "age": 32, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Farley LLC", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "group", + "category": "easy", + "price": 522.94, + "stock_quantity": 396 + }, + "customer": { + "name": "Terry Rush", + "age": 73, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Jensen-Fry", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "front", + "category": "natural", + "price": 386.54, + "stock_quantity": 181 + }, + "customer": { + "name": "James Mcdonald", + "age": 46, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Ross Group", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "some", + "category": "half", + "price": 232.23, + "stock_quantity": 703 + }, + "customer": { + "name": "Elizabeth Elliott", + "age": 77, + "country": "Saint Martin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown, Owen and Bonilla'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown, Owen and Bonilla", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "since", + "category": "because", + "price": 466.48, + "stock_quantity": 523 + }, + "customer": { + "name": "Sherri Martinez PhD", + "age": 64, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Smith, Valdez and Jordan", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "south", + "category": "maybe", + "price": 897.74, + "stock_quantity": 684 + }, + "customer": { + "name": "Ms. Kim Smith", + "age": 43, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Andrews Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Andrews Inc", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "statement", + "category": "rock", + "price": 177.35, + "stock_quantity": 790 + }, + "customer": { + "name": "Margaret Jenkins", + "age": 40, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Perkins, Brooks and Smith", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "subject", + "category": "for", + "price": 235.66, + "stock_quantity": 582 + }, + "customer": { + "name": "Cheryl Nelson", + "age": 45, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Webb, Stafford and Davis", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "television", + "category": "result", + "price": 904.53, + "stock_quantity": 84 + }, + "customer": { + "name": "Mike Bennett", + "age": 31, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Goodman-Blair", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "list", + "category": "pay", + "price": 76.75, + "stock_quantity": 377 + }, + "customer": { + "name": "Jon Green", + "age": 33, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Howard Ltd", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "truth", + "category": "plant", + "price": 670.45, + "stock_quantity": 512 + }, + "customer": { + "name": "Jennifer Carter", + "age": 27, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Ramirez Group", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "little", + "category": "order", + "price": 148.32, + "stock_quantity": 707 + }, + "customer": { + "name": "Cynthia Robinson", + "age": 51, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Ramsey LLC", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "guess", + "category": "whether", + "price": 74.77, + "stock_quantity": 807 + }, + "customer": { + "name": "Courtney Fields", + "age": 54, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "natural_query": "What is the minimum rating of all products for Yang, Flores and Townsend?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Yang, Flores and Townsend'", + "company": { + "name": "Yang, Flores and Townsend", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "relate", + "category": "deep", + "price": 549.96, + "stock_quantity": 662 + }, + "customer": { + "name": "Alison Turner", + "age": 20, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Diaz-Anderson", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "organization", + "category": "likely", + "price": 888.35, + "stock_quantity": 34 + }, + "customer": { + "name": "David Vasquez", + "age": 58, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Ruiz, Marshall and Williams", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "seven", + "category": "pattern", + "price": 419.79, + "stock_quantity": 949 + }, + "customer": { + "name": "Noah Gomez", + "age": 58, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Hernandez, Mcguire and Martinez", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "concern", + "category": "visit", + "price": 192.0, + "stock_quantity": 661 + }, + "customer": { + "name": "Ronald Wiley", + "age": 21, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Morales-Dougherty", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "much", + "category": "head", + "price": 22.12, + "stock_quantity": 696 + }, + "customer": { + "name": "Donald Jones", + "age": 56, + "country": "North Macedonia" + } + }, + { + "natural_query": "What is the minimum rating of all products for Smith-Becker?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Smith-Becker'", + "company": { + "name": "Smith-Becker", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "behavior", + "category": "any", + "price": 354.06, + "stock_quantity": 107 + }, + "customer": { + "name": "James Banks", + "age": 19, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Simmons-Miller", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "item", + "category": "country", + "price": 721.56, + "stock_quantity": 826 + }, + "customer": { + "name": "Ethan Gallagher", + "age": 37, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Alvarez PLC", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "participant", + "category": "everything", + "price": 977.11, + "stock_quantity": 540 + }, + "customer": { + "name": "Jennifer Rhodes", + "age": 62, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "French, Johnson and Williams", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "rather", + "category": "economy", + "price": 639.1, + "stock_quantity": 226 + }, + "customer": { + "name": "Ashley Tate", + "age": 71, + "country": "Micronesia" + } + }, + { + "natural_query": "What is the total quantity for each category in Tucker, Zamora and Brown?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Tucker, Zamora and Brown' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Tucker, Zamora and Brown", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "ready", + "category": "employee", + "price": 407.73, + "stock_quantity": 200 + }, + "customer": { + "name": "James Graham", + "age": 59, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Freeman, Price and Alvarez", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "hot", + "category": "information", + "price": 277.52, + "stock_quantity": 536 + }, + "customer": { + "name": "Cindy Dougherty", + "age": 21, + "country": "Samoa" + } + }, + { + "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'", + "company": { + "name": "Edwards-Nunez", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "across", + "category": "own", + "price": 163.21, + "stock_quantity": 896 + }, + "customer": { + "name": "Emily Lewis", + "age": 42, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Robertson and Sons", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "else", + "category": "summer", + "price": 243.5, + "stock_quantity": 784 + }, + "customer": { + "name": "Stephanie Oliver", + "age": 41, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Cooper-Welch", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "technology", + "category": "prevent", + "price": 86.24, + "stock_quantity": 530 + }, + "customer": { + "name": "Krista Grant", + "age": 24, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Brown, Dunn and Hernandez", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "rest", + "category": "production", + "price": 806.94, + "stock_quantity": 644 + }, + "customer": { + "name": "Kimberly Wells", + "age": 32, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Wiley Inc", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "any", + "category": "myself", + "price": 448.91, + "stock_quantity": 783 + }, + "customer": { + "name": "Mary Herrera", + "age": 56, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Woodward, Walker and Murphy", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "concern", + "category": "like", + "price": 918.97, + "stock_quantity": 397 + }, + "customer": { + "name": "Robert Brown", + "age": 44, + "country": "Belarus" + } + }, + { + "natural_query": "What is the minimum price of all products for Rodriguez LLC?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Rodriguez LLC'", + "company": { + "name": "Rodriguez LLC", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "bag", + "category": "then", + "price": 893.75, + "stock_quantity": 382 + }, + "customer": { + "name": "Mario James", + "age": 39, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Cameron-Ortega", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "particularly", + "category": "purpose", + "price": 529.68, + "stock_quantity": 575 + }, + "customer": { + "name": "Kathleen Robinson", + "age": 34, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Santos-Livingston", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "article", + "category": "television", + "price": 280.9, + "stock_quantity": 845 + }, + "customer": { + "name": "Regina Moreno", + "age": 31, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "White Ltd", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "data", + "category": "cover", + "price": 694.78, + "stock_quantity": 106 + }, + "customer": { + "name": "Carl Rios", + "age": 66, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Hammond Ltd", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "couple", + "category": "majority", + "price": 88.41, + "stock_quantity": 833 + }, + "customer": { + "name": "David Johnson", + "age": 75, + "country": "Georgia" + } + }, + { + "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'", + "company": { + "name": "Rhodes-Garcia", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "help", + "category": "could", + "price": 285.71, + "stock_quantity": 227 + }, + "customer": { + "name": "Michael Fletcher", + "age": 35, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Weeks Ltd", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "stock", + "category": "anything", + "price": 795.35, + "stock_quantity": 244 + }, + "customer": { + "name": "Jose Cisneros MD", + "age": 30, + "country": "Samoa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Coleman-Russo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Coleman-Russo", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "stand", + "category": "rather", + "price": 833.84, + "stock_quantity": 34 + }, + "customer": { + "name": "Jack Monroe", + "age": 48, + "country": "Faroe Islands" + } + }, + { + "natural_query": "What are the top 8 products by revenue for Lynch LLC this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Lynch LLC' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8", + "company": { + "name": "Lynch LLC", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "plan", + "category": "whom", + "price": 990.83, + "stock_quantity": 615 + }, + "customer": { + "name": "Sydney Jackson", + "age": 69, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Parks and Sons", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "experience", + "category": "spring", + "price": 617.16, + "stock_quantity": 840 + }, + "customer": { + "name": "Andrea Brown", + "age": 76, + "country": "Namibia" + } + }, + { + "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'", + "company": { + "name": "Potter-Ho", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "candidate", + "category": "industry", + "price": 292.53, + "stock_quantity": 688 + }, + "customer": { + "name": "Dr. Susan Cook", + "age": 60, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Armstrong-French", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "security", + "category": "cup", + "price": 997.19, + "stock_quantity": 117 + }, + "customer": { + "name": "Jonathon Rogers", + "age": 34, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Anderson, Travis and Taylor", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "sense", + "category": "board", + "price": 271.46, + "stock_quantity": 24 + }, + "customer": { + "name": "Julie Morris", + "age": 51, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Perkins, Daniel and Warren", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "safe", + "category": "road", + "price": 453.84, + "stock_quantity": 652 + }, + "customer": { + "name": "Stephen Pena", + "age": 68, + "country": "Solomon Islands" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Thomas, Smith and Clark?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Thomas, Smith and Clark'", + "company": { + "name": "Thomas, Smith and Clark", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "door", + "category": "which", + "price": 252.7, + "stock_quantity": 646 + }, + "customer": { + "name": "Jacob Kelly", + "age": 24, + "country": "French Polynesia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Burns Ltd for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Burns Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Burns Ltd", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "long", + "category": "voice", + "price": 205.14, + "stock_quantity": 968 + }, + "customer": { + "name": "David Alexander", + "age": 75, + "country": "Guatemala" + } + }, + { + "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'", + "company": { + "name": "Gomez-Day", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "economic", + "category": "Mrs", + "price": 119.69, + "stock_quantity": 682 + }, + "customer": { + "name": "Leah Williams", + "age": 70, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Bell Inc", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "he", + "category": "game", + "price": 942.73, + "stock_quantity": 577 + }, + "customer": { + "name": "Nicole Hall", + "age": 35, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Wheeler, Fleming and Davis", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "sure", + "category": "make", + "price": 592.4, + "stock_quantity": 180 + }, + "customer": { + "name": "Nancy Collins", + "age": 54, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Brooks-Carter", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "take", + "category": "popular", + "price": 234.93, + "stock_quantity": 751 + }, + "customer": { + "name": "Tammy Boone", + "age": 60, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Henry-Scott", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "after", + "category": "behind", + "price": 46.57, + "stock_quantity": 992 + }, + "customer": { + "name": "Danielle Lynch", + "age": 59, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Ortiz-Wood", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "right", + "category": "loss", + "price": 41.09, + "stock_quantity": 365 + }, + "customer": { + "name": "Peter Lawson", + "age": 33, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Martin Inc", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "resource", + "category": "fly", + "price": 521.09, + "stock_quantity": 601 + }, + "customer": { + "name": "Jaclyn Johnston", + "age": 53, + "country": "United States Minor Outlying Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williamson Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williamson Ltd", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "chance", + "category": "fast", + "price": 225.63, + "stock_quantity": 662 + }, + "customer": { + "name": "Robert Gray", + "age": 35, + "country": "Cook Islands" + } + }, + { + "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'", + "company": { + "name": "Collins-Davidson", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "rise", + "category": "wide", + "price": 588.86, + "stock_quantity": 427 + }, + "customer": { + "name": "Cheryl Parks", + "age": 50, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Matthews-Rodriguez", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "western", + "category": "politics", + "price": 227.29, + "stock_quantity": 368 + }, + "customer": { + "name": "Katrina Thompson", + "age": 40, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Colon, Phillips and Thornton", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "find", + "category": "hospital", + "price": 543.61, + "stock_quantity": 103 + }, + "customer": { + "name": "Rhonda Stephens", + "age": 37, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Cook-Anderson", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "adult", + "category": "six", + "price": 408.65, + "stock_quantity": 62 + }, + "customer": { + "name": "Howard Miller", + "age": 49, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Cruz-Santos", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "like", + "category": "stuff", + "price": 368.45, + "stock_quantity": 652 + }, + "customer": { + "name": "Daniel Morgan", + "age": 70, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Reyes Inc", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "community", + "category": "stand", + "price": 467.05, + "stock_quantity": 937 + }, + "customer": { + "name": "Lisa Williams", + "age": 22, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Gibson PLC", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "test", + "category": "whatever", + "price": 509.43, + "stock_quantity": 7 + }, + "customer": { + "name": "Linda Mclaughlin", + "age": 60, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Reid, Ramsey and Sims", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "build", + "category": "discussion", + "price": 265.61, + "stock_quantity": 293 + }, + "customer": { + "name": "Larry Jackson", + "age": 73, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Flores, Vega and Richards", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "lay", + "category": "evidence", + "price": 452.04, + "stock_quantity": 165 + }, + "customer": { + "name": "Melissa Hays", + "age": 51, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Green, Ward and Medina", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "feeling", + "category": "back", + "price": 745.11, + "stock_quantity": 317 + }, + "customer": { + "name": "Tara Davis", + "age": 53, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Anderson Ltd", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "box", + "category": "hear", + "price": 101.76, + "stock_quantity": 594 + }, + "customer": { + "name": "Michael Cruz", + "age": 76, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Miller, Johnson and Ferrell", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "protect", + "category": "war", + "price": 888.55, + "stock_quantity": 454 + }, + "customer": { + "name": "Ashley Carter", + "age": 43, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Jones, Meyer and Jones", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "capital", + "category": "democratic", + "price": 695.68, + "stock_quantity": 650 + }, + "customer": { + "name": "Connor Sanders", + "age": 64, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Johnson, Hughes and Conner", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "remember", + "category": "individual", + "price": 869.84, + "stock_quantity": 912 + }, + "customer": { + "name": "Katherine Gonzalez", + "age": 57, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Evans and Sons", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "clear", + "category": "building", + "price": 632.83, + "stock_quantity": 371 + }, + "customer": { + "name": "Cheryl Gregory", + "age": 63, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Jenkins, Holden and Jones", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "cup", + "category": "beautiful", + "price": 573.09, + "stock_quantity": 610 + }, + "customer": { + "name": "Nancy Harvey", + "age": 34, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Leach-Richardson", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "simply", + "category": "specific", + "price": 152.97, + "stock_quantity": 878 + }, + "customer": { + "name": "Sarah Leonard", + "age": 55, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "Madden, Sutton and Meyer", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "cost", + "category": "store", + "price": 403.89, + "stock_quantity": 20 + }, + "customer": { + "name": "Caitlyn Tyler", + "age": 54, + "country": "Nigeria" + } + }, + { + "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'", + "company": { + "name": "Ramirez-Richardson", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "goal", + "category": "late", + "price": 296.37, + "stock_quantity": 979 + }, + "customer": { + "name": "Isaac Davis", + "age": 54, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Garcia-Wilson", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "pretty", + "category": "group", + "price": 14.02, + "stock_quantity": 415 + }, + "customer": { + "name": "Gregory Peterson", + "age": 78, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Barnett Inc", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "thousand", + "category": "father", + "price": 532.32, + "stock_quantity": 564 + }, + "customer": { + "name": "Jessica Allen", + "age": 18, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Moreno, Brown and Mccoy", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "college", + "category": "radio", + "price": 359.37, + "stock_quantity": 596 + }, + "customer": { + "name": "Jasmine Phillips", + "age": 24, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Dyer-Powers", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "visit", + "category": "whom", + "price": 205.12, + "stock_quantity": 325 + }, + "customer": { + "name": "Jacob Garcia", + "age": 40, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Carter-Grant", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "strong", + "category": "time", + "price": 180.42, + "stock_quantity": 813 + }, + "customer": { + "name": "Ms. Sarah Stevenson DDS", + "age": 69, + "country": "United Kingdom" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davenport-Bennett'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davenport-Bennett", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "nearly", + "category": "something", + "price": 130.67, + "stock_quantity": 934 + }, + "customer": { + "name": "Peter Taylor", + "age": 65, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Porter PLC", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "few", + "category": "today", + "price": 192.24, + "stock_quantity": 94 + }, + "customer": { + "name": "Amy Anderson", + "age": 24, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Hester-Andrews", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "remember", + "category": "these", + "price": 373.07, + "stock_quantity": 13 + }, + "customer": { + "name": "Denise Rice", + "age": 61, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Wyatt and Sons", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "lose", + "category": "next", + "price": 883.64, + "stock_quantity": 113 + }, + "customer": { + "name": "Ashley Harding", + "age": 26, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Johnson-Davis", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "ready", + "category": "event", + "price": 753.51, + "stock_quantity": 849 + }, + "customer": { + "name": "Carolyn Rosales", + "age": 19, + "country": "Micronesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia, Doyle and Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia, Doyle and Anderson", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "police", + "category": "painting", + "price": 442.87, + "stock_quantity": 142 + }, + "customer": { + "name": "Alexis Shaffer", + "age": 60, + "country": "Puerto Rico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor LLC", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "probably", + "category": "technology", + "price": 443.21, + "stock_quantity": 24 + }, + "customer": { + "name": "Jacob Fowler", + "age": 64, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Smith-Huerta", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "throughout", + "category": "time", + "price": 738.5, + "stock_quantity": 80 + }, + "customer": { + "name": "James Butler", + "age": 27, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Hart-Dougherty", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "city", + "category": "fact", + "price": 173.07, + "stock_quantity": 372 + }, + "customer": { + "name": "Julie Mitchell", + "age": 65, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Jordan PLC", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "think", + "category": "happen", + "price": 849.2, + "stock_quantity": 192 + }, + "customer": { + "name": "Charles Watson", + "age": 21, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Olson, Baker and Thomas", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "minute", + "category": "little", + "price": 520.58, + "stock_quantity": 638 + }, + "customer": { + "name": "Amanda King", + "age": 24, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Owen-Parsons", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "crime", + "category": "top", + "price": 758.85, + "stock_quantity": 779 + }, + "customer": { + "name": "Erica Delgado", + "age": 44, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baker Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baker Inc", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "can", + "category": "option", + "price": 980.88, + "stock_quantity": 251 + }, + "customer": { + "name": "Elizabeth Caldwell", + "age": 54, + "country": "Somalia" + } + }, + { + "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'", + "company": { + "name": "Dominguez, Lopez and Booth", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "deep", + "category": "organization", + "price": 516.72, + "stock_quantity": 798 + }, + "customer": { + "name": "Alexander Huffman", + "age": 53, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Sims PLC", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "customer", + "category": "feeling", + "price": 536.52, + "stock_quantity": 566 + }, + "customer": { + "name": "Jessica Gray", + "age": 54, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Jones Group", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "force", + "category": "analysis", + "price": 209.28, + "stock_quantity": 175 + }, + "customer": { + "name": "Miguel Ibarra", + "age": 55, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Rodriguez-Cooke", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "will", + "category": "face", + "price": 681.16, + "stock_quantity": 581 + }, + "customer": { + "name": "Lindsay Dalton", + "age": 58, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Ortiz and Wilson", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "experience", + "category": "necessary", + "price": 535.64, + "stock_quantity": 988 + }, + "customer": { + "name": "Abigail Bell", + "age": 47, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Phillips-Davenport", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "society", + "category": "civil", + "price": 284.04, + "stock_quantity": 22 + }, + "customer": { + "name": "Margaret Howard", + "age": 77, + "country": "Isle of Man" + } + }, + { + "natural_query": "What is the average rating of all products for Smith PLC?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Smith PLC'", + "company": { + "name": "Smith PLC", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "sense", + "category": "hold", + "price": 651.32, + "stock_quantity": 707 + }, + "customer": { + "name": "Anthony Mcgee", + "age": 72, + "country": "Wallis and Futuna" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Raymond-Calhoun'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Raymond-Calhoun", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "actually", + "category": "produce", + "price": 606.26, + "stock_quantity": 823 + }, + "customer": { + "name": "Antonio Short", + "age": 79, + "country": "Ukraine" + } + }, + { + "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'", + "company": { + "name": "Morrison-Anderson", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "just", + "category": "couple", + "price": 522.86, + "stock_quantity": 154 + }, + "customer": { + "name": "Lisa Martin", + "age": 60, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Carlson-Sanders", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "anything", + "category": "physical", + "price": 401.79, + "stock_quantity": 726 + }, + "customer": { + "name": "Lisa Le", + "age": 30, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Perkins Group", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "store", + "category": "country", + "price": 313.66, + "stock_quantity": 352 + }, + "customer": { + "name": "Barry Johnson", + "age": 66, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Anderson, House and Stewart", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "Mrs", + "category": "miss", + "price": 46.67, + "stock_quantity": 847 + }, + "customer": { + "name": "Mrs. Erin Bowers", + "age": 19, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Lee, Ramos and Spencer", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "subject", + "category": "imagine", + "price": 13.08, + "stock_quantity": 343 + }, + "customer": { + "name": "Billy Spencer", + "age": 42, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Perez, Nichols and Jackson", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "most", + "category": "when", + "price": 217.62, + "stock_quantity": 644 + }, + "customer": { + "name": "James Herrera", + "age": 42, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Flynn-Garcia", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "just", + "category": "draw", + "price": 591.21, + "stock_quantity": 545 + }, + "customer": { + "name": "Marc Mitchell", + "age": 49, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Giles Ltd", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "strong", + "category": "customer", + "price": 470.09, + "stock_quantity": 530 + }, + "customer": { + "name": "Janet Gomez", + "age": 27, + "country": "Georgia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith Inc", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "change", + "category": "prove", + "price": 518.14, + "stock_quantity": 225 + }, + "customer": { + "name": "Deborah Nguyen", + "age": 50, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Taylor-Frank", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "according", + "category": "language", + "price": 318.17, + "stock_quantity": 853 + }, + "customer": { + "name": "Benjamin Ruiz", + "age": 75, + "country": "Belarus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez Group", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "the", + "category": "attorney", + "price": 506.6, + "stock_quantity": 624 + }, + "customer": { + "name": "Monica Elliott", + "age": 77, + "country": "Norway" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cunningham-Ramsey'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cunningham-Ramsey", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "instead", + "category": "evening", + "price": 191.89, + "stock_quantity": 641 + }, + "customer": { + "name": "Michael Huynh", + "age": 65, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Butler, Johnson and Miller", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "answer", + "category": "herself", + "price": 66.24, + "stock_quantity": 629 + }, + "customer": { + "name": "Nancy Evans", + "age": 36, + "country": "Tuvalu" + } + }, + { + "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'", + "company": { + "name": "Clark, Hale and Lewis", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "event", + "category": "message", + "price": 334.59, + "stock_quantity": 192 + }, + "customer": { + "name": "Roberto Hampton", + "age": 24, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Porter PLC", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "school", + "category": "quite", + "price": 297.62, + "stock_quantity": 633 + }, + "customer": { + "name": "Christopher Barton", + "age": 70, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Tran-Smith", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "operation", + "category": "million", + "price": 54.96, + "stock_quantity": 29 + }, + "customer": { + "name": "Arthur Booth", + "age": 54, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Ray", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "take", + "category": "people", + "price": 153.37, + "stock_quantity": 169 + }, + "customer": { + "name": "Jason Shaw", + "age": 33, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Nash and Sons", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "man", + "category": "help", + "price": 880.23, + "stock_quantity": 315 + }, + "customer": { + "name": "Joseph Jacobs", + "age": 76, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Mcconnell Group", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "population", + "category": "past", + "price": 350.89, + "stock_quantity": 242 + }, + "customer": { + "name": "John Hutchinson", + "age": 45, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Tran, Rogers and Hays", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "memory", + "category": "go", + "price": 592.02, + "stock_quantity": 307 + }, + "customer": { + "name": "Courtney Rogers", + "age": 45, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Joseph PLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "air", + "category": "seek", + "price": 685.85, + "stock_quantity": 443 + }, + "customer": { + "name": "Alicia Peterson", + "age": 67, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Armstrong, Dunlap and Johnson", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "put", + "category": "manage", + "price": 469.76, + "stock_quantity": 865 + }, + "customer": { + "name": "Anthony Solis", + "age": 55, + "country": "Lao People's Democratic Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martinez-Joseph'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martinez-Joseph", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "if", + "category": "turn", + "price": 325.84, + "stock_quantity": 419 + }, + "customer": { + "name": "Elizabeth Chavez", + "age": 75, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Gibson-Carney", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "bag", + "category": "claim", + "price": 462.03, + "stock_quantity": 596 + }, + "customer": { + "name": "Mark Ramirez", + "age": 63, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Garcia-Oliver", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "cover", + "category": "imagine", + "price": 836.69, + "stock_quantity": 40 + }, + "customer": { + "name": "Matthew Smith", + "age": 51, + "country": "Yemen" + } + }, + { + "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'", + "company": { + "name": "Collins, Smith and Graham", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "gas", + "category": "usually", + "price": 639.96, + "stock_quantity": 236 + }, + "customer": { + "name": "Michael Russo", + "age": 47, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Flores Ltd", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "court", + "category": "western", + "price": 879.85, + "stock_quantity": 119 + }, + "customer": { + "name": "Mark Pham", + "age": 28, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Hodge, Hunt and Banks", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "final", + "category": "show", + "price": 300.51, + "stock_quantity": 755 + }, + "customer": { + "name": "Sarah Larson", + "age": 67, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Johnston-Wright", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "sell", + "category": "attention", + "price": 65.33, + "stock_quantity": 953 + }, + "customer": { + "name": "Tiffany Glover", + "age": 68, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Daniel, Callahan and Mccormick", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "work", + "category": "letter", + "price": 907.13, + "stock_quantity": 309 + }, + "customer": { + "name": "Aaron Taylor", + "age": 69, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Flores, Terry and Wilson", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "audience", + "category": "democratic", + "price": 769.78, + "stock_quantity": 480 + }, + "customer": { + "name": "Michael Chapman", + "age": 44, + "country": "Cayman Islands" + } + }, + { + "natural_query": "List all customers and their total order value for Howard, Henry and Moore.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Howard, Henry and Moore' GROUP BY c.customer_id", + "company": { + "name": "Howard, Henry and Moore", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "history", + "category": "apply", + "price": 583.6, + "stock_quantity": 536 + }, + "customer": { + "name": "Gregory Andersen", + "age": 35, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Bryant LLC", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "ten", + "category": "level", + "price": 512.17, + "stock_quantity": 677 + }, + "customer": { + "name": "Joseph Lopez", + "age": 22, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Cox Ltd", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "history", + "category": "behavior", + "price": 236.88, + "stock_quantity": 454 + }, + "customer": { + "name": "Stephanie Lewis", + "age": 33, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Mcintosh, Dunn and Rodriguez", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "week", + "category": "too", + "price": 960.86, + "stock_quantity": 531 + }, + "customer": { + "name": "Vicki Rowe", + "age": 55, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Kelly Inc", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "son", + "category": "quality", + "price": 934.51, + "stock_quantity": 923 + }, + "customer": { + "name": "Ashley Miller", + "age": 78, + "country": "Jamaica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Turner and Spencer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Turner and Spencer", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "effort", + "category": "want", + "price": 999.74, + "stock_quantity": 587 + }, + "customer": { + "name": "Michael Love", + "age": 57, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Reilly-Carter", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "before", + "category": "listen", + "price": 729.44, + "stock_quantity": 374 + }, + "customer": { + "name": "Lisa Jackson", + "age": 55, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Waters-James", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "care", + "category": "interview", + "price": 937.8, + "stock_quantity": 657 + }, + "customer": { + "name": "Kimberly Joseph", + "age": 29, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Carter-Cunningham", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "bar", + "category": "skill", + "price": 300.13, + "stock_quantity": 560 + }, + "customer": { + "name": "Troy Ayers", + "age": 73, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Flowers, Cook and Mercado", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "nice", + "category": "development", + "price": 862.29, + "stock_quantity": 298 + }, + "customer": { + "name": "Andrea Allen", + "age": 51, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Alexander Ltd", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "rule", + "category": "they", + "price": 952.99, + "stock_quantity": 674 + }, + "customer": { + "name": "Christopher Guerra", + "age": 70, + "country": "Guinea" + } + }, + { + "natural_query": "What are the top 10 products by revenue for Edwards Group this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Edwards Group' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10", + "company": { + "name": "Edwards Group", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "Mr", + "category": "heart", + "price": 315.66, + "stock_quantity": 53 + }, + "customer": { + "name": "Lindsay Price", + "age": 21, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Palmer-Blankenship", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "learn", + "category": "never", + "price": 964.32, + "stock_quantity": 726 + }, + "customer": { + "name": "Tina Estrada", + "age": 44, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Lewis, Hall and Burgess", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "room", + "category": "his", + "price": 480.23, + "stock_quantity": 647 + }, + "customer": { + "name": "Vanessa Abbott", + "age": 24, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Maxwell-Walls", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "animal", + "category": "need", + "price": 630.74, + "stock_quantity": 794 + }, + "customer": { + "name": "Ricky Lane", + "age": 32, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Davis Inc", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "actually", + "category": "note", + "price": 790.92, + "stock_quantity": 628 + }, + "customer": { + "name": "Catherine Miller", + "age": 21, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Parker Group", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "ok", + "category": "training", + "price": 87.81, + "stock_quantity": 578 + }, + "customer": { + "name": "Megan Benson", + "age": 76, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Roman-Sanchez", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "sense", + "category": "road", + "price": 885.79, + "stock_quantity": 507 + }, + "customer": { + "name": "Alyssa Carpenter", + "age": 22, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Williams Group", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "manage", + "category": "several", + "price": 165.86, + "stock_quantity": 872 + }, + "customer": { + "name": "Justin Reyes", + "age": 69, + "country": "French Polynesia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Martinez LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martinez LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martinez LLC", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "size", + "category": "likely", + "price": 942.93, + "stock_quantity": 848 + }, + "customer": { + "name": "Paige Boyd", + "age": 24, + "country": "Rwanda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Banks-Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Banks-Smith", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "traditional", + "category": "product", + "price": 973.93, + "stock_quantity": 596 + }, + "customer": { + "name": "Sabrina Escobar", + "age": 79, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Perry, Beltran and Terry", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "become", + "category": "question", + "price": 821.9, + "stock_quantity": 231 + }, + "customer": { + "name": "Jessica Rangel", + "age": 32, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Ramos-Love", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "forward", + "category": "protect", + "price": 268.68, + "stock_quantity": 399 + }, + "customer": { + "name": "Christine Carter", + "age": 44, + "country": "Gambia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rosario-Floyd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rosario-Floyd", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "later", + "category": "nor", + "price": 102.16, + "stock_quantity": 577 + }, + "customer": { + "name": "Tony Davis", + "age": 48, + "country": "South Africa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Banks, Deleon and Young'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Banks, Deleon and Young", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "treat", + "category": "subject", + "price": 282.44, + "stock_quantity": 92 + }, + "customer": { + "name": "Cassidy Booth", + "age": 80, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Cameron, Rogers and Brown", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "music", + "category": "hope", + "price": 602.76, + "stock_quantity": 133 + }, + "customer": { + "name": "Gregory Villa", + "age": 49, + "country": "British Virgin Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown-Cunningham'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown-Cunningham", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "herself", + "category": "without", + "price": 449.77, + "stock_quantity": 56 + }, + "customer": { + "name": "Lisa Dunlap", + "age": 33, + "country": "Yemen" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Henry-Gibson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Henry-Gibson", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "visit", + "category": "send", + "price": 470.77, + "stock_quantity": 917 + }, + "customer": { + "name": "Morgan Stone", + "age": 30, + "country": "Georgia" + } + }, + { + "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'", + "company": { + "name": "Bullock, Thompson and King", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "as", + "category": "claim", + "price": 357.92, + "stock_quantity": 235 + }, + "customer": { + "name": "Glenda Robinson", + "age": 23, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Smith, Garrison and Poole", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "bad", + "category": "education", + "price": 679.6, + "stock_quantity": 173 + }, + "customer": { + "name": "Antonio Sanders", + "age": 36, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Gray, Gilbert and Greer", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "training", + "category": "but", + "price": 825.51, + "stock_quantity": 221 + }, + "customer": { + "name": "Allen Snyder", + "age": 61, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Buchanan-Lewis", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "soldier", + "category": "moment", + "price": 198.71, + "stock_quantity": 226 + }, + "customer": { + "name": "Dr. Jessica Gilbert", + "age": 33, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Walker Inc", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "claim", + "category": "adult", + "price": 233.47, + "stock_quantity": 9 + }, + "customer": { + "name": "Vanessa Kelly", + "age": 45, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Ramirez PLC", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "prepare", + "category": "fight", + "price": 400.31, + "stock_quantity": 891 + }, + "customer": { + "name": "Michael Byrd", + "age": 27, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Moran-Simpson", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "stuff", + "category": "strong", + "price": 240.32, + "stock_quantity": 422 + }, + "customer": { + "name": "Sharon Rodriguez", + "age": 59, + "country": "Italy" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis Group", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "challenge", + "category": "heart", + "price": 547.64, + "stock_quantity": 469 + }, + "customer": { + "name": "Chris White", + "age": 24, + "country": "Switzerland" + } + }, + { + "natural_query": "What is the minimum quantity of all products for Smith, Smith and Kennedy?", + "sql_query": "SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Smith, Smith and Kennedy'", + "company": { + "name": "Smith, Smith and Kennedy", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "he", + "category": "music", + "price": 308.26, + "stock_quantity": 457 + }, + "customer": { + "name": "Jessica Harris", + "age": 80, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Wilkerson and Sons", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "better", + "category": "idea", + "price": 430.43, + "stock_quantity": 641 + }, + "customer": { + "name": "Ashley Yates", + "age": 60, + "country": "Cote d'Ivoire" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green and Sons", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "black", + "category": "including", + "price": 278.23, + "stock_quantity": 964 + }, + "customer": { + "name": "Steven Valentine", + "age": 43, + "country": "Grenada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Clark Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Clark Group", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "American", + "category": "will", + "price": 51.89, + "stock_quantity": 124 + }, + "customer": { + "name": "Justin Riddle", + "age": 37, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Thomas, Taylor and Herman", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "boy", + "category": "reflect", + "price": 12.91, + "stock_quantity": 909 + }, + "customer": { + "name": "Samuel Huffman", + "age": 45, + "country": "Thailand" + } + }, + { + "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'", + "company": { + "name": "Henson-Morgan", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "if", + "category": "change", + "price": 639.61, + "stock_quantity": 88 + }, + "customer": { + "name": "Sandra Frederick", + "age": 20, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Lewis, Higgins and Bailey", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "old", + "category": "religious", + "price": 147.95, + "stock_quantity": 569 + }, + "customer": { + "name": "Joshua Blankenship", + "age": 62, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Orr-Barnes", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "trouble", + "category": "lose", + "price": 251.29, + "stock_quantity": 337 + }, + "customer": { + "name": "Karen Wilson", + "age": 54, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Davis Inc", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "yes", + "category": "value", + "price": 724.67, + "stock_quantity": 719 + }, + "customer": { + "name": "Brian Evans", + "age": 44, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Fields-Austin", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "business", + "category": "however", + "price": 286.48, + "stock_quantity": 496 + }, + "customer": { + "name": "Heather Nicholson", + "age": 29, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Thomas and Sons", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "yard", + "category": "enter", + "price": 402.4, + "stock_quantity": 482 + }, + "customer": { + "name": "Jason Moore", + "age": 60, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Shaw Ltd", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "left", + "category": "employee", + "price": 756.72, + "stock_quantity": 155 + }, + "customer": { + "name": "Margaret Graham", + "age": 55, + "country": "Guadeloupe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams, Pollard and Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams, Pollard and Anderson", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "avoid", + "category": "travel", + "price": 330.55, + "stock_quantity": 899 + }, + "customer": { + "name": "Melinda Ross", + "age": 77, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Powell-Frank", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "key", + "category": "fine", + "price": 10.08, + "stock_quantity": 227 + }, + "customer": { + "name": "Lisa Lindsey", + "age": 35, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Harris, Joyce and Vega", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "resource", + "category": "also", + "price": 220.11, + "stock_quantity": 93 + }, + "customer": { + "name": "Anne Hall", + "age": 63, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Smith-Brown", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "analysis", + "category": "air", + "price": 44.17, + "stock_quantity": 644 + }, + "customer": { + "name": "Mark Duncan", + "age": 61, + "country": "Portugal" + } + }, + { + "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'", + "company": { + "name": "Hill Group", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "under", + "category": "thing", + "price": 761.56, + "stock_quantity": 257 + }, + "customer": { + "name": "Micheal Chen", + "age": 48, + "country": "Wallis and Futuna" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Blake-Wong'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Blake-Wong", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "make", + "category": "his", + "price": 270.23, + "stock_quantity": 732 + }, + "customer": { + "name": "Jesse Miller", + "age": 77, + "country": "Samoa" + } + }, + { + "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'", + "company": { + "name": "Reed-Collins", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "company", + "category": "trial", + "price": 313.26, + "stock_quantity": 54 + }, + "customer": { + "name": "Erik Daniels", + "age": 44, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Sanchez, Gregory and Green", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "see", + "category": "garden", + "price": 571.68, + "stock_quantity": 243 + }, + "customer": { + "name": "Anthony Garcia", + "age": 41, + "country": "Cyprus" + } + }, + { + "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'", + "company": { + "name": "Fuller Ltd", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "factor", + "category": "forward", + "price": 671.06, + "stock_quantity": 581 + }, + "customer": { + "name": "Sarah Hill", + "age": 46, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Mccarthy, Dillon and Delgado", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "key", + "category": "adult", + "price": 460.58, + "stock_quantity": 747 + }, + "customer": { + "name": "Kim Kirby", + "age": 28, + "country": "Jamaica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Walter, Hill and Gordon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Walter, Hill and Gordon", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "feel", + "category": "happy", + "price": 311.52, + "stock_quantity": 317 + }, + "customer": { + "name": "Leonard Fletcher", + "age": 75, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wolfe, Lopez and Garrett'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wolfe, Lopez and Garrett", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "policy", + "category": "same", + "price": 352.95, + "stock_quantity": 168 + }, + "customer": { + "name": "Lauren Miller", + "age": 53, + "country": "French Southern Territories" + } + }, + { + "natural_query": "List all customers and their total order value for Thomas-Taylor.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Thomas-Taylor' GROUP BY c.customer_id", + "company": { + "name": "Thomas-Taylor", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "figure", + "category": "even", + "price": 125.96, + "stock_quantity": 572 + }, + "customer": { + "name": "Lawrence Pena", + "age": 76, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Mcdowell, Williams and Horne", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "challenge", + "category": "next", + "price": 463.49, + "stock_quantity": 203 + }, + "customer": { + "name": "Alyssa Rodriguez", + "age": 35, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Wagner, Schwartz and Evans", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "center", + "category": "TV", + "price": 507.43, + "stock_quantity": 625 + }, + "customer": { + "name": "Mark Lee", + "age": 21, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jefferson PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jefferson PLC", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "course", + "category": "officer", + "price": 261.21, + "stock_quantity": 314 + }, + "customer": { + "name": "Amanda Villegas", + "age": 79, + "country": "Wallis and Futuna" + } + }, + { + "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'", + "company": { + "name": "Fox Group", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "entire", + "category": "say", + "price": 701.87, + "stock_quantity": 457 + }, + "customer": { + "name": "Michael Watson", + "age": 69, + "country": "Burundi" + } + }, + { + "natural_query": "Show me all products in the understand category with a price over $74.87.", + "sql_query": "SELECT * FROM products WHERE category = 'understand' AND price > 74.87", + "company": { + "name": "Fitzgerald-Boyer", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "week", + "category": "understand", + "price": 74.87, + "stock_quantity": 378 + }, + "customer": { + "name": "David Reed", + "age": 37, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Strong and Sons", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "somebody", + "category": "computer", + "price": 963.93, + "stock_quantity": 394 + }, + "customer": { + "name": "Corey Romero", + "age": 57, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Lawrence Group", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "just", + "category": "method", + "price": 912.39, + "stock_quantity": 275 + }, + "customer": { + "name": "Mark Jackson", + "age": 32, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Carson, Hill and Ross", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "threat", + "category": "green", + "price": 306.99, + "stock_quantity": 109 + }, + "customer": { + "name": "David Herrera", + "age": 60, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Thompson-Turner", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "school", + "category": "build", + "price": 594.66, + "stock_quantity": 293 + }, + "customer": { + "name": "David Anderson", + "age": 29, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Hart-Smith", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "floor", + "category": "woman", + "price": 833.92, + "stock_quantity": 100 + }, + "customer": { + "name": "Michael Mitchell", + "age": 28, + "country": "Croatia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Long Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Long Group", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "between", + "category": "film", + "price": 707.63, + "stock_quantity": 714 + }, + "customer": { + "name": "Bryan Bell", + "age": 19, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Bates, Smith and Mcdowell", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "wait", + "category": "expect", + "price": 274.74, + "stock_quantity": 401 + }, + "customer": { + "name": "Jonathan Bird", + "age": 69, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Burns Group", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "television", + "category": "action", + "price": 690.5, + "stock_quantity": 715 + }, + "customer": { + "name": "Brittany Pena", + "age": 43, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Brown-Williams", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "could", + "category": "teach", + "price": 729.34, + "stock_quantity": 580 + }, + "customer": { + "name": "Keith Brown", + "age": 21, + "country": "Zambia" + } + }, + { + "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'", + "company": { + "name": "Morton, Jefferson and Owens", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "option", + "category": "game", + "price": 505.8, + "stock_quantity": 544 + }, + "customer": { + "name": "Megan Lamb", + "age": 55, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Gallagher-Barber", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "bit", + "category": "have", + "price": 149.88, + "stock_quantity": 411 + }, + "customer": { + "name": "Wendy Rivera", + "age": 71, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Newman Ltd", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "impact", + "category": "space", + "price": 134.52, + "stock_quantity": 543 + }, + "customer": { + "name": "Jason Brown", + "age": 52, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Boone, Romero and Harrison", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "may", + "category": "mouth", + "price": 591.49, + "stock_quantity": 493 + }, + "customer": { + "name": "Angela Douglas", + "age": 78, + "country": "Romania" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Adams and Sons for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Adams and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Adams and Sons", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "thought", + "category": "worry", + "price": 669.52, + "stock_quantity": 524 + }, + "customer": { + "name": "Thomas Martin", + "age": 41, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Krueger-Fowler", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "seat", + "category": "a", + "price": 48.07, + "stock_quantity": 414 + }, + "customer": { + "name": "Raymond Wilson", + "age": 47, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Bush, Bray and Sutton", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "attention", + "category": "rule", + "price": 759.94, + "stock_quantity": 167 + }, + "customer": { + "name": "Leslie Osborne", + "age": 21, + "country": "Mayotte" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson, Gonzales and Gordon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson, Gonzales and Gordon", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "this", + "category": "begin", + "price": 910.37, + "stock_quantity": 708 + }, + "customer": { + "name": "Jason Smith", + "age": 68, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Burch-Williams", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "her", + "category": "receive", + "price": 49.98, + "stock_quantity": 949 + }, + "customer": { + "name": "Kimberly Moore", + "age": 19, + "country": "French Polynesia" + } + }, + { + "natural_query": "How many orders were placed for Sellers-Hernandez between 2023-12-11 and 2024-08-29?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sellers-Hernandez' AND order_date BETWEEN '2023-12-11' AND '2024-08-29'", + "company": { + "name": "Sellers-Hernandez", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "specific", + "category": "life", + "price": 853.25, + "stock_quantity": 504 + }, + "customer": { + "name": "Joy Cox", + "age": 35, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Randall, Rubio and Cole", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "range", + "category": "several", + "price": 698.07, + "stock_quantity": 27 + }, + "customer": { + "name": "Tracy Navarro", + "age": 61, + "country": "Tonga" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pratt, Butler and Hernandez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pratt, Butler and Hernandez", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "simple", + "category": "where", + "price": 288.07, + "stock_quantity": 102 + }, + "customer": { + "name": "Russell Barry", + "age": 43, + "country": "Western Sahara" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Silva LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Silva LLC", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "threat", + "category": "keep", + "price": 198.32, + "stock_quantity": 575 + }, + "customer": { + "name": "Dr. James Waters", + "age": 22, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Rivera, Reynolds and Solis", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "appear", + "category": "way", + "price": 723.8, + "stock_quantity": 450 + }, + "customer": { + "name": "Joshua Mason", + "age": 80, + "country": "Netherlands Antilles" + } + }, + { + "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'", + "company": { + "name": "Diaz, Leon and Davis", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "cultural", + "category": "model", + "price": 722.01, + "stock_quantity": 251 + }, + "customer": { + "name": "Kimberly Harris", + "age": 45, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Marsh, Rogers and Reynolds", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "man", + "category": "experience", + "price": 760.83, + "stock_quantity": 36 + }, + "customer": { + "name": "Jessica Curtis", + "age": 73, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Dorsey PLC", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "capital", + "category": "three", + "price": 504.36, + "stock_quantity": 958 + }, + "customer": { + "name": "Christopher Blair", + "age": 64, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Day-Ramirez", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "time", + "category": "owner", + "price": 196.25, + "stock_quantity": 979 + }, + "customer": { + "name": "Jill Cox", + "age": 45, + "country": "Saint Pierre and Miquelon" + } + }, + { + "natural_query": "What are the top 5 products by orders for Anderson Ltd this month?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson Ltd' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5", + "company": { + "name": "Anderson Ltd", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "by", + "category": "along", + "price": 837.24, + "stock_quantity": 339 + }, + "customer": { + "name": "Robert Taylor", + "age": 62, + "country": "Haiti" + } + }, + { + "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'", + "company": { + "name": "Price-Velez", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "form", + "category": "college", + "price": 17.71, + "stock_quantity": 649 + }, + "customer": { + "name": "William Mann", + "age": 48, + "country": "Poland" + } + }, + { + "natural_query": "What are the top 3 products by revenue for Martinez-Owen all time?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Martinez-Owen' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3", + "company": { + "name": "Martinez-Owen", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "staff", + "category": "address", + "price": 680.26, + "stock_quantity": 256 + }, + "customer": { + "name": "Frank Villarreal", + "age": 48, + "country": "Australia" + } + }, + { + "natural_query": "List all customers and their total order value for Hayes-Hickman.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Hayes-Hickman' GROUP BY c.customer_id", + "company": { + "name": "Hayes-Hickman", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "right", + "category": "last", + "price": 773.64, + "stock_quantity": 94 + }, + "customer": { + "name": "Yvonne Bell", + "age": 58, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Collins-Miller", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "country", + "category": "which", + "price": 865.87, + "stock_quantity": 543 + }, + "customer": { + "name": "Kenneth Gibson", + "age": 24, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Rivas Group", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "kitchen", + "category": "close", + "price": 173.4, + "stock_quantity": 177 + }, + "customer": { + "name": "Laura Taylor", + "age": 80, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Green-Conner", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "similar", + "category": "without", + "price": 833.9, + "stock_quantity": 0 + }, + "customer": { + "name": "Sara Tucker", + "age": 24, + "country": "Malaysia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wong-Sutton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wong-Sutton", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "big", + "category": "true", + "price": 935.13, + "stock_quantity": 345 + }, + "customer": { + "name": "James Hardin", + "age": 34, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Jones Inc", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "various", + "category": "organization", + "price": 192.19, + "stock_quantity": 501 + }, + "customer": { + "name": "Rachel Turner", + "age": 80, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Underwood Inc", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "to", + "category": "activity", + "price": 620.41, + "stock_quantity": 80 + }, + "customer": { + "name": "Desiree Ford", + "age": 49, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Garcia-Willis", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "however", + "category": "follow", + "price": 786.11, + "stock_quantity": 577 + }, + "customer": { + "name": "Erica Gilbert", + "age": 80, + "country": "Central African Republic" + } + }, + { + "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'", + "company": { + "name": "Sanders Group", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "social", + "category": "sense", + "price": 657.44, + "stock_quantity": 794 + }, + "customer": { + "name": "Rachel Jones", + "age": 80, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Padilla Ltd", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "thus", + "category": "admit", + "price": 288.78, + "stock_quantity": 618 + }, + "customer": { + "name": "James Walker", + "age": 72, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Herman LLC", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "recognize", + "category": "media", + "price": 466.09, + "stock_quantity": 890 + }, + "customer": { + "name": "Maurice Hart", + "age": 68, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Fowler-Hoffman", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "blue", + "category": "scientist", + "price": 991.58, + "stock_quantity": 942 + }, + "customer": { + "name": "Jennifer Koch MD", + "age": 34, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Hickman-Perez", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "anything", + "category": "executive", + "price": 543.53, + "stock_quantity": 811 + }, + "customer": { + "name": "Tina Gates", + "age": 72, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Sanchez LLC", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "expect", + "category": "candidate", + "price": 325.81, + "stock_quantity": 382 + }, + "customer": { + "name": "Kelly Day", + "age": 79, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Garcia, Barker and Martinez", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "without", + "category": "fight", + "price": 829.27, + "stock_quantity": 711 + }, + "customer": { + "name": "Lauren Jacobs", + "age": 37, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Dixon, Snyder and Roberts", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "far", + "category": "charge", + "price": 543.31, + "stock_quantity": 336 + }, + "customer": { + "name": "Richard Vasquez", + "age": 74, + "country": "Romania" + } + }, + { + "natural_query": "What are the top 3 products by revenue for Torres and Sons this month?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Torres and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 3", + "company": { + "name": "Torres and Sons", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "reveal", + "category": "politics", + "price": 812.03, + "stock_quantity": 367 + }, + "customer": { + "name": "Chelsea Reeves", + "age": 78, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Lawrence, Little and Hernandez", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "speech", + "category": "major", + "price": 774.88, + "stock_quantity": 42 + }, + "customer": { + "name": "Russell Jackson", + "age": 78, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Brock, Grant and Lawrence", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "check", + "category": "determine", + "price": 349.79, + "stock_quantity": 713 + }, + "customer": { + "name": "Timothy Wilson", + "age": 51, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Hester Group", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "couple", + "category": "think", + "price": 848.38, + "stock_quantity": 231 + }, + "customer": { + "name": "George Thomas", + "age": 74, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Larsen-Phillips", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "all", + "category": "approach", + "price": 851.67, + "stock_quantity": 109 + }, + "customer": { + "name": "Barbara Walker", + "age": 21, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Ramirez-Hall", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "beat", + "category": "most", + "price": 807.15, + "stock_quantity": 41 + }, + "customer": { + "name": "Casey Boyd", + "age": 42, + "country": "Samoa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Good, Le and Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Good, Le and Miller", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "move", + "category": "fly", + "price": 705.33, + "stock_quantity": 674 + }, + "customer": { + "name": "Jennifer Williams", + "age": 24, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Spencer and Sons", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "affect", + "category": "light", + "price": 291.93, + "stock_quantity": 893 + }, + "customer": { + "name": "John Potter", + "age": 67, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "White, Smith and Wood", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "community", + "category": "new", + "price": 534.74, + "stock_quantity": 1000 + }, + "customer": { + "name": "Lori Sandoval", + "age": 58, + "country": "Switzerland" + } + }, + { + "natural_query": "How many orders were placed for Mcconnell-Jones between 2023-10-21 and 2024-01-19?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mcconnell-Jones' AND order_date BETWEEN '2023-10-21' AND '2024-01-19'", + "company": { + "name": "Mcconnell-Jones", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "small", + "category": "arm", + "price": 48.5, + "stock_quantity": 143 + }, + "customer": { + "name": "Monica Arnold", + "age": 59, + "country": "China" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Leon-Walters'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Leon-Walters", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "at", + "category": "see", + "price": 159.2, + "stock_quantity": 955 + }, + "customer": { + "name": "Paula Barrera", + "age": 22, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Kerr Inc", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "front", + "category": "system", + "price": 558.88, + "stock_quantity": 235 + }, + "customer": { + "name": "Casey Patrick", + "age": 31, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Wright Group", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "price", + "category": "experience", + "price": 298.19, + "stock_quantity": 431 + }, + "customer": { + "name": "Andrew Chavez", + "age": 23, + "country": "Belarus" + } + }, + { + "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'", + "company": { + "name": "Mendoza-Jones", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "quality", + "category": "entire", + "price": 736.37, + "stock_quantity": 744 + }, + "customer": { + "name": "Sherri Thomas", + "age": 31, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Richards, Mack and Sosa", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "share", + "category": "owner", + "price": 557.53, + "stock_quantity": 155 + }, + "customer": { + "name": "Betty Romero", + "age": 72, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Graham, Benson and Shelton", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "unit", + "category": "east", + "price": 475.3, + "stock_quantity": 486 + }, + "customer": { + "name": "Cynthia Underwood", + "age": 73, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Bailey Ltd", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "charge", + "category": "still", + "price": 55.83, + "stock_quantity": 316 + }, + "customer": { + "name": "Daniel Johnson DVM", + "age": 74, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Jordan, Middleton and Best", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "computer", + "category": "before", + "price": 632.18, + "stock_quantity": 147 + }, + "customer": { + "name": "Thomas Rodriguez", + "age": 54, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Fowler-Colon", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "any", + "category": "reveal", + "price": 554.68, + "stock_quantity": 216 + }, + "customer": { + "name": "Aaron Sims", + "age": 21, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Yoder, House and Crawford", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "hit", + "category": "explain", + "price": 533.83, + "stock_quantity": 160 + }, + "customer": { + "name": "Kyle Stewart", + "age": 30, + "country": "Saudi Arabia" + } + }, + { + "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'", + "company": { + "name": "Anderson and Sons", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "south", + "category": "letter", + "price": 314.06, + "stock_quantity": 487 + }, + "customer": { + "name": "Julie Hale", + "age": 79, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "George, Garcia and Conner", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "trouble", + "category": "suggest", + "price": 667.78, + "stock_quantity": 28 + }, + "customer": { + "name": "Shelby Wilson", + "age": 37, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Herrera, Williams and Bowman", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "course", + "category": "standard", + "price": 298.75, + "stock_quantity": 872 + }, + "customer": { + "name": "Matthew Jennings", + "age": 45, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Jefferson, Mcknight and Kim", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "worry", + "category": "word", + "price": 412.1, + "stock_quantity": 505 + }, + "customer": { + "name": "Amber Dickerson", + "age": 73, + "country": "Guam" + } + }, + { + "natural_query": "What is the total sales for each country in Ortega Ltd?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ortega Ltd' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Ortega Ltd", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "pass", + "category": "front", + "price": 53.81, + "stock_quantity": 148 + }, + "customer": { + "name": "John Ortega", + "age": 72, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Brown-Wilcox", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "treat", + "category": "music", + "price": 471.84, + "stock_quantity": 309 + }, + "customer": { + "name": "Tracy Glover", + "age": 62, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Holder, Paul and Brown", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "stage", + "category": "much", + "price": 314.76, + "stock_quantity": 941 + }, + "customer": { + "name": "Brent Brady", + "age": 57, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Welch, Barnes and Anderson", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "sound", + "category": "pass", + "price": 496.52, + "stock_quantity": 250 + }, + "customer": { + "name": "Ryan Lewis", + "age": 40, + "country": "Bangladesh" + } + }, + { + "natural_query": "List all customers and their total order value for Estes, Duarte and Yates.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Estes, Duarte and Yates' GROUP BY c.customer_id", + "company": { + "name": "Estes, Duarte and Yates", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "political", + "category": "join", + "price": 946.32, + "stock_quantity": 960 + }, + "customer": { + "name": "Peter Boyd", + "age": 57, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "King Inc", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "end", + "category": "call", + "price": 734.21, + "stock_quantity": 427 + }, + "customer": { + "name": "Samuel Molina", + "age": 66, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Clark and Sons", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "let", + "category": "use", + "price": 558.98, + "stock_quantity": 653 + }, + "customer": { + "name": "Samantha Williams", + "age": 71, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Young PLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "black", + "category": "address", + "price": 695.27, + "stock_quantity": 380 + }, + "customer": { + "name": "Teresa Miller", + "age": 40, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Murphy, Richmond and George", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "traditional", + "category": "level", + "price": 862.8, + "stock_quantity": 600 + }, + "customer": { + "name": "Angel Hall", + "age": 78, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Miller-Wu", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "his", + "category": "inside", + "price": 621.59, + "stock_quantity": 680 + }, + "customer": { + "name": "Richard Nelson", + "age": 24, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Perry, Simon and Young", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "once", + "category": "who", + "price": 840.7, + "stock_quantity": 18 + }, + "customer": { + "name": "Henry Robles", + "age": 22, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Nelson Inc", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "participant", + "category": "head", + "price": 65.13, + "stock_quantity": 931 + }, + "customer": { + "name": "Christine Hernandez", + "age": 26, + "country": "Northern Mariana Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'King-Bryant'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "King-Bryant", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "ten", + "category": "ten", + "price": 839.59, + "stock_quantity": 193 + }, + "customer": { + "name": "Jacqueline Rivera", + "age": 60, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Cole-Dennis", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "life", + "category": "better", + "price": 871.59, + "stock_quantity": 235 + }, + "customer": { + "name": "Kelsey Mcintyre", + "age": 72, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Jones-Riley", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "offer", + "category": "near", + "price": 341.2, + "stock_quantity": 831 + }, + "customer": { + "name": "Shawn Branch", + "age": 39, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Peters Inc", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "card", + "category": "side", + "price": 172.99, + "stock_quantity": 884 + }, + "customer": { + "name": "Oscar Sanchez", + "age": 76, + "country": "Andorra" + } + }, + { + "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'", + "company": { + "name": "Benitez, Potter and Reyes", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "before", + "category": "pass", + "price": 111.02, + "stock_quantity": 95 + }, + "customer": { + "name": "Courtney Peck", + "age": 74, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "James-Murray", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "million", + "category": "indeed", + "price": 563.92, + "stock_quantity": 380 + }, + "customer": { + "name": "Barbara Steele", + "age": 25, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Turner PLC", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "stay", + "category": "first", + "price": 618.8, + "stock_quantity": 505 + }, + "customer": { + "name": "Amanda Knox", + "age": 29, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "Hoffman, Brown and Bolton", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "buy", + "category": "carry", + "price": 921.55, + "stock_quantity": 802 + }, + "customer": { + "name": "Marissa Benson", + "age": 78, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Williams, Lozano and Sampson", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "score", + "category": "back", + "price": 575.26, + "stock_quantity": 254 + }, + "customer": { + "name": "Cheyenne Murray", + "age": 44, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Anderson, Castillo and Davis", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "very", + "category": "stock", + "price": 715.64, + "stock_quantity": 665 + }, + "customer": { + "name": "Kathryn Garcia", + "age": 24, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Singh-Hubbard", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "respond", + "category": "technology", + "price": 929.28, + "stock_quantity": 245 + }, + "customer": { + "name": "Kyle Beck", + "age": 49, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Cross Group", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "brother", + "category": "commercial", + "price": 921.61, + "stock_quantity": 331 + }, + "customer": { + "name": "Michelle Owens", + "age": 65, + "country": "Turkey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones, Koch and Cardenas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones, Koch and Cardenas", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "economy", + "category": "at", + "price": 976.84, + "stock_quantity": 430 + }, + "customer": { + "name": "Joel Jackson", + "age": 43, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Perez, Patrick and Robles", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "common", + "category": "rise", + "price": 168.9, + "stock_quantity": 782 + }, + "customer": { + "name": "Janice Miller", + "age": 62, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Poole Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Poole Group", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "but", + "category": "left", + "price": 681.28, + "stock_quantity": 21 + }, + "customer": { + "name": "Lori Ellison", + "age": 18, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Page, Wade and Carter", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "before", + "category": "few", + "price": 539.65, + "stock_quantity": 592 + }, + "customer": { + "name": "Tina Collins", + "age": 59, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Rodriguez Inc", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "after", + "category": "modern", + "price": 214.46, + "stock_quantity": 617 + }, + "customer": { + "name": "Kaylee Floyd", + "age": 67, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Williams Inc", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "stuff", + "category": "hundred", + "price": 262.54, + "stock_quantity": 982 + }, + "customer": { + "name": "Curtis Wilson", + "age": 59, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Ward Inc", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "market", + "category": "set", + "price": 97.0, + "stock_quantity": 140 + }, + "customer": { + "name": "Heather Preston", + "age": 62, + "country": "Fiji" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Foley Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Foley Inc", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "stop", + "category": "letter", + "price": 689.52, + "stock_quantity": 775 + }, + "customer": { + "name": "Casey Hernandez", + "age": 56, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Lewis-Potter", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "ability", + "category": "war", + "price": 253.84, + "stock_quantity": 854 + }, + "customer": { + "name": "Paige Mills", + "age": 58, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Davis LLC", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "attack", + "category": "less", + "price": 74.11, + "stock_quantity": 5 + }, + "customer": { + "name": "James Waters", + "age": 25, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Sandoval, Schroeder and Clark", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "onto", + "category": "wide", + "price": 69.49, + "stock_quantity": 720 + }, + "customer": { + "name": "Kevin Contreras", + "age": 57, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Lara PLC", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "total", + "category": "process", + "price": 717.43, + "stock_quantity": 16 + }, + "customer": { + "name": "Ryan Cox", + "age": 65, + "country": "Wallis and Futuna" + } + }, + { + "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'", + "company": { + "name": "Zimmerman, Ramirez and Jones", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "unit", + "category": "seat", + "price": 632.9, + "stock_quantity": 141 + }, + "customer": { + "name": "Sarah Phillips", + "age": 34, + "country": "Saint Lucia" + } + }, + { + "natural_query": "Show me all products in the artist category with a price over $262.62.", + "sql_query": "SELECT * FROM products WHERE category = 'artist' AND price > 262.62", + "company": { + "name": "Vasquez-Shaw", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "in", + "category": "artist", + "price": 262.62, + "stock_quantity": 871 + }, + "customer": { + "name": "Joe Johnson", + "age": 54, + "country": "Korea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Molina-Jenkins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Molina-Jenkins", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "hope", + "category": "condition", + "price": 48.55, + "stock_quantity": 872 + }, + "customer": { + "name": "Wendy Ayala", + "age": 46, + "country": "Iraq" + } + }, + { + "natural_query": "List all products of Jefferson, Howell and Underwood ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Jefferson, Howell and Underwood' ORDER BY rating DESC", + "company": { + "name": "Jefferson, Howell and Underwood", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "grow", + "category": "red", + "price": 783.83, + "stock_quantity": 884 + }, + "customer": { + "name": "Jacqueline Jones", + "age": 73, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Espinoza Ltd", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "who", + "category": "human", + "price": 53.45, + "stock_quantity": 504 + }, + "customer": { + "name": "Hannah Diaz", + "age": 61, + "country": "Sierra Leone" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Perry, Hensley and Watson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Perry, Hensley and Watson", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "popular", + "category": "owner", + "price": 663.68, + "stock_quantity": 459 + }, + "customer": { + "name": "Jennifer Dodson", + "age": 48, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Kim-Poole", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "much", + "category": "may", + "price": 662.75, + "stock_quantity": 49 + }, + "customer": { + "name": "Dr. John Sanford", + "age": 38, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Wilkerson, Maldonado and Gray", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "now", + "category": "officer", + "price": 420.89, + "stock_quantity": 905 + }, + "customer": { + "name": "Joshua Campbell", + "age": 49, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Ruiz PLC", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "cause", + "category": "before", + "price": 569.06, + "stock_quantity": 397 + }, + "customer": { + "name": "Colleen Burns", + "age": 66, + "country": "Samoa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Yoder, Hooper and Donaldson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Yoder, Hooper and Donaldson", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "this", + "category": "table", + "price": 350.29, + "stock_quantity": 657 + }, + "customer": { + "name": "Jeanne Taylor", + "age": 72, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Mclaughlin, Mason and Waters", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "church", + "category": "baby", + "price": 855.11, + "stock_quantity": 123 + }, + "customer": { + "name": "Kristin Johnson", + "age": 72, + "country": "Jersey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hebert-Wright'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hebert-Wright", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "chair", + "category": "check", + "price": 321.33, + "stock_quantity": 428 + }, + "customer": { + "name": "Rebecca Estrada", + "age": 35, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Boyd, Keith and Parker", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "lose", + "category": "herself", + "price": 634.24, + "stock_quantity": 389 + }, + "customer": { + "name": "John Marshall", + "age": 43, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Moses, Allen and Carney", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "worker", + "category": "scene", + "price": 670.02, + "stock_quantity": 858 + }, + "customer": { + "name": "Christopher Valdez", + "age": 57, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Todd, Bishop and Diaz", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "your", + "category": "direction", + "price": 895.3, + "stock_quantity": 766 + }, + "customer": { + "name": "Susan Tate", + "age": 46, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Coleman Inc", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "book", + "category": "statement", + "price": 920.19, + "stock_quantity": 543 + }, + "customer": { + "name": "Lisa Estes", + "age": 68, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "King, Torres and Hoffman", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "back", + "category": "add", + "price": 750.93, + "stock_quantity": 465 + }, + "customer": { + "name": "Barbara Herring", + "age": 29, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Murphy-Dougherty", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "goal", + "category": "role", + "price": 745.53, + "stock_quantity": 62 + }, + "customer": { + "name": "Joe Pearson", + "age": 21, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Stevens-Dominguez", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "these", + "category": "everybody", + "price": 960.96, + "stock_quantity": 979 + }, + "customer": { + "name": "Logan Meyer", + "age": 40, + "country": "Belize" + } + }, + { + "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'", + "company": { + "name": "Jones-Keller", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "just", + "category": "each", + "price": 576.43, + "stock_quantity": 477 + }, + "customer": { + "name": "Juan Levine", + "age": 70, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Dean-Wise", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "herself", + "category": "only", + "price": 776.02, + "stock_quantity": 799 + }, + "customer": { + "name": "Timothy Hall", + "age": 32, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Howard-Lee", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "great", + "category": "herself", + "price": 663.97, + "stock_quantity": 643 + }, + "customer": { + "name": "Eric Snyder", + "age": 23, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Holmes Group", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "let", + "category": "either", + "price": 613.42, + "stock_quantity": 606 + }, + "customer": { + "name": "Tyler Williams", + "age": 64, + "country": "Puerto Rico" + } + }, + { + "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'", + "company": { + "name": "Buck, James and Brandt", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "follow", + "category": "page", + "price": 366.87, + "stock_quantity": 426 + }, + "customer": { + "name": "Sarah Rivera", + "age": 70, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Allen-Bailey'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Allen-Bailey", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "discuss", + "category": "same", + "price": 725.6, + "stock_quantity": 895 + }, + "customer": { + "name": "Marissa Perez", + "age": 22, + "country": "Uganda" + } + }, + { + "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'", + "company": { + "name": "Vance Inc", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "because", + "category": "decade", + "price": 851.07, + "stock_quantity": 885 + }, + "customer": { + "name": "George Brown", + "age": 21, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Mueller, Underwood and Buckley", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "account", + "category": "discover", + "price": 59.99, + "stock_quantity": 416 + }, + "customer": { + "name": "Jordan Johnson", + "age": 71, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Walker PLC", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "me", + "category": "up", + "price": 743.98, + "stock_quantity": 488 + }, + "customer": { + "name": "Brandon Reyes", + "age": 48, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Hawkins, Cherry and Francis?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hawkins, Cherry and Francis' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Hawkins, Cherry and Francis", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "adult", + "category": "money", + "price": 437.73, + "stock_quantity": 344 + }, + "customer": { + "name": "Anthony Smith", + "age": 20, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Lambert Group", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "drive", + "category": "head", + "price": 340.37, + "stock_quantity": 173 + }, + "customer": { + "name": "Kimberly Williams", + "age": 48, + "country": "Italy" + } + }, + { + "natural_query": "List all customers and their total order value for Wade and Sons.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Wade and Sons' GROUP BY c.customer_id", + "company": { + "name": "Wade and Sons", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "however", + "category": "professor", + "price": 174.08, + "stock_quantity": 869 + }, + "customer": { + "name": "Amber Hill", + "age": 38, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Fernandez-Rivera", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "energy", + "category": "door", + "price": 429.09, + "stock_quantity": 478 + }, + "customer": { + "name": "Christopher Williams", + "age": 43, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Edwards, Stewart and Larsen", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "amount", + "category": "floor", + "price": 429.23, + "stock_quantity": 144 + }, + "customer": { + "name": "Mary Weber", + "age": 65, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Wolfe Inc", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "compare", + "category": "military", + "price": 395.08, + "stock_quantity": 774 + }, + "customer": { + "name": "Renee Scott", + "age": 47, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Sellers-Peterson", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "myself", + "category": "nature", + "price": 172.97, + "stock_quantity": 888 + }, + "customer": { + "name": "Sonia English", + "age": 63, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Weber-Holloway", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "research", + "category": "when", + "price": 122.41, + "stock_quantity": 606 + }, + "customer": { + "name": "Heather Cook", + "age": 78, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Dougherty-Cook", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "owner", + "category": "future", + "price": 192.61, + "stock_quantity": 242 + }, + "customer": { + "name": "Michael Brown", + "age": 67, + "country": "Latvia" + } + }, + { + "natural_query": "How many orders were placed for Williams-Robertson between 2024-01-19 and 2024-06-25?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-Robertson' AND order_date BETWEEN '2024-01-19' AND '2024-06-25'", + "company": { + "name": "Williams-Robertson", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "expect", + "category": "director", + "price": 838.24, + "stock_quantity": 4 + }, + "customer": { + "name": "Rodney Adams", + "age": 57, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Davis Ltd", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "station", + "category": "Mrs", + "price": 75.91, + "stock_quantity": 748 + }, + "customer": { + "name": "Kimberly Ryan", + "age": 51, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Miller LLC", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "health", + "category": "mean", + "price": 758.81, + "stock_quantity": 683 + }, + "customer": { + "name": "Dustin Beasley", + "age": 28, + "country": "Netherlands Antilles" + } + }, + { + "natural_query": "How many orders were placed for Hayes, Graham and Lee between 2024-01-20 and 2024-06-13?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hayes, Graham and Lee' AND order_date BETWEEN '2024-01-20' AND '2024-06-13'", + "company": { + "name": "Hayes, Graham and Lee", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "smile", + "category": "with", + "price": 909.29, + "stock_quantity": 260 + }, + "customer": { + "name": "John Williams", + "age": 40, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Parker, Griffin and Dickson", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "question", + "category": "admit", + "price": 100.19, + "stock_quantity": 682 + }, + "customer": { + "name": "Anna Torres", + "age": 75, + "country": "Barbados" + } + }, + { + "natural_query": "List all customers and their total order value for Madden LLC.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Madden LLC' GROUP BY c.customer_id", + "company": { + "name": "Madden LLC", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "opportunity", + "category": "home", + "price": 504.59, + "stock_quantity": 998 + }, + "customer": { + "name": "Deborah James", + "age": 63, + "country": "United Kingdom" + } + }, + { + "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'", + "company": { + "name": "Nguyen Ltd", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "name", + "category": "property", + "price": 38.85, + "stock_quantity": 825 + }, + "customer": { + "name": "Eric Mcgrath", + "age": 55, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Martin-Ortega", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "modern", + "category": "ok", + "price": 625.98, + "stock_quantity": 512 + }, + "customer": { + "name": "Kathleen Sims", + "age": 25, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Carroll, Hill and Mendoza", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "chair", + "category": "measure", + "price": 868.78, + "stock_quantity": 310 + }, + "customer": { + "name": "Lori Berry", + "age": 25, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Ibarra-Espinoza", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "remember", + "category": "degree", + "price": 844.63, + "stock_quantity": 803 + }, + "customer": { + "name": "Matthew Williams", + "age": 31, + "country": "Netherlands" + } + }, + { + "natural_query": "List all customers and their total order value for Escobar, Coleman and Lucas.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Escobar, Coleman and Lucas' GROUP BY c.customer_id", + "company": { + "name": "Escobar, Coleman and Lucas", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "play", + "category": "one", + "price": 102.74, + "stock_quantity": 897 + }, + "customer": { + "name": "David Morgan", + "age": 19, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Anderson, Woodard and Clark", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "science", + "category": "day", + "price": 886.01, + "stock_quantity": 347 + }, + "customer": { + "name": "Kristin Murphy", + "age": 62, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Solis-Sharp", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "few", + "category": "off", + "price": 971.04, + "stock_quantity": 106 + }, + "customer": { + "name": "Matthew Patel", + "age": 33, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Rose, Chan and Stephens", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "party", + "category": "relationship", + "price": 400.41, + "stock_quantity": 781 + }, + "customer": { + "name": "Melissa Thomas", + "age": 35, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Rodgers Inc", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "court", + "category": "minute", + "price": 772.18, + "stock_quantity": 10 + }, + "customer": { + "name": "Traci Ramsey", + "age": 23, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Tucker-Hart", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "turn", + "category": "brother", + "price": 579.62, + "stock_quantity": 420 + }, + "customer": { + "name": "Michael Clarke", + "age": 28, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Hanson, Duffy and Crawford", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "again", + "category": "fight", + "price": 734.69, + "stock_quantity": 699 + }, + "customer": { + "name": "Melissa Wright", + "age": 45, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Ramsey LLC", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "woman", + "category": "collection", + "price": 572.45, + "stock_quantity": 314 + }, + "customer": { + "name": "James Lambert", + "age": 41, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Goodwin, Mcintyre and Olson", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "cover", + "category": "necessary", + "price": 401.84, + "stock_quantity": 740 + }, + "customer": { + "name": "Anthony Jones", + "age": 42, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Griffith, Williams and Nielsen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Griffith, Williams and Nielsen", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "however", + "category": "method", + "price": 494.56, + "stock_quantity": 93 + }, + "customer": { + "name": "Logan Neal", + "age": 23, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Doyle-Contreras", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "good", + "category": "share", + "price": 334.58, + "stock_quantity": 629 + }, + "customer": { + "name": "Brian Page", + "age": 80, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Young-Fitzgerald", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "majority", + "category": "most", + "price": 404.52, + "stock_quantity": 624 + }, + "customer": { + "name": "Mrs. Shari Gonzalez", + "age": 29, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Andrade-Mack", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "citizen", + "category": "describe", + "price": 830.55, + "stock_quantity": 883 + }, + "customer": { + "name": "Morgan Lee", + "age": 23, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Andrade, Thomas and Lynch", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "throughout", + "category": "hundred", + "price": 431.69, + "stock_quantity": 263 + }, + "customer": { + "name": "Thomas Brown", + "age": 28, + "country": "Madagascar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frost, Bailey and Wright'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frost, Bailey and Wright", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "prepare", + "category": "than", + "price": 650.97, + "stock_quantity": 201 + }, + "customer": { + "name": "James Newman", + "age": 63, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Leblanc Group", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "standard", + "category": "appear", + "price": 376.51, + "stock_quantity": 729 + }, + "customer": { + "name": "Kristen Carter", + "age": 50, + "country": "Norway" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cooke PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cooke PLC", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "Democrat", + "category": "two", + "price": 738.94, + "stock_quantity": 919 + }, + "customer": { + "name": "Andrew Neal", + "age": 37, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Elliott-Reese", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "care", + "category": "resource", + "price": 427.16, + "stock_quantity": 328 + }, + "customer": { + "name": "Juan Russell", + "age": 56, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Leon, Chapman and Marquez", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "because", + "category": "toward", + "price": 130.08, + "stock_quantity": 22 + }, + "customer": { + "name": "Christopher Moore", + "age": 62, + "country": "Mongolia" + } + }, + { + "natural_query": "Show me all products in the similar category with a price over $587.58.", + "sql_query": "SELECT * FROM products WHERE category = 'similar' AND price > 587.58", + "company": { + "name": "Davis, Stewart and Ruiz", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "but", + "category": "similar", + "price": 587.58, + "stock_quantity": 176 + }, + "customer": { + "name": "Chris Ramirez", + "age": 57, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Green Inc", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "good", + "category": "analysis", + "price": 719.13, + "stock_quantity": 411 + }, + "customer": { + "name": "Dustin Spence", + "age": 68, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lin-Howe'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lin-Howe", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "should", + "category": "marriage", + "price": 516.25, + "stock_quantity": 622 + }, + "customer": { + "name": "Samantha Kaufman", + "age": 39, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Hunt, Mack and Alvarez", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "effect", + "category": "much", + "price": 957.57, + "stock_quantity": 870 + }, + "customer": { + "name": "Scott Myers", + "age": 18, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Barker LLC", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "black", + "category": "spring", + "price": 874.87, + "stock_quantity": 373 + }, + "customer": { + "name": "Sarah Stark", + "age": 51, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Flores LLC", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "tonight", + "category": "lawyer", + "price": 641.37, + "stock_quantity": 938 + }, + "customer": { + "name": "Anna Sexton", + "age": 76, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Davis Inc", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "reach", + "category": "charge", + "price": 990.64, + "stock_quantity": 196 + }, + "customer": { + "name": "Melanie Nielsen MD", + "age": 40, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Miller, Bell and Morris", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "start", + "category": "board", + "price": 839.06, + "stock_quantity": 835 + }, + "customer": { + "name": "Heather Garcia", + "age": 25, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Kirby LLC", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "hot", + "category": "now", + "price": 603.62, + "stock_quantity": 787 + }, + "customer": { + "name": "Lindsey Logan", + "age": 67, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Nguyen Ltd", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "international", + "category": "though", + "price": 577.4, + "stock_quantity": 187 + }, + "customer": { + "name": "Derek Howard", + "age": 59, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Wallace-Howard", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "paper", + "category": "sort", + "price": 397.02, + "stock_quantity": 863 + }, + "customer": { + "name": "Christopher Carr", + "age": 76, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Williams-Bauer", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "middle", + "category": "method", + "price": 967.68, + "stock_quantity": 696 + }, + "customer": { + "name": "Jessica Montes", + "age": 78, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Roberts, Clayton and Clark", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "coach", + "category": "office", + "price": 250.97, + "stock_quantity": 549 + }, + "customer": { + "name": "Joanne Keller", + "age": 53, + "country": "Guam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Osborne, Vincent and Banks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Osborne, Vincent and Banks", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "scene", + "category": "country", + "price": 962.0, + "stock_quantity": 94 + }, + "customer": { + "name": "Charles Schaefer", + "age": 43, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Sloan and Sons", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "coach", + "category": "suggest", + "price": 191.48, + "stock_quantity": 196 + }, + "customer": { + "name": "Jerry Hickman", + "age": 37, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Nguyen-Hernandez", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "you", + "category": "care", + "price": 464.2, + "stock_quantity": 313 + }, + "customer": { + "name": "Lindsey Rodriguez", + "age": 56, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Webb, Hester and Martinez", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "girl", + "category": "worker", + "price": 619.93, + "stock_quantity": 47 + }, + "customer": { + "name": "Kayla Daniels", + "age": 68, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Adkins-Anderson", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "third", + "category": "beautiful", + "price": 442.55, + "stock_quantity": 675 + }, + "customer": { + "name": "Tara Soto", + "age": 49, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Riley PLC", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "happy", + "category": "say", + "price": 635.51, + "stock_quantity": 186 + }, + "customer": { + "name": "George Ellis", + "age": 69, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Ray-Calderon", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "cause", + "category": "even", + "price": 989.27, + "stock_quantity": 53 + }, + "customer": { + "name": "Joseph Reyes", + "age": 32, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Boyd PLC", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "physical", + "category": "daughter", + "price": 257.01, + "stock_quantity": 11 + }, + "customer": { + "name": "Wendy Jones", + "age": 22, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Atkinson-Mccarthy", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "science", + "category": "second", + "price": 851.08, + "stock_quantity": 796 + }, + "customer": { + "name": "Julie Bailey", + "age": 33, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Sandoval, Cervantes and Watkins", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "executive", + "category": "hit", + "price": 865.47, + "stock_quantity": 200 + }, + "customer": { + "name": "Gina Turner", + "age": 62, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Wallace-Lopez", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "small", + "category": "without", + "price": 928.46, + "stock_quantity": 996 + }, + "customer": { + "name": "Brandon Baxter", + "age": 20, + "country": "Cuba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Anderson-Campos'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Anderson-Campos", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "home", + "category": "resource", + "price": 371.66, + "stock_quantity": 211 + }, + "customer": { + "name": "Martha Padilla", + "age": 41, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Fox, Simmons and Le", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "hospital", + "category": "simple", + "price": 301.44, + "stock_quantity": 983 + }, + "customer": { + "name": "Joel Li", + "age": 77, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Gregory Group", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "money", + "category": "develop", + "price": 840.21, + "stock_quantity": 866 + }, + "customer": { + "name": "Jennifer Smith", + "age": 59, + "country": "Sri Lanka" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown-Edwards'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown-Edwards", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "a", + "category": "until", + "price": 576.09, + "stock_quantity": 834 + }, + "customer": { + "name": "Austin Clay", + "age": 61, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Sanford Ltd", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "character", + "category": "resource", + "price": 651.69, + "stock_quantity": 776 + }, + "customer": { + "name": "William Herrera", + "age": 74, + "country": "Uruguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson, Sanders and Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson, Sanders and Anderson", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "on", + "category": "gas", + "price": 129.57, + "stock_quantity": 526 + }, + "customer": { + "name": "Jodi Mora", + "age": 80, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Sullivan-Wyatt", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "street", + "category": "try", + "price": 489.95, + "stock_quantity": 106 + }, + "customer": { + "name": "Charles Irwin", + "age": 25, + "country": "New Zealand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson LLC", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "heavy", + "category": "particular", + "price": 702.4, + "stock_quantity": 948 + }, + "customer": { + "name": "Natalie Santos", + "age": 71, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Wright, Gardner and Lee", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "president", + "category": "it", + "price": 70.45, + "stock_quantity": 786 + }, + "customer": { + "name": "Stephanie Russell", + "age": 51, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Thomas-Jackson", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "tree", + "category": "hand", + "price": 82.04, + "stock_quantity": 703 + }, + "customer": { + "name": "Mark West", + "age": 28, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murphy, Gallagher and Hansen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murphy, Gallagher and Hansen", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "accept", + "category": "current", + "price": 942.82, + "stock_quantity": 73 + }, + "customer": { + "name": "John Bryant", + "age": 57, + "country": "Australia" + } + }, + { + "natural_query": "How many orders were placed for Clark, Vazquez and Sullivan between 2024-01-01 and 2024-05-25?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clark, Vazquez and Sullivan' AND order_date BETWEEN '2024-01-01' AND '2024-05-25'", + "company": { + "name": "Clark, Vazquez and Sullivan", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "arrive", + "category": "particular", + "price": 684.0, + "stock_quantity": 554 + }, + "customer": { + "name": "Philip Greene", + "age": 20, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Pratt, Stanley and Sanchez", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "important", + "category": "popular", + "price": 962.98, + "stock_quantity": 789 + }, + "customer": { + "name": "Kaylee Clark", + "age": 28, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Smith-Hart", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "truth", + "category": "add", + "price": 182.34, + "stock_quantity": 539 + }, + "customer": { + "name": "Amy Soto", + "age": 71, + "country": "Marshall Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Glover-Cantu'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Glover-Cantu", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "stand", + "category": "write", + "price": 823.95, + "stock_quantity": 715 + }, + "customer": { + "name": "Debra Peterson", + "age": 75, + "country": "Kiribati" + } + }, + { + "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'", + "company": { + "name": "Ross-Vargas", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "hard", + "category": "make", + "price": 234.39, + "stock_quantity": 662 + }, + "customer": { + "name": "Aaron Miller", + "age": 19, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Smith, Allen and Valencia", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "herself", + "category": "sort", + "price": 945.21, + "stock_quantity": 909 + }, + "customer": { + "name": "Richard Price", + "age": 25, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lee, Ross and Mcneil'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lee, Ross and Mcneil", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "get", + "category": "material", + "price": 917.04, + "stock_quantity": 599 + }, + "customer": { + "name": "Robert Hopkins", + "age": 18, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Miller PLC", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "expect", + "category": "impact", + "price": 349.45, + "stock_quantity": 910 + }, + "customer": { + "name": "Robert Ramos", + "age": 75, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Tucker and Sons", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "wide", + "category": "reveal", + "price": 545.66, + "stock_quantity": 761 + }, + "customer": { + "name": "Jessica Tanner", + "age": 54, + "country": "Micronesia" + } + }, + { + "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'", + "company": { + "name": "Perez-Miller", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "administration", + "category": "fall", + "price": 400.79, + "stock_quantity": 499 + }, + "customer": { + "name": "Kristina Anderson", + "age": 28, + "country": "Gabon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Medina, Cowan and Nguyen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Medina, Cowan and Nguyen", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "wife", + "category": "care", + "price": 831.6, + "stock_quantity": 560 + }, + "customer": { + "name": "Julie Howard", + "age": 52, + "country": "Lebanon" + } + }, + { + "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'", + "company": { + "name": "Soto, Mathis and Martinez", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "certainly", + "category": "also", + "price": 129.3, + "stock_quantity": 854 + }, + "customer": { + "name": "Mrs. Joyce Miller", + "age": 37, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Bradshaw-Welch", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "able", + "category": "first", + "price": 209.75, + "stock_quantity": 946 + }, + "customer": { + "name": "Christina Benton", + "age": 45, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson, Gilbert and Carter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson, Gilbert and Carter", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "seek", + "category": "social", + "price": 274.32, + "stock_quantity": 216 + }, + "customer": { + "name": "Ruth Valdez", + "age": 75, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Thompson Group", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "important", + "category": "box", + "price": 637.98, + "stock_quantity": 154 + }, + "customer": { + "name": "Brittany Garcia", + "age": 74, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Brock-Garcia", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "hair", + "category": "likely", + "price": 353.5, + "stock_quantity": 194 + }, + "customer": { + "name": "Marie Mckinney", + "age": 27, + "country": "Macao" + } + }, + { + "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'", + "company": { + "name": "Flores, Bailey and Newman", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "traditional", + "category": "plan", + "price": 952.72, + "stock_quantity": 367 + }, + "customer": { + "name": "Jessica Christensen", + "age": 77, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcclure, Ellis and King'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcclure, Ellis and King", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "industry", + "category": "dream", + "price": 421.39, + "stock_quantity": 928 + }, + "customer": { + "name": "Devin Ramos", + "age": 63, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Sanchez-Clark", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "toward", + "category": "official", + "price": 194.83, + "stock_quantity": 137 + }, + "customer": { + "name": "Brent Colon", + "age": 50, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Robbins-Thompson", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "game", + "category": "eight", + "price": 68.47, + "stock_quantity": 602 + }, + "customer": { + "name": "Kathryn Duran", + "age": 62, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Holmes-Garrison", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "garden", + "category": "kind", + "price": 480.33, + "stock_quantity": 935 + }, + "customer": { + "name": "Jessica Stanton", + "age": 58, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Contreras-Graves", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "place", + "category": "this", + "price": 489.14, + "stock_quantity": 401 + }, + "customer": { + "name": "Jennifer Casey", + "age": 80, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Brewer LLC", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "need", + "category": "offer", + "price": 840.74, + "stock_quantity": 436 + }, + "customer": { + "name": "Austin King", + "age": 62, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Hernandez-Cole", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "state", + "category": "house", + "price": 793.94, + "stock_quantity": 854 + }, + "customer": { + "name": "Ashley Lee", + "age": 72, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Morales, Todd and Mann", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "garden", + "category": "time", + "price": 918.82, + "stock_quantity": 687 + }, + "customer": { + "name": "Gregory White", + "age": 46, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Travis Ltd", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "keep", + "category": "poor", + "price": 998.45, + "stock_quantity": 201 + }, + "customer": { + "name": "Kenneth Shaw", + "age": 65, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Garcia and Sons", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "cup", + "category": "third", + "price": 500.27, + "stock_quantity": 514 + }, + "customer": { + "name": "Heather Castillo", + "age": 32, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Graham, Horton and Cervantes", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "four", + "category": "message", + "price": 341.44, + "stock_quantity": 47 + }, + "customer": { + "name": "Edward Perry", + "age": 48, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Zimmerman-Woods'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Zimmerman-Woods", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "alone", + "category": "sound", + "price": 400.97, + "stock_quantity": 156 + }, + "customer": { + "name": "Dylan Cabrera", + "age": 34, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Stevens-Hamilton", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "edge", + "category": "form", + "price": 473.76, + "stock_quantity": 656 + }, + "customer": { + "name": "Nicole Arellano", + "age": 24, + "country": "Christmas Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dennis Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dennis Group", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "recently", + "category": "under", + "price": 72.64, + "stock_quantity": 737 + }, + "customer": { + "name": "Michael Smith", + "age": 68, + "country": "Singapore" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Goodwin-Stewart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Goodwin-Stewart", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "whole", + "category": "situation", + "price": 189.89, + "stock_quantity": 283 + }, + "customer": { + "name": "Beth Turner", + "age": 57, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Parks-Guzman", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "of", + "category": "particularly", + "price": 216.78, + "stock_quantity": 853 + }, + "customer": { + "name": "Bobby Bowman", + "age": 57, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Martin, Ramsey and Castillo", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "necessary", + "category": "stage", + "price": 743.6, + "stock_quantity": 875 + }, + "customer": { + "name": "Jamie Soto", + "age": 33, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Roberts, Phillips and Nelson", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "by", + "category": "its", + "price": 651.69, + "stock_quantity": 681 + }, + "customer": { + "name": "Michelle Combs DDS", + "age": 79, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Werner Ltd", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "professor", + "category": "analysis", + "price": 96.85, + "stock_quantity": 656 + }, + "customer": { + "name": "Sheila Gonzalez", + "age": 61, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Brown, Peters and Thompson", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "describe", + "category": "bad", + "price": 375.75, + "stock_quantity": 277 + }, + "customer": { + "name": "Jessica Nielsen", + "age": 19, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Garcia, Jones and Willis", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "speech", + "category": "rise", + "price": 894.3, + "stock_quantity": 731 + }, + "customer": { + "name": "Benjamin Reed", + "age": 67, + "country": "Belarus" + } + }, + { + "natural_query": "List all products of Mathis, Hamilton and Davis ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Mathis, Hamilton and Davis' ORDER BY price ASC", + "company": { + "name": "Mathis, Hamilton and Davis", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "that", + "category": "they", + "price": 868.08, + "stock_quantity": 411 + }, + "customer": { + "name": "Timothy Harrell", + "age": 21, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Woods, Davis and Waller", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "read", + "category": "American", + "price": 373.24, + "stock_quantity": 114 + }, + "customer": { + "name": "Sylvia Johnson", + "age": 26, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Simmons, Williams and West'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Simmons, Williams and West", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "without", + "category": "process", + "price": 713.72, + "stock_quantity": 103 + }, + "customer": { + "name": "Sara Wolf", + "age": 37, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Moore, Williams and Johnson", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "party", + "category": "leg", + "price": 51.29, + "stock_quantity": 827 + }, + "customer": { + "name": "Kim Guzman", + "age": 49, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Brown, Murphy and Palmer", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "theory", + "category": "nearly", + "price": 208.77, + "stock_quantity": 862 + }, + "customer": { + "name": "William Meyer", + "age": 54, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "English, Gutierrez and Fowler", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "face", + "category": "hotel", + "price": 424.13, + "stock_quantity": 690 + }, + "customer": { + "name": "Debra Harrison", + "age": 32, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Mitchell LLC", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "interest", + "category": "enter", + "price": 886.48, + "stock_quantity": 359 + }, + "customer": { + "name": "Robin Robbins", + "age": 37, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Williamson, Davis and Buck", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "evening", + "category": "until", + "price": 884.04, + "stock_quantity": 120 + }, + "customer": { + "name": "Monique Ray", + "age": 56, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Perez-Miller", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "space", + "category": "police", + "price": 911.86, + "stock_quantity": 444 + }, + "customer": { + "name": "Stephanie Nixon", + "age": 53, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Nichols-Bell", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "benefit", + "category": "go", + "price": 781.73, + "stock_quantity": 872 + }, + "customer": { + "name": "Justin Johnson", + "age": 42, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Nguyen-Blair", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "individual", + "category": "cost", + "price": 267.91, + "stock_quantity": 244 + }, + "customer": { + "name": "Jeffrey Case DVM", + "age": 72, + "country": "Tunisia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pena PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pena PLC", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "president", + "category": "sure", + "price": 672.81, + "stock_quantity": 553 + }, + "customer": { + "name": "Amy Trevino", + "age": 47, + "country": "Spain" + } + }, + { + "natural_query": "What are the top 8 products by customers for Morales-Kaiser this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Morales-Kaiser' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8", + "company": { + "name": "Morales-Kaiser", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "believe", + "category": "degree", + "price": 970.84, + "stock_quantity": 553 + }, + "customer": { + "name": "Sharon King", + "age": 54, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Young, Lee and Shepard", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "too", + "category": "five", + "price": 839.0, + "stock_quantity": 667 + }, + "customer": { + "name": "Anne Watson", + "age": 62, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Hays PLC", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "democratic", + "category": "student", + "price": 25.2, + "stock_quantity": 797 + }, + "customer": { + "name": "Taylor Townsend", + "age": 69, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Mathews and Sons", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "officer", + "category": "light", + "price": 473.16, + "stock_quantity": 376 + }, + "customer": { + "name": "Donna Brown", + "age": 67, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Moore Inc", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "yes", + "category": "meeting", + "price": 127.66, + "stock_quantity": 463 + }, + "customer": { + "name": "Michele Mitchell", + "age": 31, + "country": "Iraq" + } + }, + { + "natural_query": "List all products of Mann, Cooper and Thompson ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Mann, Cooper and Thompson' ORDER BY rating DESC", + "company": { + "name": "Mann, Cooper and Thompson", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "wall", + "category": "space", + "price": 209.2, + "stock_quantity": 806 + }, + "customer": { + "name": "Carolyn Ramirez", + "age": 60, + "country": "Australia" + } + }, + { + "natural_query": "What is the total profit for each country in Harris-Peterson?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Harris-Peterson' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Harris-Peterson", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "whom", + "category": "policy", + "price": 215.66, + "stock_quantity": 780 + }, + "customer": { + "name": "Colleen Evans", + "age": 67, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Alvarez Group", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "probably", + "category": "popular", + "price": 89.92, + "stock_quantity": 732 + }, + "customer": { + "name": "Evan Green", + "age": 72, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Smith, Stevens and Hernandez", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "always", + "category": "month", + "price": 735.39, + "stock_quantity": 172 + }, + "customer": { + "name": "Vicki Jones", + "age": 54, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Jenkins PLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "win", + "category": "young", + "price": 304.06, + "stock_quantity": 28 + }, + "customer": { + "name": "Paul Thompson", + "age": 50, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Martin and Sons", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "history", + "category": "oil", + "price": 418.79, + "stock_quantity": 511 + }, + "customer": { + "name": "Natalie Campbell", + "age": 71, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Aguilar, Campbell and Williams", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "good", + "category": "stuff", + "price": 734.97, + "stock_quantity": 281 + }, + "customer": { + "name": "Vincent Mclaughlin", + "age": 78, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Ochoa, Lawson and Payne", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "article", + "category": "thing", + "price": 218.8, + "stock_quantity": 633 + }, + "customer": { + "name": "David Scott", + "age": 63, + "country": "Greece" + } + }, + { + "natural_query": "What is the average quantity of all products for Swanson and Sons?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Swanson and Sons'", + "company": { + "name": "Swanson and Sons", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "year", + "category": "wife", + "price": 97.78, + "stock_quantity": 655 + }, + "customer": { + "name": "Michael Diaz", + "age": 63, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Mata-Booker", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "car", + "category": "might", + "price": 709.57, + "stock_quantity": 669 + }, + "customer": { + "name": "Joshua Rivers", + "age": 57, + "country": "Thailand" + } + }, + { + "natural_query": "Show me all products in the sometimes category with a price over $743.75.", + "sql_query": "SELECT * FROM products WHERE category = 'sometimes' AND price > 743.75", + "company": { + "name": "Sutton-Yang", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "happen", + "category": "sometimes", + "price": 743.75, + "stock_quantity": 817 + }, + "customer": { + "name": "Justin Rogers", + "age": 59, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Newton Inc", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "war", + "category": "most", + "price": 707.27, + "stock_quantity": 453 + }, + "customer": { + "name": "Tina Peters", + "age": 44, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Watson and Sons", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "tend", + "category": "family", + "price": 125.1, + "stock_quantity": 209 + }, + "customer": { + "name": "Kathleen Lloyd", + "age": 38, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Davidson-Bradley", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "movement", + "category": "everything", + "price": 108.11, + "stock_quantity": 201 + }, + "customer": { + "name": "Anthony Vargas", + "age": 25, + "country": "Palau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Santiago, Mcbride and Fletcher'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Santiago, Mcbride and Fletcher", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "yard", + "category": "drug", + "price": 195.32, + "stock_quantity": 738 + }, + "customer": { + "name": "Elizabeth Butler", + "age": 54, + "country": "Nigeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kirby Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kirby Inc", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "life", + "category": "apply", + "price": 238.02, + "stock_quantity": 953 + }, + "customer": { + "name": "Morgan Garza", + "age": 70, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "White and Sons", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "notice", + "category": "wind", + "price": 352.58, + "stock_quantity": 478 + }, + "customer": { + "name": "Kirk Duncan", + "age": 78, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Hart, Hartman and White", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "inside", + "category": "effort", + "price": 44.15, + "stock_quantity": 145 + }, + "customer": { + "name": "Catherine Keller", + "age": 26, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Wilson Group", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "glass", + "category": "hundred", + "price": 763.69, + "stock_quantity": 745 + }, + "customer": { + "name": "Jonathan Cooper", + "age": 26, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Tran LLC", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "throughout", + "category": "foreign", + "price": 495.34, + "stock_quantity": 439 + }, + "customer": { + "name": "Robert Martin", + "age": 45, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Davis Inc", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "memory", + "category": "sense", + "price": 129.65, + "stock_quantity": 360 + }, + "customer": { + "name": "Jake Johnson", + "age": 59, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Rodriguez-Long", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "alone", + "category": "either", + "price": 491.56, + "stock_quantity": 911 + }, + "customer": { + "name": "Nancy Gonzalez", + "age": 54, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bailey-Barton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bailey-Barton", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "strong", + "category": "catch", + "price": 418.35, + "stock_quantity": 826 + }, + "customer": { + "name": "Abigail West", + "age": 37, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Miller Group", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "any", + "category": "into", + "price": 706.87, + "stock_quantity": 349 + }, + "customer": { + "name": "Tonya Howell", + "age": 32, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Johnston, May and Simpson", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "around", + "category": "indeed", + "price": 173.0, + "stock_quantity": 357 + }, + "customer": { + "name": "Melvin Jackson", + "age": 43, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Blanchard Group", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "on", + "category": "speak", + "price": 970.22, + "stock_quantity": 27 + }, + "customer": { + "name": "Karen Floyd", + "age": 30, + "country": "Indonesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Turner Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Turner Inc", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "say", + "category": "mother", + "price": 84.64, + "stock_quantity": 57 + }, + "customer": { + "name": "Brianna Tucker", + "age": 29, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Simmons, Brown and Howard", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "ago", + "category": "meeting", + "price": 217.12, + "stock_quantity": 122 + }, + "customer": { + "name": "Emily Alvarez", + "age": 34, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Christensen, Wade and Jones", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "song", + "category": "ready", + "price": 162.35, + "stock_quantity": 498 + }, + "customer": { + "name": "Maria Lewis", + "age": 64, + "country": "Andorra" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Herrera, Powell and Bryant'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Herrera, Powell and Bryant", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "million", + "category": "forget", + "price": 10.01, + "stock_quantity": 596 + }, + "customer": { + "name": "Christina Harris", + "age": 66, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Wright-Smith", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "culture", + "category": "want", + "price": 584.14, + "stock_quantity": 368 + }, + "customer": { + "name": "Kenneth Nelson", + "age": 42, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Aguilar Group", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "exist", + "category": "play", + "price": 35.64, + "stock_quantity": 249 + }, + "customer": { + "name": "John Davis", + "age": 44, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Hughes PLC", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "to", + "category": "as", + "price": 141.61, + "stock_quantity": 680 + }, + "customer": { + "name": "Kathleen Alvarez PhD", + "age": 25, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Banks, Martin and West", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "director", + "category": "traditional", + "price": 532.47, + "stock_quantity": 767 + }, + "customer": { + "name": "Deborah Smith", + "age": 74, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Spence-Gonzales", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "start", + "category": "fill", + "price": 164.21, + "stock_quantity": 65 + }, + "customer": { + "name": "Leslie Barton", + "age": 42, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Becker-Sawyer", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "but", + "category": "adult", + "price": 886.95, + "stock_quantity": 29 + }, + "customer": { + "name": "Laura Brown", + "age": 79, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Castillo and Sons", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "issue", + "category": "more", + "price": 962.15, + "stock_quantity": 256 + }, + "customer": { + "name": "Barbara Andrews", + "age": 77, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Jackson-Jones", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "sing", + "category": "morning", + "price": 846.64, + "stock_quantity": 18 + }, + "customer": { + "name": "Amanda Evans", + "age": 47, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Coleman PLC", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "your", + "category": "during", + "price": 830.27, + "stock_quantity": 867 + }, + "customer": { + "name": "Devin Martinez", + "age": 21, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Morris, Davis and Peterson", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "unit", + "category": "contain", + "price": 875.11, + "stock_quantity": 795 + }, + "customer": { + "name": "Shane Anderson", + "age": 66, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Walls-Levine", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "across", + "category": "campaign", + "price": 700.47, + "stock_quantity": 998 + }, + "customer": { + "name": "David Ball", + "age": 52, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Craig-Hickman", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "leave", + "category": "base", + "price": 220.97, + "stock_quantity": 973 + }, + "customer": { + "name": "Randy Johnson", + "age": 18, + "country": "Grenada" + } + }, + { + "natural_query": "Show me all products in the current category with a price over $598.31.", + "sql_query": "SELECT * FROM products WHERE category = 'current' AND price > 598.31", + "company": { + "name": "Christensen-Martinez", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "friend", + "category": "current", + "price": 598.31, + "stock_quantity": 113 + }, + "customer": { + "name": "Tasha Garrett", + "age": 75, + "country": "Romania" + } + }, + { + "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'", + "company": { + "name": "Campbell Group", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "way", + "category": "Democrat", + "price": 859.87, + "stock_quantity": 983 + }, + "customer": { + "name": "Heather Castro", + "age": 40, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Hammond, Brown and Henry", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "among", + "category": "staff", + "price": 183.87, + "stock_quantity": 831 + }, + "customer": { + "name": "Mike Reilly", + "age": 23, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Roberts-Hamilton", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "manager", + "category": "let", + "price": 225.29, + "stock_quantity": 289 + }, + "customer": { + "name": "Zachary Mooney", + "age": 68, + "country": "Myanmar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Holt Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Holt Group", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "view", + "category": "especially", + "price": 229.51, + "stock_quantity": 281 + }, + "customer": { + "name": "Leah Green", + "age": 54, + "country": "Jersey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'King-Wright'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "King-Wright", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "energy", + "category": "nation", + "price": 276.33, + "stock_quantity": 328 + }, + "customer": { + "name": "Deanna Chambers", + "age": 65, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Martinez, Perry and Robbins", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "sometimes", + "category": "so", + "price": 73.84, + "stock_quantity": 96 + }, + "customer": { + "name": "Carla Decker", + "age": 62, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Thompson Inc", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "talk", + "category": "coach", + "price": 993.74, + "stock_quantity": 499 + }, + "customer": { + "name": "Mrs. Theresa Rivera", + "age": 54, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "James LLC", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "cut", + "category": "rock", + "price": 879.71, + "stock_quantity": 198 + }, + "customer": { + "name": "Joanna Shelton", + "age": 34, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Hammond Inc", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "employee", + "category": "ability", + "price": 934.33, + "stock_quantity": 52 + }, + "customer": { + "name": "Wendy Greene", + "age": 71, + "country": "Montenegro" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Tucker PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Tucker PLC", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "thousand", + "category": "view", + "price": 211.5, + "stock_quantity": 891 + }, + "customer": { + "name": "Daniel Diaz", + "age": 54, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Mclean PLC", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "tell", + "category": "down", + "price": 309.04, + "stock_quantity": 916 + }, + "customer": { + "name": "Ana Parker", + "age": 18, + "country": "British Virgin Islands" + } + }, + { + "natural_query": "What are the top 6 products by customers for Velez, Hughes and Robertson this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Velez, Hughes and Robertson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6", + "company": { + "name": "Velez, Hughes and Robertson", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "doctor", + "category": "reality", + "price": 682.71, + "stock_quantity": 573 + }, + "customer": { + "name": "Gabriel Rice", + "age": 65, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gomez Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gomez Ltd", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "a", + "category": "bill", + "price": 365.88, + "stock_quantity": 138 + }, + "customer": { + "name": "Derrick Clark", + "age": 62, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Stevenson and Sons", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "Congress", + "category": "carry", + "price": 302.9, + "stock_quantity": 543 + }, + "customer": { + "name": "Melissa Pugh", + "age": 35, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Johnson, Morton and Anderson", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "Democrat", + "category": "drug", + "price": 691.53, + "stock_quantity": 97 + }, + "customer": { + "name": "Samuel Young", + "age": 56, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Flowers Inc", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "expert", + "category": "trouble", + "price": 678.52, + "stock_quantity": 98 + }, + "customer": { + "name": "David Cook", + "age": 24, + "country": "Pitcairn Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hart-Harris'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hart-Harris", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "ahead", + "category": "morning", + "price": 628.2, + "stock_quantity": 305 + }, + "customer": { + "name": "Kaitlyn Rivas", + "age": 77, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Washington, Thomas and Shelton", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "when", + "category": "scene", + "price": 849.16, + "stock_quantity": 945 + }, + "customer": { + "name": "Joseph Thompson", + "age": 60, + "country": "Afghanistan" + } + }, + { + "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'", + "company": { + "name": "Scott Ltd", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "which", + "category": "without", + "price": 829.12, + "stock_quantity": 734 + }, + "customer": { + "name": "Eileen Shaw", + "age": 23, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Franklin, Turner and Kim", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "check", + "category": "customer", + "price": 806.82, + "stock_quantity": 847 + }, + "customer": { + "name": "Patricia Fletcher", + "age": 68, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Beltran PLC", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "especially", + "category": "hard", + "price": 158.23, + "stock_quantity": 487 + }, + "customer": { + "name": "Scott Baldwin", + "age": 70, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Carter-Brooks", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "serious", + "category": "country", + "price": 746.14, + "stock_quantity": 862 + }, + "customer": { + "name": "Thomas Watkins", + "age": 22, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "natural_query": "What are the top 9 products by orders for Morgan-Roth this month?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Morgan-Roth' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9", + "company": { + "name": "Morgan-Roth", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "between", + "category": "public", + "price": 883.92, + "stock_quantity": 607 + }, + "customer": { + "name": "Casey Robinson", + "age": 28, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Martin-Sutton", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "as", + "category": "floor", + "price": 14.58, + "stock_quantity": 697 + }, + "customer": { + "name": "Alyssa Brady", + "age": 67, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Edwards, Morris and Norman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Edwards, Morris and Norman", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "foot", + "category": "be", + "price": 719.58, + "stock_quantity": 811 + }, + "customer": { + "name": "Daniel Smith", + "age": 42, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Maldonado-Flores", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "news", + "category": "behavior", + "price": 42.36, + "stock_quantity": 912 + }, + "customer": { + "name": "Charles Torres", + "age": 48, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Taylor-Boyle", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "pretty", + "category": "herself", + "price": 480.2, + "stock_quantity": 410 + }, + "customer": { + "name": "Teresa Williams", + "age": 38, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Williams-Gates", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "about", + "category": "house", + "price": 178.16, + "stock_quantity": 611 + }, + "customer": { + "name": "Andrea Hughes", + "age": 20, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Marquez and Sons", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "big", + "category": "win", + "price": 395.22, + "stock_quantity": 182 + }, + "customer": { + "name": "Alison Young", + "age": 36, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Pacheco Inc", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "current", + "category": "itself", + "price": 948.84, + "stock_quantity": 973 + }, + "customer": { + "name": "Mary Kramer", + "age": 66, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Rios Ltd", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "happy", + "category": "economy", + "price": 871.89, + "stock_quantity": 35 + }, + "customer": { + "name": "Mary Roman", + "age": 77, + "country": "Saudi Arabia" + } + }, + { + "natural_query": "Show me all products in the yes category with a price over $163.9.", + "sql_query": "SELECT * FROM products WHERE category = 'yes' AND price > 163.9", + "company": { + "name": "Reynolds-Jones", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "character", + "category": "yes", + "price": 163.9, + "stock_quantity": 634 + }, + "customer": { + "name": "Bryan Brooks", + "age": 42, + "country": "Holy See (Vatican City State)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kelly Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kelly Ltd", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "can", + "category": "score", + "price": 414.14, + "stock_quantity": 975 + }, + "customer": { + "name": "David Horton", + "age": 67, + "country": "Benin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lee LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lee LLC", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "establish", + "category": "represent", + "price": 837.89, + "stock_quantity": 298 + }, + "customer": { + "name": "Troy Reeves", + "age": 49, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Mack PLC", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "account", + "category": "property", + "price": 143.28, + "stock_quantity": 571 + }, + "customer": { + "name": "Neil Todd", + "age": 52, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Barnes, Leonard and Smith", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "close", + "category": "space", + "price": 51.26, + "stock_quantity": 445 + }, + "customer": { + "name": "Travis Winters", + "age": 34, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Harrison, Campbell and Hodge", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "ahead", + "category": "apply", + "price": 567.73, + "stock_quantity": 551 + }, + "customer": { + "name": "Gerald Howard", + "age": 61, + "country": "Syrian Arab Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'English, Parker and Parker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "English, Parker and Parker", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "choice", + "category": "relationship", + "price": 172.39, + "stock_quantity": 226 + }, + "customer": { + "name": "Rachel Hardy", + "age": 28, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Jimenez-Welch", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "any", + "category": "environment", + "price": 980.6, + "stock_quantity": 111 + }, + "customer": { + "name": "Hector Simmons", + "age": 29, + "country": "Azerbaijan" + } + }, + { + "natural_query": "What are the top 7 products by orders for Flynn, Simpson and Coleman all time?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Flynn, Simpson and Coleman' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7", + "company": { + "name": "Flynn, Simpson and Coleman", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "rate", + "category": "quite", + "price": 108.47, + "stock_quantity": 643 + }, + "customer": { + "name": "Lisa Richardson", + "age": 75, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Edwards-Moran", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "letter", + "category": "opportunity", + "price": 171.58, + "stock_quantity": 704 + }, + "customer": { + "name": "Thomas Joseph", + "age": 60, + "country": "Suriname" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson-Leon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson-Leon", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "security", + "category": "one", + "price": 233.66, + "stock_quantity": 885 + }, + "customer": { + "name": "Alyssa Richard", + "age": 23, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Sparks, Dean and Sweeney", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "government", + "category": "training", + "price": 411.01, + "stock_quantity": 352 + }, + "customer": { + "name": "Gail Nelson", + "age": 63, + "country": "Guam" + } + }, + { + "natural_query": "What is the average rating of all products for Robles, Mcdonald and Lynch?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Robles, Mcdonald and Lynch'", + "company": { + "name": "Robles, Mcdonald and Lynch", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "lose", + "category": "born", + "price": 686.43, + "stock_quantity": 842 + }, + "customer": { + "name": "Jason Mendoza", + "age": 44, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Gilbert, Rodriguez and Mitchell", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "listen", + "category": "position", + "price": 333.27, + "stock_quantity": 411 + }, + "customer": { + "name": "Jessica Ortega", + "age": 28, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Gardner and Sons", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "accept", + "category": "ago", + "price": 663.13, + "stock_quantity": 738 + }, + "customer": { + "name": "Laura Wells", + "age": 25, + "country": "Ukraine" + } + }, + { + "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'", + "company": { + "name": "Obrien, Grimes and Clark", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "nor", + "category": "though", + "price": 507.25, + "stock_quantity": 235 + }, + "customer": { + "name": "Jason Cannon", + "age": 44, + "country": "Guernsey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez LLC", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "Mr", + "category": "argue", + "price": 287.32, + "stock_quantity": 467 + }, + "customer": { + "name": "Matthew Clark", + "age": 35, + "country": "Uganda" + } + }, + { + "natural_query": "List all customers and their total order value for Levine PLC.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Levine PLC' GROUP BY c.customer_id", + "company": { + "name": "Levine PLC", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "spend", + "category": "network", + "price": 908.79, + "stock_quantity": 703 + }, + "customer": { + "name": "Jason Cruz", + "age": 38, + "country": "Saint Martin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baldwin PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baldwin PLC", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "research", + "category": "without", + "price": 575.93, + "stock_quantity": 346 + }, + "customer": { + "name": "Ashley Webb", + "age": 71, + "country": "Togo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Day PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Day PLC", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "trouble", + "category": "have", + "price": 127.74, + "stock_quantity": 628 + }, + "customer": { + "name": "Jonathan Blankenship", + "age": 77, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Thomas, Mcgee and Acosta", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "late", + "category": "person", + "price": 810.18, + "stock_quantity": 278 + }, + "customer": { + "name": "Courtney Rush", + "age": 24, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "teach", + "category": "whom", + "price": 274.2, + "stock_quantity": 144 + }, + "customer": { + "name": "Brian Gomez", + "age": 62, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Williams, Paul and Anderson", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "magazine", + "category": "I", + "price": 874.55, + "stock_quantity": 791 + }, + "customer": { + "name": "Brooke Zamora", + "age": 60, + "country": "Jamaica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Abbott Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Abbott Ltd", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "kind", + "category": "heart", + "price": 30.79, + "stock_quantity": 127 + }, + "customer": { + "name": "Catherine Erickson", + "age": 53, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Reyes Ltd", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "read", + "category": "push", + "price": 35.68, + "stock_quantity": 146 + }, + "customer": { + "name": "Dan Dominguez", + "age": 24, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Caldwell, Fry and Brown", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "color", + "category": "far", + "price": 130.57, + "stock_quantity": 387 + }, + "customer": { + "name": "Corey Pearson", + "age": 46, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "control", + "category": "become", + "price": 419.18, + "stock_quantity": 117 + }, + "customer": { + "name": "Linda Gray", + "age": 32, + "country": "Cameroon" + } + }, + { + "natural_query": "What is the maximum price of all products for Cooper PLC?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Cooper PLC'", + "company": { + "name": "Cooper PLC", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "most", + "category": "attack", + "price": 573.45, + "stock_quantity": 293 + }, + "customer": { + "name": "Sharon Cain", + "age": 28, + "country": "France" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown, Hart and Pineda'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown, Hart and Pineda", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "listen", + "category": "they", + "price": 851.04, + "stock_quantity": 468 + }, + "customer": { + "name": "Robert Johnson", + "age": 28, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Davis Group", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "piece", + "category": "early", + "price": 894.83, + "stock_quantity": 830 + }, + "customer": { + "name": "Danny Wood", + "age": 77, + "country": "Isle of Man" + } + }, + { + "natural_query": "List all customers and their total order value for Ramirez-Barron.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Ramirez-Barron' GROUP BY c.customer_id", + "company": { + "name": "Ramirez-Barron", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "special", + "category": "real", + "price": 301.43, + "stock_quantity": 563 + }, + "customer": { + "name": "Sara Edwards", + "age": 48, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Lloyd, Tucker and Baker", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "center", + "category": "myself", + "price": 320.95, + "stock_quantity": 44 + }, + "customer": { + "name": "James Erickson", + "age": 30, + "country": "United States Virgin Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wyatt, Smith and Lopez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wyatt, Smith and Lopez", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "research", + "category": "another", + "price": 270.87, + "stock_quantity": 908 + }, + "customer": { + "name": "Sarah Hayes", + "age": 37, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Hamilton Ltd", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "get", + "category": "site", + "price": 458.29, + "stock_quantity": 634 + }, + "customer": { + "name": "Roger Jackson", + "age": 76, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Sparks-Valentine", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "visit", + "category": "phone", + "price": 219.99, + "stock_quantity": 183 + }, + "customer": { + "name": "Caleb Weaver", + "age": 18, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Melendez PLC", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "leave", + "category": "high", + "price": 393.06, + "stock_quantity": 460 + }, + "customer": { + "name": "Kristin Martinez", + "age": 34, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Villanueva, Craig and Payne", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "notice", + "category": "music", + "price": 351.88, + "stock_quantity": 585 + }, + "customer": { + "name": "Amy Franklin", + "age": 51, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Martin Group", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "relationship", + "category": "water", + "price": 383.36, + "stock_quantity": 5 + }, + "customer": { + "name": "David Pruitt", + "age": 30, + "country": "Guinea-Bissau" + } + }, + { + "natural_query": "What is the total quantity of all products for Wright and Sons?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wright and Sons'", + "company": { + "name": "Wright and Sons", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "public", + "category": "between", + "price": 337.02, + "stock_quantity": 882 + }, + "customer": { + "name": "Ashley Holland", + "age": 23, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "the", + "category": "care", + "price": 592.17, + "stock_quantity": 253 + }, + "customer": { + "name": "Anthony Cruz", + "age": 32, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Hull-Barrett", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "that", + "category": "goal", + "price": 750.96, + "stock_quantity": 129 + }, + "customer": { + "name": "Laura Underwood", + "age": 32, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Carlson, Moody and Gutierrez", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "left", + "category": "energy", + "price": 905.19, + "stock_quantity": 728 + }, + "customer": { + "name": "Patricia Sutton", + "age": 72, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Freeman Ltd", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "wait", + "category": "base", + "price": 563.75, + "stock_quantity": 978 + }, + "customer": { + "name": "Michael White", + "age": 60, + "country": "Myanmar" + } + }, + { + "natural_query": "List all products of Lee, Guerrero and Fritz ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Lee, Guerrero and Fritz' ORDER BY stock_quantity ASC", + "company": { + "name": "Lee, Guerrero and Fritz", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "member", + "category": "choice", + "price": 894.92, + "stock_quantity": 83 + }, + "customer": { + "name": "William Austin", + "age": 18, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Rogers-Ford", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "speak", + "category": "form", + "price": 826.7, + "stock_quantity": 933 + }, + "customer": { + "name": "Justin Pennington", + "age": 40, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Anderson-Anderson", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "show", + "category": "how", + "price": 587.15, + "stock_quantity": 295 + }, + "customer": { + "name": "Anna Erickson", + "age": 28, + "country": "Bulgaria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Allen, Robertson and Blankenship'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Allen, Robertson and Blankenship", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "condition", + "category": "officer", + "price": 297.97, + "stock_quantity": 722 + }, + "customer": { + "name": "Stephen Graves", + "age": 47, + "country": "Palau" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Smith, Arnold and Watkins for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Arnold and Watkins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Arnold and Watkins", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "others", + "category": "create", + "price": 207.92, + "stock_quantity": 807 + }, + "customer": { + "name": "Kristina Davila", + "age": 54, + "country": "Saint Martin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Singh LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Singh LLC", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "break", + "category": "own", + "price": 575.26, + "stock_quantity": 809 + }, + "customer": { + "name": "Raymond Williams", + "age": 60, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Stevenson, Sawyer and Cruz", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "meet", + "category": "model", + "price": 437.17, + "stock_quantity": 507 + }, + "customer": { + "name": "Derek Prince", + "age": 61, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Gray-Jones", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "ground", + "category": "still", + "price": 659.27, + "stock_quantity": 123 + }, + "customer": { + "name": "David Douglas", + "age": 42, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Walker and Sons", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "true", + "category": "serious", + "price": 813.77, + "stock_quantity": 802 + }, + "customer": { + "name": "James Ellis", + "age": 80, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Glass-Ellison", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "find", + "category": "quite", + "price": 948.93, + "stock_quantity": 915 + }, + "customer": { + "name": "Ronnie Bowman", + "age": 40, + "country": "Barbados" + } + }, + { + "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'", + "company": { + "name": "Kline Inc", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "from", + "category": "popular", + "price": 952.47, + "stock_quantity": 901 + }, + "customer": { + "name": "Jack Hunter", + "age": 73, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Obrien, White and Marshall", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "past", + "category": "speak", + "price": 911.96, + "stock_quantity": 188 + }, + "customer": { + "name": "Robert Ortega", + "age": 57, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Richmond, Mendez and Forbes", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "include", + "category": "within", + "price": 971.83, + "stock_quantity": 777 + }, + "customer": { + "name": "Austin Green", + "age": 50, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Duran and Sons", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "sister", + "category": "employee", + "price": 305.72, + "stock_quantity": 766 + }, + "customer": { + "name": "Martha Reyes", + "age": 57, + "country": "Lesotho" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nunez-Boone'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nunez-Boone", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "person", + "category": "similar", + "price": 479.54, + "stock_quantity": 561 + }, + "customer": { + "name": "Emily Norton DVM", + "age": 60, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Kidd-Ross", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "sing", + "category": "five", + "price": 780.15, + "stock_quantity": 171 + }, + "customer": { + "name": "Mr. Nicholas Rocha", + "age": 71, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Thomas, Thompson and Stewart", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "owner", + "category": "young", + "price": 455.03, + "stock_quantity": 335 + }, + "customer": { + "name": "Jeremy Alvarez", + "age": 49, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Coleman Ltd", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "get", + "category": "nearly", + "price": 158.4, + "stock_quantity": 4 + }, + "customer": { + "name": "Justin Bryan", + "age": 36, + "country": "Nauru" + } + }, + { + "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'", + "company": { + "name": "Johnson-Mason", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "science", + "category": "require", + "price": 803.04, + "stock_quantity": 22 + }, + "customer": { + "name": "Angela Todd", + "age": 79, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Nash-Wilson", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "near", + "category": "ever", + "price": 858.93, + "stock_quantity": 951 + }, + "customer": { + "name": "Samantha Ellison", + "age": 74, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Salinas and Sons", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "agent", + "category": "threat", + "price": 388.22, + "stock_quantity": 628 + }, + "customer": { + "name": "Alejandro Hendricks", + "age": 19, + "country": "Ireland" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Robinson LLC?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Robinson LLC' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Robinson LLC", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "matter", + "category": "month", + "price": 667.1, + "stock_quantity": 176 + }, + "customer": { + "name": "Lindsey Anderson", + "age": 55, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Chavez-Wong", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "now", + "category": "report", + "price": 452.27, + "stock_quantity": 225 + }, + "customer": { + "name": "Jacqueline Bass", + "age": 44, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Benjamin and Sons", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "score", + "category": "get", + "price": 807.29, + "stock_quantity": 211 + }, + "customer": { + "name": "Valerie Schultz", + "age": 69, + "country": "Turkey" + } + }, + { + "natural_query": "List all customers and their total order value for Robertson-Jones.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Robertson-Jones' GROUP BY c.customer_id", + "company": { + "name": "Robertson-Jones", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "institution", + "category": "perform", + "price": 624.73, + "stock_quantity": 837 + }, + "customer": { + "name": "Stacey Thompson", + "age": 24, + "country": "Djibouti" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bailey-Ramirez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bailey-Ramirez", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "herself", + "category": "memory", + "price": 604.9, + "stock_quantity": 812 + }, + "customer": { + "name": "George Thomas", + "age": 34, + "country": "Poland" + } + }, + { + "natural_query": "What is the maximum price of all products for Pacheco Ltd?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Pacheco Ltd'", + "company": { + "name": "Pacheco Ltd", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "visit", + "category": "total", + "price": 677.1, + "stock_quantity": 775 + }, + "customer": { + "name": "Cristian Mathis", + "age": 73, + "country": "Estonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Anderson Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Anderson Group", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "four", + "category": "all", + "price": 601.97, + "stock_quantity": 596 + }, + "customer": { + "name": "Philip Spencer", + "age": 56, + "country": "Argentina" + } + }, + { + "natural_query": "What is the minimum quantity of all products for Potts Inc?", + "sql_query": "SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Potts Inc'", + "company": { + "name": "Potts Inc", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "create", + "category": "discover", + "price": 879.58, + "stock_quantity": 631 + }, + "customer": { + "name": "Stephen Sanford", + "age": 53, + "country": "Bulgaria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rojas-Gallagher'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rojas-Gallagher", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "join", + "category": "admit", + "price": 503.96, + "stock_quantity": 432 + }, + "customer": { + "name": "Jill Miranda", + "age": 70, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Peters-Perez", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "face", + "category": "use", + "price": 871.83, + "stock_quantity": 927 + }, + "customer": { + "name": "Christy Ballard", + "age": 65, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Wilson, Bradford and Flores", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "wonder", + "category": "investment", + "price": 121.85, + "stock_quantity": 856 + }, + "customer": { + "name": "David Fletcher", + "age": 67, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Davis, Higgins and Green", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "provide", + "category": "military", + "price": 594.19, + "stock_quantity": 860 + }, + "customer": { + "name": "Evan Gardner", + "age": 79, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Lee-Nelson", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "big", + "category": "building", + "price": 633.83, + "stock_quantity": 688 + }, + "customer": { + "name": "Jeremy West", + "age": 45, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Evans-Vega", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "happen", + "category": "series", + "price": 714.09, + "stock_quantity": 886 + }, + "customer": { + "name": "Richard Costa", + "age": 24, + "country": "Macao" + } + }, + { + "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'", + "company": { + "name": "Hansen LLC", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "theory", + "category": "close", + "price": 81.13, + "stock_quantity": 510 + }, + "customer": { + "name": "Sara Wallace", + "age": 41, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Ferguson, Thompson and Alexander", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "term", + "category": "treat", + "price": 49.67, + "stock_quantity": 917 + }, + "customer": { + "name": "Daniel Johnson", + "age": 75, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Foster, Mcdonald and Henry", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "door", + "category": "point", + "price": 294.41, + "stock_quantity": 186 + }, + "customer": { + "name": "Charlotte Gutierrez", + "age": 21, + "country": "Tuvalu" + } + }, + { + "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'", + "company": { + "name": "Salas-Keller", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "continue", + "category": "seat", + "price": 373.88, + "stock_quantity": 312 + }, + "customer": { + "name": "Anthony Martinez", + "age": 42, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Leach Ltd", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "hard", + "category": "defense", + "price": 658.64, + "stock_quantity": 484 + }, + "customer": { + "name": "Craig Greene", + "age": 48, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Wilson-Wilson", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "little", + "category": "agent", + "price": 664.33, + "stock_quantity": 273 + }, + "customer": { + "name": "James Dean", + "age": 36, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Reyes-Watkins", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "individual", + "category": "improve", + "price": 693.62, + "stock_quantity": 961 + }, + "customer": { + "name": "Daniel Curtis", + "age": 72, + "country": "Nicaragua" + } + }, + { + "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'", + "company": { + "name": "Brown, Edwards and Morgan", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "foreign", + "category": "ready", + "price": 89.73, + "stock_quantity": 23 + }, + "customer": { + "name": "Sandra Henry", + "age": 62, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Johnson, Thompson and Anderson", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "specific", + "category": "including", + "price": 662.4, + "stock_quantity": 768 + }, + "customer": { + "name": "Kim Hernandez", + "age": 52, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Ortega, Martinez and Mcbride", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "firm", + "category": "administration", + "price": 689.81, + "stock_quantity": 97 + }, + "customer": { + "name": "Jessica Wilson", + "age": 39, + "country": "United Kingdom" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson-Thomas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson-Thomas", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "style", + "category": "grow", + "price": 338.34, + "stock_quantity": 100 + }, + "customer": { + "name": "Thomas Hernandez", + "age": 18, + "country": "Nigeria" + } + }, + { + "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'", + "company": { + "name": "Williams, Davis and Davis", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "give", + "category": "life", + "price": 296.12, + "stock_quantity": 366 + }, + "customer": { + "name": "Robert Ross", + "age": 31, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Jones, Bradley and Lewis", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "but", + "category": "likely", + "price": 196.14, + "stock_quantity": 106 + }, + "customer": { + "name": "Amanda Warren", + "age": 72, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Stevenson and Sons", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "sing", + "category": "every", + "price": 31.1, + "stock_quantity": 8 + }, + "customer": { + "name": "Brian Farmer", + "age": 20, + "country": "Togo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hampton, Williams and Mcguire'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hampton, Williams and Mcguire", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "suggest", + "category": "brother", + "price": 406.93, + "stock_quantity": 999 + }, + "customer": { + "name": "Susan Gonzalez", + "age": 58, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Garcia Inc", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "dream", + "category": "movement", + "price": 367.78, + "stock_quantity": 980 + }, + "customer": { + "name": "Amanda Young", + "age": 58, + "country": "Nauru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lee-Long'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lee-Long", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "stay", + "category": "interesting", + "price": 459.75, + "stock_quantity": 937 + }, + "customer": { + "name": "David Rojas", + "age": 69, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Gutierrez Group", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "apply", + "category": "sit", + "price": 298.81, + "stock_quantity": 224 + }, + "customer": { + "name": "Christopher Diaz", + "age": 49, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Nguyen PLC", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "ahead", + "category": "network", + "price": 907.84, + "stock_quantity": 563 + }, + "customer": { + "name": "John Chandler", + "age": 76, + "country": "Peru" + } + }, + { + "natural_query": "List all products of Palmer-Dixon ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Palmer-Dixon' ORDER BY rating ASC", + "company": { + "name": "Palmer-Dixon", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "house", + "category": "quality", + "price": 881.4, + "stock_quantity": 685 + }, + "customer": { + "name": "Ashley Church", + "age": 38, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Scott, James and Townsend", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "others", + "category": "bill", + "price": 616.93, + "stock_quantity": 722 + }, + "customer": { + "name": "Jeffrey Davis", + "age": 45, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "baby", + "category": "shoulder", + "price": 664.74, + "stock_quantity": 126 + }, + "customer": { + "name": "Tiffany Mendoza", + "age": 48, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Duncan-Evans", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "look", + "category": "decide", + "price": 290.44, + "stock_quantity": 758 + }, + "customer": { + "name": "Anthony King", + "age": 38, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Perez-Jennings", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "compare", + "category": "note", + "price": 367.5, + "stock_quantity": 390 + }, + "customer": { + "name": "Philip Parker", + "age": 38, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Allen, Fletcher and Clark", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "claim", + "category": "model", + "price": 300.14, + "stock_quantity": 625 + }, + "customer": { + "name": "Adam Burch", + "age": 63, + "country": "Kazakhstan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martinez, Stewart and Cohen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martinez, Stewart and Cohen", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "owner", + "category": "point", + "price": 229.66, + "stock_quantity": 858 + }, + "customer": { + "name": "Jodi Jenkins", + "age": 38, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Sanchez PLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "market", + "category": "Republican", + "price": 966.82, + "stock_quantity": 370 + }, + "customer": { + "name": "Ruben Reed", + "age": 54, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Gonzalez Ltd", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "direction", + "category": "sell", + "price": 47.4, + "stock_quantity": 40 + }, + "customer": { + "name": "Chelsea Frazier", + "age": 21, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Miller-Stevens", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "though", + "category": "somebody", + "price": 885.56, + "stock_quantity": 403 + }, + "customer": { + "name": "Ronald Stone", + "age": 50, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Moore Ltd", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "today", + "category": "health", + "price": 234.14, + "stock_quantity": 419 + }, + "customer": { + "name": "Marc Weeks", + "age": 37, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Leach PLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "effect", + "category": "of", + "price": 670.74, + "stock_quantity": 3 + }, + "customer": { + "name": "Ashley Wagner", + "age": 80, + "country": "Togo" + } + }, + { + "natural_query": "What are the top 6 products by revenue for Hampton and Sons this month?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hampton and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6", + "company": { + "name": "Hampton and Sons", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "model", + "category": "science", + "price": 282.16, + "stock_quantity": 185 + }, + "customer": { + "name": "Jenny Swanson", + "age": 60, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Short, Braun and Nelson", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "particular", + "category": "simple", + "price": 386.89, + "stock_quantity": 671 + }, + "customer": { + "name": "Catherine Farmer", + "age": 60, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Garcia, Boyer and Robinson", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "debate", + "category": "dark", + "price": 208.06, + "stock_quantity": 997 + }, + "customer": { + "name": "Jesse Gamble", + "age": 40, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Calderon, Chang and Johnson", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "view", + "category": "environment", + "price": 336.92, + "stock_quantity": 555 + }, + "customer": { + "name": "Thomas Williams", + "age": 35, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Campbell, Johnson and Bradford", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "best", + "category": "arrive", + "price": 253.1, + "stock_quantity": 507 + }, + "customer": { + "name": "Rickey Harvey", + "age": 78, + "country": "India" + } + }, + { + "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'", + "company": { + "name": "Thomas, Richards and Bryant", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "audience", + "category": "should", + "price": 740.42, + "stock_quantity": 55 + }, + "customer": { + "name": "Dominic Bean", + "age": 75, + "country": "Saint Kitts and Nevis" + } + }, + { + "natural_query": "List all products of Harrison PLC ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Harrison PLC' ORDER BY stock_quantity ASC", + "company": { + "name": "Harrison PLC", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "opportunity", + "category": "anyone", + "price": 193.56, + "stock_quantity": 161 + }, + "customer": { + "name": "Thomas Mendez", + "age": 77, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Conner Inc", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "station", + "category": "very", + "price": 709.91, + "stock_quantity": 110 + }, + "customer": { + "name": "Holly Ray", + "age": 74, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Thomas, Brewer and Kelley", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "east", + "category": "up", + "price": 850.03, + "stock_quantity": 251 + }, + "customer": { + "name": "Oscar Griffin", + "age": 65, + "country": "United Kingdom" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Jones-Brooks for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones-Brooks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones-Brooks", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "century", + "category": "watch", + "price": 762.3, + "stock_quantity": 229 + }, + "customer": { + "name": "Jason Clark", + "age": 36, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Lewis LLC", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "spend", + "category": "sport", + "price": 883.52, + "stock_quantity": 312 + }, + "customer": { + "name": "Kathy Ellis", + "age": 76, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "May Group", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "sister", + "category": "hot", + "price": 646.67, + "stock_quantity": 9 + }, + "customer": { + "name": "David Roach", + "age": 31, + "country": "Germany" + } + }, + { + "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'", + "company": { + "name": "Taylor, Silva and Ortega", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "stock", + "category": "part", + "price": 980.51, + "stock_quantity": 711 + }, + "customer": { + "name": "Debra Ramos", + "age": 39, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Martin, Hale and Bell", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "maintain", + "category": "set", + "price": 309.6, + "stock_quantity": 217 + }, + "customer": { + "name": "Susan Simpson", + "age": 66, + "country": "Ireland" + } + }, + { + "natural_query": "How many orders were placed for Jones PLC between 2024-06-13 and 2024-08-20?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones PLC' AND order_date BETWEEN '2024-06-13' AND '2024-08-20'", + "company": { + "name": "Jones PLC", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "general", + "category": "physical", + "price": 147.64, + "stock_quantity": 225 + }, + "customer": { + "name": "Tyler Mckenzie", + "age": 29, + "country": "Czech Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wallace PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wallace PLC", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "role", + "category": "suggest", + "price": 368.87, + "stock_quantity": 55 + }, + "customer": { + "name": "Jennifer Rosario", + "age": 21, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Raymond-Mclean", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "quite", + "category": "raise", + "price": 135.2, + "stock_quantity": 858 + }, + "customer": { + "name": "Rebecca Herring", + "age": 36, + "country": "Kyrgyz Republic" + } + }, + { + "natural_query": "What is the total quantity for each country in Shelton, Miller and Smith?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Shelton, Miller and Smith' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Shelton, Miller and Smith", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "production", + "category": "growth", + "price": 483.11, + "stock_quantity": 37 + }, + "customer": { + "name": "Jacqueline Fields", + "age": 35, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Bishop-Carroll", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "test", + "category": "type", + "price": 736.42, + "stock_quantity": 333 + }, + "customer": { + "name": "Donna Ayers", + "age": 32, + "country": "Belize" + } + }, + { + "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'", + "company": { + "name": "King, Long and Johnston", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "use", + "category": "agreement", + "price": 787.22, + "stock_quantity": 605 + }, + "customer": { + "name": "Samantha Brown", + "age": 26, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Hahn-Snyder", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "leg", + "category": "growth", + "price": 786.39, + "stock_quantity": 56 + }, + "customer": { + "name": "Jennifer Mcfarland", + "age": 59, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Carrillo Inc", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "military", + "category": "government", + "price": 244.75, + "stock_quantity": 903 + }, + "customer": { + "name": "Brandy Stanley", + "age": 48, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Davis Group", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "sure", + "category": "of", + "price": 895.32, + "stock_quantity": 837 + }, + "customer": { + "name": "Henry Holland", + "age": 47, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Cline-Dickerson", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "push", + "category": "quickly", + "price": 835.66, + "stock_quantity": 991 + }, + "customer": { + "name": "Norma Walton", + "age": 61, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Moses-Singh", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "pressure", + "category": "different", + "price": 285.01, + "stock_quantity": 531 + }, + "customer": { + "name": "Jake Novak", + "age": 22, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Wright and Sons", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "impact", + "category": "five", + "price": 728.42, + "stock_quantity": 155 + }, + "customer": { + "name": "Brian Moore", + "age": 41, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Steele-Wiley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Steele-Wiley", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "out", + "category": "kitchen", + "price": 239.2, + "stock_quantity": 723 + }, + "customer": { + "name": "Erin Fernandez", + "age": 54, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Davis Inc", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "early", + "category": "theory", + "price": 851.54, + "stock_quantity": 878 + }, + "customer": { + "name": "Alexis Richards", + "age": 33, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Graves-Hayes", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "whole", + "category": "nothing", + "price": 556.13, + "stock_quantity": 96 + }, + "customer": { + "name": "Joseph Wood", + "age": 71, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Jones-Lane", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "record", + "category": "vote", + "price": 398.07, + "stock_quantity": 36 + }, + "customer": { + "name": "Jason Clark", + "age": 77, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Rogers, Carlson and Rowe", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "four", + "category": "two", + "price": 53.47, + "stock_quantity": 767 + }, + "customer": { + "name": "Michelle Rodriguez", + "age": 29, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Williams LLC", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "could", + "category": "view", + "price": 651.98, + "stock_quantity": 442 + }, + "customer": { + "name": "Timothy King", + "age": 38, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Sanchez, Ball and Patterson", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "away", + "category": "why", + "price": 808.0, + "stock_quantity": 685 + }, + "customer": { + "name": "Ryan Simmons", + "age": 65, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Rodriguez, Robinson and White", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "night", + "category": "century", + "price": 545.5, + "stock_quantity": 826 + }, + "customer": { + "name": "Jessica Morales", + "age": 70, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Ray, Bailey and Hawkins", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "business", + "category": "during", + "price": 742.51, + "stock_quantity": 419 + }, + "customer": { + "name": "Donna White", + "age": 29, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Romero-Zimmerman", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "nor", + "category": "all", + "price": 643.7, + "stock_quantity": 484 + }, + "customer": { + "name": "Phyllis Rivers", + "age": 65, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Cox, Parker and Fuentes", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "shake", + "category": "role", + "price": 730.71, + "stock_quantity": 587 + }, + "customer": { + "name": "Scott Mcfarland", + "age": 29, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Jones, Thompson and Cook", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "specific", + "category": "consumer", + "price": 650.15, + "stock_quantity": 601 + }, + "customer": { + "name": "Jessica Oneal", + "age": 46, + "country": "Luxembourg" + } + }, + { + "natural_query": "What are the top 8 products by orders for Daniel LLC this month?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Daniel LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8", + "company": { + "name": "Daniel LLC", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "rest", + "category": "our", + "price": 908.65, + "stock_quantity": 541 + }, + "customer": { + "name": "Daniel Payne", + "age": 20, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Miller, Bishop and Castaneda", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "much", + "category": "western", + "price": 409.1, + "stock_quantity": 243 + }, + "customer": { + "name": "Heather Watts", + "age": 70, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Curtis, Curtis and Mccoy", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "become", + "category": "style", + "price": 739.45, + "stock_quantity": 393 + }, + "customer": { + "name": "Lori Knapp", + "age": 33, + "country": "Cambodia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mckinney Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mckinney Inc", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "try", + "category": "indicate", + "price": 801.61, + "stock_quantity": 818 + }, + "customer": { + "name": "Rachel Meyer", + "age": 45, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Payne PLC", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "notice", + "category": "people", + "price": 937.81, + "stock_quantity": 423 + }, + "customer": { + "name": "Luis Garcia", + "age": 61, + "country": "Togo" + } + }, + { + "natural_query": "What is the total profit for each supplier in Contreras-Howe?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Contreras-Howe' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Contreras-Howe", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "prepare", + "category": "garden", + "price": 564.88, + "stock_quantity": 853 + }, + "customer": { + "name": "Adam Smith", + "age": 36, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Greene-May", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "return", + "category": "difficult", + "price": 465.32, + "stock_quantity": 104 + }, + "customer": { + "name": "Leah Valenzuela", + "age": 18, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Walters-Holmes", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "food", + "category": "husband", + "price": 782.38, + "stock_quantity": 130 + }, + "customer": { + "name": "Jonathan Harrington", + "age": 43, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Morales, Miller and Boyd", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "general", + "category": "season", + "price": 943.59, + "stock_quantity": 778 + }, + "customer": { + "name": "Shawn Nash", + "age": 62, + "country": "United Kingdom" + } + }, + { + "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'", + "company": { + "name": "Lopez, Rivera and Campbell", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "clear", + "category": "group", + "price": 940.2, + "stock_quantity": 974 + }, + "customer": { + "name": "Michelle Rowe", + "age": 73, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Gray, Martin and Garner", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "moment", + "category": "wear", + "price": 95.25, + "stock_quantity": 476 + }, + "customer": { + "name": "Jason Martin", + "age": 73, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Gross and Sons", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "center", + "category": "change", + "price": 668.39, + "stock_quantity": 738 + }, + "customer": { + "name": "Jenna Russell", + "age": 68, + "country": "New Zealand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gordon, Nelson and Ruiz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gordon, Nelson and Ruiz", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "nearly", + "category": "national", + "price": 840.17, + "stock_quantity": 676 + }, + "customer": { + "name": "Rebecca Harrison", + "age": 60, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Jones, Harris and Perez", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "according", + "category": "campaign", + "price": 136.73, + "stock_quantity": 815 + }, + "customer": { + "name": "David Ramos", + "age": 23, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Malone, Wheeler and Garcia", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "mention", + "category": "player", + "price": 680.16, + "stock_quantity": 510 + }, + "customer": { + "name": "Grant Roberts", + "age": 43, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Sharp, Burke and Roberts", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "mother", + "category": "in", + "price": 889.56, + "stock_quantity": 95 + }, + "customer": { + "name": "Isaac Harris", + "age": 29, + "country": "Denmark" + } + }, + { + "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'", + "company": { + "name": "Sanchez-Norton", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "your", + "category": "make", + "price": 527.61, + "stock_quantity": 55 + }, + "customer": { + "name": "Denise Faulkner", + "age": 49, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Banks Ltd", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "interview", + "category": "whatever", + "price": 263.81, + "stock_quantity": 613 + }, + "customer": { + "name": "Brett Cruz", + "age": 54, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Brown Ltd", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "plant", + "category": "deal", + "price": 278.31, + "stock_quantity": 331 + }, + "customer": { + "name": "Patricia Smith", + "age": 43, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Rivera and Sons", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "finally", + "category": "see", + "price": 623.37, + "stock_quantity": 131 + }, + "customer": { + "name": "Colin Clay", + "age": 58, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Young, King and Fisher", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "seek", + "category": "born", + "price": 817.49, + "stock_quantity": 512 + }, + "customer": { + "name": "Brandon Stevens", + "age": 32, + "country": "Haiti" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Yang and Sons for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Yang and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Yang and Sons", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "turn", + "category": "short", + "price": 359.07, + "stock_quantity": 690 + }, + "customer": { + "name": "Miranda Miller", + "age": 44, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Watts LLC", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "describe", + "category": "someone", + "price": 243.56, + "stock_quantity": 729 + }, + "customer": { + "name": "Derek Underwood", + "age": 33, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Mitchell Ltd", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "hotel", + "category": "policy", + "price": 439.44, + "stock_quantity": 158 + }, + "customer": { + "name": "Hunter Hill", + "age": 75, + "country": "Reunion" + } + }, + { + "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'", + "company": { + "name": "Gibson, Wilson and Henderson", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "receive", + "category": "case", + "price": 875.99, + "stock_quantity": 132 + }, + "customer": { + "name": "James Hartman", + "age": 24, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Jones, Ellison and Rodgers", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "Congress", + "category": "citizen", + "price": 466.84, + "stock_quantity": 303 + }, + "customer": { + "name": "Renee Rodriguez", + "age": 79, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Arnold, Velez and Griffin", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "discussion", + "category": "concern", + "price": 753.26, + "stock_quantity": 119 + }, + "customer": { + "name": "Mark Wilson", + "age": 54, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Carrillo LLC", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "city", + "category": "unit", + "price": 437.57, + "stock_quantity": 506 + }, + "customer": { + "name": "Dennis Peterson", + "age": 39, + "country": "Indonesia" + } + }, + { + "natural_query": "What are the top 9 products by orders for Lee, Smith and Stephenson last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Lee, Smith and Stephenson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9", + "company": { + "name": "Lee, Smith and Stephenson", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "carry", + "category": "necessary", + "price": 501.98, + "stock_quantity": 447 + }, + "customer": { + "name": "Sandra Bennett", + "age": 34, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Webb, Wagner and Martin", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "page", + "category": "protect", + "price": 345.42, + "stock_quantity": 21 + }, + "customer": { + "name": "Tom Harding", + "age": 58, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Barnes, Smith and Hoffman", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "religious", + "category": "third", + "price": 222.06, + "stock_quantity": 123 + }, + "customer": { + "name": "Michael Rocha", + "age": 73, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Anderson-Montgomery", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "decision", + "category": "same", + "price": 776.65, + "stock_quantity": 664 + }, + "customer": { + "name": "Ashley Singh", + "age": 69, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Fischer Group", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "blood", + "category": "reduce", + "price": 275.56, + "stock_quantity": 318 + }, + "customer": { + "name": "Lisa Lewis", + "age": 67, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Jacobs Group", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "order", + "category": "knowledge", + "price": 78.81, + "stock_quantity": 343 + }, + "customer": { + "name": "Steven Rivera", + "age": 23, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Ward, Williams and Thomas", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "debate", + "category": "natural", + "price": 785.52, + "stock_quantity": 178 + }, + "customer": { + "name": "Michael Cruz", + "age": 67, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Manning, Melton and Mitchell", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "now", + "category": "physical", + "price": 74.95, + "stock_quantity": 650 + }, + "customer": { + "name": "Thomas Payne", + "age": 67, + "country": "Tuvalu" + } + }, + { + "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'", + "company": { + "name": "Evans Inc", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "up", + "category": "poor", + "price": 311.92, + "stock_quantity": 510 + }, + "customer": { + "name": "Jared Villegas", + "age": 66, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Palmer LLC", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "or", + "category": "behind", + "price": 900.1, + "stock_quantity": 567 + }, + "customer": { + "name": "Diamond Miller", + "age": 34, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Parker and Sons", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "join", + "category": "computer", + "price": 875.0, + "stock_quantity": 441 + }, + "customer": { + "name": "Daniel Williams", + "age": 18, + "country": "British Virgin Islands" + } + }, + { + "natural_query": "Show me all products in the easy category with a price over $615.15.", + "sql_query": "SELECT * FROM products WHERE category = 'easy' AND price > 615.15", + "company": { + "name": "Scott, Porter and Miller", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "anything", + "category": "easy", + "price": 615.15, + "stock_quantity": 393 + }, + "customer": { + "name": "Autumn Blake", + "age": 42, + "country": "Jamaica" + } + }, + { + "natural_query": "What is the total profit for each country in Conner, Williams and Brown?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Conner, Williams and Brown' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Conner, Williams and Brown", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "record", + "category": "leader", + "price": 621.48, + "stock_quantity": 846 + }, + "customer": { + "name": "Alexander Meyer", + "age": 65, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Gomez, Warner and Cooper", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "protect", + "category": "task", + "price": 974.83, + "stock_quantity": 104 + }, + "customer": { + "name": "Jennifer Sherman", + "age": 69, + "country": "Bahrain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris Group", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "clear", + "category": "need", + "price": 236.39, + "stock_quantity": 929 + }, + "customer": { + "name": "Kathryn Martinez", + "age": 52, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Perry-Christensen", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "give", + "category": "their", + "price": 530.93, + "stock_quantity": 946 + }, + "customer": { + "name": "Judy Rocha", + "age": 33, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Burns Inc", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "ahead", + "category": "everybody", + "price": 555.07, + "stock_quantity": 396 + }, + "customer": { + "name": "Ms. Tammy Harris", + "age": 62, + "country": "Sweden" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams and Sons", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "trade", + "category": "down", + "price": 552.83, + "stock_quantity": 535 + }, + "customer": { + "name": "Karen Holt", + "age": 48, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Williams and Sons", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "wide", + "category": "Congress", + "price": 266.0, + "stock_quantity": 297 + }, + "customer": { + "name": "Patricia Cole", + "age": 44, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Lara, Compton and Kim for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lara, Compton and Kim'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lara, Compton and Kim", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "education", + "category": "fish", + "price": 867.63, + "stock_quantity": 308 + }, + "customer": { + "name": "Gary Hicks", + "age": 69, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Marks Group", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "fine", + "category": "would", + "price": 419.37, + "stock_quantity": 186 + }, + "customer": { + "name": "Timothy Ramos", + "age": 29, + "country": "Cote d'Ivoire" + } + }, + { + "natural_query": "How many orders were placed for Rivera LLC between 2024-05-13 and 2024-07-28?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rivera LLC' AND order_date BETWEEN '2024-05-13' AND '2024-07-28'", + "company": { + "name": "Rivera LLC", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "student", + "category": "rather", + "price": 510.0, + "stock_quantity": 57 + }, + "customer": { + "name": "Luis Perez", + "age": 22, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Smith, Erickson and Green", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "next", + "category": "finally", + "price": 905.35, + "stock_quantity": 353 + }, + "customer": { + "name": "Aaron Zavala", + "age": 21, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Patterson, Smith and Roth", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "write", + "category": "wish", + "price": 894.72, + "stock_quantity": 24 + }, + "customer": { + "name": "Tiffany Walker", + "age": 40, + "country": "Macao" + } + }, + { + "natural_query": "What is the total quantity for each category in Hill-Wells?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hill-Wells' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Hill-Wells", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "may", + "category": "sound", + "price": 95.65, + "stock_quantity": 167 + }, + "customer": { + "name": "Dr. James Baker", + "age": 77, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Campbell LLC", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "who", + "category": "skill", + "price": 176.9, + "stock_quantity": 543 + }, + "customer": { + "name": "Michael Smith", + "age": 48, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Miller, Smith and Brown", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "international", + "category": "address", + "price": 34.17, + "stock_quantity": 482 + }, + "customer": { + "name": "Patrick Smith", + "age": 27, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "behind", + "category": "power", + "price": 650.33, + "stock_quantity": 126 + }, + "customer": { + "name": "Tiffany Baker", + "age": 69, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Stevens Inc", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "away", + "category": "support", + "price": 434.1, + "stock_quantity": 822 + }, + "customer": { + "name": "Timothy Simpson", + "age": 62, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "movie", + "category": "time", + "price": 236.1, + "stock_quantity": 992 + }, + "customer": { + "name": "Michele Gill", + "age": 79, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Gardner-Griffin", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "watch", + "category": "skin", + "price": 729.88, + "stock_quantity": 48 + }, + "customer": { + "name": "Cynthia Martinez", + "age": 35, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Miller, Acevedo and Mcdonald", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "community", + "category": "point", + "price": 404.36, + "stock_quantity": 987 + }, + "customer": { + "name": "Connie Taylor", + "age": 57, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Blanchard, Richardson and Castaneda", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "able", + "category": "the", + "price": 19.6, + "stock_quantity": 931 + }, + "customer": { + "name": "Curtis Barnes", + "age": 65, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Alexander Inc", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "writer", + "category": "animal", + "price": 448.21, + "stock_quantity": 8 + }, + "customer": { + "name": "Victor Campbell", + "age": 35, + "country": "Western Sahara" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martinez-Thomas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martinez-Thomas", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "far", + "category": "capital", + "price": 509.8, + "stock_quantity": 756 + }, + "customer": { + "name": "Heather Gutierrez", + "age": 35, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Roberts-Hammond", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "cultural", + "category": "claim", + "price": 48.05, + "stock_quantity": 247 + }, + "customer": { + "name": "Emily Stewart", + "age": 37, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Frank-Cruz", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "foreign", + "category": "once", + "price": 295.63, + "stock_quantity": 425 + }, + "customer": { + "name": "Alex Hall", + "age": 60, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Dunn and Arnold", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "space", + "category": "manager", + "price": 211.52, + "stock_quantity": 996 + }, + "customer": { + "name": "Tiffany King", + "age": 63, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Nelson, Lee and Washington", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "often", + "category": "national", + "price": 962.93, + "stock_quantity": 424 + }, + "customer": { + "name": "Erin Powers", + "age": 44, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Serrano PLC", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "guy", + "category": "in", + "price": 183.04, + "stock_quantity": 388 + }, + "customer": { + "name": "Jane Byrd", + "age": 50, + "country": "Kiribati" + } + }, + { + "natural_query": "What is the total quantity for each country in Morales-Cohen?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Morales-Cohen' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Morales-Cohen", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "door", + "category": "maybe", + "price": 785.26, + "stock_quantity": 580 + }, + "customer": { + "name": "Samantha Hanson", + "age": 23, + "country": "Netherlands" + } + }, + { + "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'", + "company": { + "name": "Cunningham and Sons", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "plant", + "category": "gun", + "price": 713.88, + "stock_quantity": 373 + }, + "customer": { + "name": "Jason Reyes", + "age": 74, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Stewart-Brooks", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "camera", + "category": "throughout", + "price": 255.48, + "stock_quantity": 925 + }, + "customer": { + "name": "Robin Wood", + "age": 76, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Cortez Group", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "authority", + "category": "design", + "price": 278.97, + "stock_quantity": 708 + }, + "customer": { + "name": "Kelly Martin", + "age": 39, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Morgan Ltd", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "medical", + "category": "weight", + "price": 14.97, + "stock_quantity": 229 + }, + "customer": { + "name": "Katherine Wilson", + "age": 28, + "country": "Honduras" + } + }, + { + "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'", + "company": { + "name": "Mitchell, Morrow and Murphy", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "century", + "category": "less", + "price": 11.73, + "stock_quantity": 1 + }, + "customer": { + "name": "Stephen Anderson", + "age": 64, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Daniels LLC", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "water", + "category": "such", + "price": 328.25, + "stock_quantity": 311 + }, + "customer": { + "name": "Carrie Mcdaniel", + "age": 18, + "country": "United Kingdom" + } + }, + { + "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'", + "company": { + "name": "Powell-Spencer", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "among", + "category": "civil", + "price": 954.66, + "stock_quantity": 228 + }, + "customer": { + "name": "Kristen Brown", + "age": 38, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Allen, Montgomery and White", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "economic", + "category": "send", + "price": 39.04, + "stock_quantity": 331 + }, + "customer": { + "name": "Nicholas White", + "age": 64, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "White Ltd", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "claim", + "category": "century", + "price": 676.5, + "stock_quantity": 718 + }, + "customer": { + "name": "Sandra Cook", + "age": 56, + "country": "Belize" + } + }, + { + "natural_query": "List all products of Carpenter and Sons ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Carpenter and Sons' ORDER BY rating DESC", + "company": { + "name": "Carpenter and Sons", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "first", + "category": "travel", + "price": 10.28, + "stock_quantity": 38 + }, + "customer": { + "name": "Warren Gonzales", + "age": 20, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Foster and Sons", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "contain", + "category": "analysis", + "price": 700.11, + "stock_quantity": 816 + }, + "customer": { + "name": "Gregory Mosley", + "age": 78, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Thomas Group", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "front", + "category": "religious", + "price": 825.64, + "stock_quantity": 18 + }, + "customer": { + "name": "Wendy Oconnor", + "age": 42, + "country": "Madagascar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kennedy, Arias and Collins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kennedy, Arias and Collins", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "collection", + "category": "color", + "price": 539.02, + "stock_quantity": 395 + }, + "customer": { + "name": "Frank Graves", + "age": 78, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Mendoza-Hill", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "security", + "category": "likely", + "price": 292.96, + "stock_quantity": 885 + }, + "customer": { + "name": "Amanda Christensen", + "age": 72, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "Villanueva, Walker and Robinson", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "in", + "category": "risk", + "price": 523.29, + "stock_quantity": 243 + }, + "customer": { + "name": "Frank Romero", + "age": 68, + "country": "Afghanistan" + } + }, + { + "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'", + "company": { + "name": "Ross, Garza and Cox", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "inside", + "category": "opportunity", + "price": 635.51, + "stock_quantity": 468 + }, + "customer": { + "name": "Adam Ballard", + "age": 41, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Rios-Adams", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "little", + "category": "rather", + "price": 163.52, + "stock_quantity": 394 + }, + "customer": { + "name": "Karen Patel", + "age": 75, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Garner, Carey and Lee", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "trouble", + "category": "the", + "price": 51.84, + "stock_quantity": 448 + }, + "customer": { + "name": "Nancy Andersen", + "age": 53, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Curry, Kennedy and Rojas", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "trade", + "category": "pattern", + "price": 269.0, + "stock_quantity": 828 + }, + "customer": { + "name": "Cheyenne Cunningham", + "age": 56, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Gilbert LLC", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "model", + "category": "fund", + "price": 788.95, + "stock_quantity": 241 + }, + "customer": { + "name": "Michael Smith", + "age": 52, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Moore, Rollins and Graham", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "surface", + "category": "need", + "price": 136.8, + "stock_quantity": 44 + }, + "customer": { + "name": "Mark Grimes Jr.", + "age": 46, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Jones Inc", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "gun", + "category": "personal", + "price": 683.79, + "stock_quantity": 75 + }, + "customer": { + "name": "Matthew Warren", + "age": 27, + "country": "French Guiana" + } + }, + { + "natural_query": "List all customers and their total order value for Reed-Woodward.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Reed-Woodward' GROUP BY c.customer_id", + "company": { + "name": "Reed-Woodward", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "sit", + "category": "one", + "price": 956.05, + "stock_quantity": 643 + }, + "customer": { + "name": "Michele Sutton", + "age": 54, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Briggs-Lambert", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "great", + "category": "week", + "price": 170.28, + "stock_quantity": 460 + }, + "customer": { + "name": "Evelyn Anthony", + "age": 31, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Gonzales, Mitchell and Martinez", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "usually", + "category": "process", + "price": 901.97, + "stock_quantity": 427 + }, + "customer": { + "name": "Michael Parker", + "age": 31, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Fitzgerald Ltd", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "feeling", + "category": "suggest", + "price": 188.3, + "stock_quantity": 155 + }, + "customer": { + "name": "Laura Hawkins", + "age": 56, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Cameron, Larson and Benton", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "adult", + "category": "ago", + "price": 274.58, + "stock_quantity": 9 + }, + "customer": { + "name": "Shawna Jenkins", + "age": 69, + "country": "Ghana" + } + }, + { + "natural_query": "How many orders were placed for Davis, Brown and Edwards between 2024-06-16 and 2024-06-27?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Davis, Brown and Edwards' AND order_date BETWEEN '2024-06-16' AND '2024-06-27'", + "company": { + "name": "Davis, Brown and Edwards", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "share", + "category": "quality", + "price": 648.3, + "stock_quantity": 470 + }, + "customer": { + "name": "Jennifer Durham", + "age": 36, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Savage-George", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "loss", + "category": "management", + "price": 222.62, + "stock_quantity": 219 + }, + "customer": { + "name": "Jennifer Calderon", + "age": 41, + "country": "Ukraine" + } + }, + { + "natural_query": "Show me all products in the themselves category with a price over $920.49.", + "sql_query": "SELECT * FROM products WHERE category = 'themselves' AND price > 920.49", + "company": { + "name": "Torres Group", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "public", + "category": "themselves", + "price": 920.49, + "stock_quantity": 415 + }, + "customer": { + "name": "Jason Sanders", + "age": 65, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Gordon, Huff and Baldwin", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "type", + "category": "can", + "price": 46.2, + "stock_quantity": 810 + }, + "customer": { + "name": "Anna Dawson", + "age": 41, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Pearson, Williams and Charles", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "less", + "category": "medical", + "price": 752.5, + "stock_quantity": 807 + }, + "customer": { + "name": "Ashley Davis", + "age": 43, + "country": "Anguilla" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'May-Kramer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "May-Kramer", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "during", + "category": "hear", + "price": 499.82, + "stock_quantity": 800 + }, + "customer": { + "name": "Dr. Luke Howell", + "age": 63, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Oliver-Williams", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "sea", + "category": "common", + "price": 262.41, + "stock_quantity": 658 + }, + "customer": { + "name": "Christy Grant", + "age": 51, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Maynard Ltd", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "later", + "category": "plan", + "price": 175.42, + "stock_quantity": 37 + }, + "customer": { + "name": "Dana Clark", + "age": 59, + "country": "Korea" + } + }, + { + "natural_query": "What is the total sales for each country in Myers Group?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Myers Group' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Myers Group", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "foreign", + "category": "soon", + "price": 121.95, + "stock_quantity": 590 + }, + "customer": { + "name": "Kerri White", + "age": 54, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Manning-Chavez", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "then", + "category": "have", + "price": 36.97, + "stock_quantity": 980 + }, + "customer": { + "name": "Elizabeth Clarke", + "age": 53, + "country": "Bahamas" + } + }, + { + "natural_query": "What are the top 10 products by sales for Johnson, Bailey and Grant this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson, Bailey and Grant' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10", + "company": { + "name": "Johnson, Bailey and Grant", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "current", + "category": "enjoy", + "price": 797.03, + "stock_quantity": 156 + }, + "customer": { + "name": "John Mccoy", + "age": 29, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Neal-Rodriguez", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "article", + "category": "success", + "price": 515.24, + "stock_quantity": 140 + }, + "customer": { + "name": "Autumn Walters", + "age": 50, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Richardson LLC", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "image", + "category": "himself", + "price": 413.75, + "stock_quantity": 343 + }, + "customer": { + "name": "Austin Lewis", + "age": 24, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Vincent Group", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "tax", + "category": "play", + "price": 244.96, + "stock_quantity": 718 + }, + "customer": { + "name": "Michelle Henry DDS", + "age": 38, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Schultz and Bond", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "day", + "category": "down", + "price": 543.14, + "stock_quantity": 811 + }, + "customer": { + "name": "Andrew Buchanan", + "age": 65, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Gomez Ltd", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "federal", + "category": "argue", + "price": 509.32, + "stock_quantity": 40 + }, + "customer": { + "name": "Jonathan Perez", + "age": 62, + "country": "Hungary" + } + }, + { + "natural_query": "What is the total profit for each category in Thomas-Bailey?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Thomas-Bailey' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Thomas-Bailey", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "reach", + "category": "represent", + "price": 35.61, + "stock_quantity": 860 + }, + "customer": { + "name": "Sue Gregory", + "age": 75, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Harrison-Jarvis", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "such", + "category": "nice", + "price": 416.38, + "stock_quantity": 506 + }, + "customer": { + "name": "Benjamin Potter", + "age": 47, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Hodge Ltd", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "apply", + "category": "red", + "price": 288.67, + "stock_quantity": 677 + }, + "customer": { + "name": "Derek Daniels", + "age": 26, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Nelson, Wagner and Long", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "say", + "category": "improve", + "price": 20.31, + "stock_quantity": 988 + }, + "customer": { + "name": "Michelle Mendoza", + "age": 77, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Williamson, Bailey and Wong", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "knowledge", + "category": "night", + "price": 653.7, + "stock_quantity": 304 + }, + "customer": { + "name": "Kayla Donovan", + "age": 48, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Scott Ltd", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "politics", + "category": "condition", + "price": 437.35, + "stock_quantity": 855 + }, + "customer": { + "name": "Jennifer Burke", + "age": 23, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Faulkner-Garcia", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "year", + "category": "arrive", + "price": 130.37, + "stock_quantity": 44 + }, + "customer": { + "name": "Katherine Nash", + "age": 69, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Mccarty PLC", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "cultural", + "category": "Republican", + "price": 820.55, + "stock_quantity": 344 + }, + "customer": { + "name": "Michele Freeman", + "age": 18, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Patton-Norris", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "necessary", + "category": "whatever", + "price": 501.63, + "stock_quantity": 79 + }, + "customer": { + "name": "Michael Hunter", + "age": 47, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Dunn, Parker and Sanchez", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "section", + "category": "before", + "price": 254.47, + "stock_quantity": 702 + }, + "customer": { + "name": "Thomas Carr", + "age": 49, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Velazquez, Smith and Stephens", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "throughout", + "category": "get", + "price": 915.79, + "stock_quantity": 482 + }, + "customer": { + "name": "Laura Miranda", + "age": 67, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Campbell, Patel and Rollins", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "power", + "category": "factor", + "price": 807.27, + "stock_quantity": 398 + }, + "customer": { + "name": "Amanda Weeks", + "age": 56, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Ramos PLC", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "design", + "category": "still", + "price": 54.68, + "stock_quantity": 802 + }, + "customer": { + "name": "Lauren Anderson", + "age": 29, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Villa-Gordon", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "step", + "category": "production", + "price": 590.72, + "stock_quantity": 308 + }, + "customer": { + "name": "Keith Jones", + "age": 71, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Chavez-Hernandez", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "discussion", + "category": "another", + "price": 979.74, + "stock_quantity": 203 + }, + "customer": { + "name": "Jason Ayers", + "age": 25, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Martin Ltd", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "side", + "category": "article", + "price": 779.01, + "stock_quantity": 158 + }, + "customer": { + "name": "Melissa Brown", + "age": 29, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Boyer-Duke", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "market", + "category": "company", + "price": 765.4, + "stock_quantity": 424 + }, + "customer": { + "name": "Alexander Clark", + "age": 53, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Cantrell, Curtis and Kane", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "social", + "category": "be", + "price": 169.58, + "stock_quantity": 248 + }, + "customer": { + "name": "Edward Villarreal", + "age": 27, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Ortega and Sons", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "management", + "category": "same", + "price": 918.75, + "stock_quantity": 565 + }, + "customer": { + "name": "Jason Harvey", + "age": 27, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Phillips and Sons", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "plan", + "category": "ground", + "price": 311.67, + "stock_quantity": 576 + }, + "customer": { + "name": "James Morris", + "age": 68, + "country": "Senegal" + } + }, + { + "natural_query": "List all customers and their total order value for Johnson, Wagner and Williams.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Johnson, Wagner and Williams' GROUP BY c.customer_id", + "company": { + "name": "Johnson, Wagner and Williams", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "away", + "category": "word", + "price": 314.42, + "stock_quantity": 308 + }, + "customer": { + "name": "Jon Delgado", + "age": 75, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Roberts, Reese and Cox", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "inside", + "category": "give", + "price": 821.87, + "stock_quantity": 23 + }, + "customer": { + "name": "Javier Mason", + "age": 45, + "country": "Serbia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Grant, Wright and Clarke'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Grant, Wright and Clarke", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "write", + "category": "record", + "price": 817.92, + "stock_quantity": 387 + }, + "customer": { + "name": "Sandra English", + "age": 31, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Lee-Erickson", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "quite", + "category": "course", + "price": 452.94, + "stock_quantity": 653 + }, + "customer": { + "name": "Derrick Simmons", + "age": 40, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Phelps-Flores", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "finally", + "category": "leg", + "price": 537.13, + "stock_quantity": 255 + }, + "customer": { + "name": "Jason Rubio", + "age": 25, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Dorsey LLC", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "him", + "category": "natural", + "price": 875.62, + "stock_quantity": 61 + }, + "customer": { + "name": "Thomas Davis", + "age": 80, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Weeks, Graham and Ayala", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "participant", + "category": "the", + "price": 427.86, + "stock_quantity": 14 + }, + "customer": { + "name": "Antonio Gross", + "age": 78, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Phillips-Bowman", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "out", + "category": "area", + "price": 561.23, + "stock_quantity": 912 + }, + "customer": { + "name": "Aaron Kennedy", + "age": 55, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Davis-Donaldson", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "research", + "category": "represent", + "price": 717.66, + "stock_quantity": 907 + }, + "customer": { + "name": "Valerie Spencer", + "age": 30, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Hill-Johnson", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "image", + "category": "ask", + "price": 988.04, + "stock_quantity": 97 + }, + "customer": { + "name": "Paul Dominguez", + "age": 66, + "country": "Serbia" + } + }, + { + "natural_query": "What are the top 8 products by customers for Stephenson, Smith and Myers all time?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Stephenson, Smith and Myers' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8", + "company": { + "name": "Stephenson, Smith and Myers", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "our", + "category": "back", + "price": 853.03, + "stock_quantity": 456 + }, + "customer": { + "name": "Amber Smith", + "age": 78, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Thomas, Young and Kennedy", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "game", + "category": "high", + "price": 115.72, + "stock_quantity": 510 + }, + "customer": { + "name": "Abigail Zuniga", + "age": 29, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Dunn LLC", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "theory", + "category": "fine", + "price": 220.03, + "stock_quantity": 547 + }, + "customer": { + "name": "Steven Perez", + "age": 67, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Petersen-Beasley", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "cell", + "category": "citizen", + "price": 607.03, + "stock_quantity": 517 + }, + "customer": { + "name": "Justin Marsh", + "age": 62, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Malone, Richardson and West", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "travel", + "category": "the", + "price": 851.43, + "stock_quantity": 218 + }, + "customer": { + "name": "David Boyle", + "age": 69, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Robinson, Harrison and Lewis", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "those", + "category": "kid", + "price": 989.31, + "stock_quantity": 379 + }, + "customer": { + "name": "Matthew Mathis", + "age": 66, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Martinez and Sons", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "medical", + "category": "soldier", + "price": 478.88, + "stock_quantity": 925 + }, + "customer": { + "name": "Daniel Osborn", + "age": 45, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Bailey, Collins and Carter", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "race", + "category": "health", + "price": 503.76, + "stock_quantity": 349 + }, + "customer": { + "name": "Laura Lewis", + "age": 34, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Scott Ltd", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "single", + "category": "accept", + "price": 599.17, + "stock_quantity": 259 + }, + "customer": { + "name": "Jasmine Howard", + "age": 74, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Casey, Kelly and Wilson", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "environment", + "category": "management", + "price": 371.95, + "stock_quantity": 63 + }, + "customer": { + "name": "Kevin Flowers", + "age": 58, + "country": "Senegal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia, Hernandez and Rosario'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia, Hernandez and Rosario", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "whom", + "category": "occur", + "price": 808.11, + "stock_quantity": 973 + }, + "customer": { + "name": "Jason Baker", + "age": 80, + "country": "Costa Rica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baker-Durham'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baker-Durham", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "day", + "category": "push", + "price": 525.21, + "stock_quantity": 351 + }, + "customer": { + "name": "John Campbell", + "age": 28, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Mcgee, Arnold and Carter", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "glass", + "category": "television", + "price": 204.99, + "stock_quantity": 934 + }, + "customer": { + "name": "Troy Young", + "age": 26, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Miller Group", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "improve", + "category": "south", + "price": 494.11, + "stock_quantity": 115 + }, + "customer": { + "name": "Brandy Simpson", + "age": 31, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Jones-Garza", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "sound", + "category": "cold", + "price": 514.33, + "stock_quantity": 696 + }, + "customer": { + "name": "Cindy Campos", + "age": 25, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Jordan, Curry and Bush", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "pattern", + "category": "well", + "price": 708.5, + "stock_quantity": 517 + }, + "customer": { + "name": "Brian Mack", + "age": 59, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Burke-Haley", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "month", + "category": "world", + "price": 177.79, + "stock_quantity": 26 + }, + "customer": { + "name": "Karen Patel", + "age": 79, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Best and Sons", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "itself", + "category": "lawyer", + "price": 688.52, + "stock_quantity": 19 + }, + "customer": { + "name": "Ricky Hernandez", + "age": 55, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Maddox-Jones", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "forget", + "category": "growth", + "price": 753.5, + "stock_quantity": 996 + }, + "customer": { + "name": "Sandra Charles", + "age": 47, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Warner, Salinas and Lambert", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "tough", + "category": "something", + "price": 646.92, + "stock_quantity": 843 + }, + "customer": { + "name": "Robert Cook", + "age": 67, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Hurst-Leon", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "democratic", + "category": "professor", + "price": 610.7, + "stock_quantity": 586 + }, + "customer": { + "name": "Annette Cruz", + "age": 68, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Miller LLC", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "huge", + "category": "with", + "price": 66.09, + "stock_quantity": 865 + }, + "customer": { + "name": "Bruce Mcguire", + "age": 67, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Ramirez, Spears and Griffin", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "environment", + "category": "air", + "price": 733.6, + "stock_quantity": 313 + }, + "customer": { + "name": "Stephen Mitchell", + "age": 50, + "country": "Cote d'Ivoire" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson-Williams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson-Williams", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "space", + "category": "family", + "price": 868.52, + "stock_quantity": 882 + }, + "customer": { + "name": "Kelly Hutchinson", + "age": 73, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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'", + "company": { + "name": "Snyder, Jones and Robinson", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "pattern", + "category": "off", + "price": 562.46, + "stock_quantity": 53 + }, + "customer": { + "name": "Evelyn Jacobson", + "age": 30, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Mason-Graham", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "brother", + "category": "sister", + "price": 317.97, + "stock_quantity": 51 + }, + "customer": { + "name": "Erika Harris", + "age": 45, + "country": "Malaysia" + } + }, + { + "natural_query": "List all customers and their total order value for Gibson, Perry and Smith.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Gibson, Perry and Smith' GROUP BY c.customer_id", + "company": { + "name": "Gibson, Perry and Smith", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "child", + "category": "hear", + "price": 238.66, + "stock_quantity": 391 + }, + "customer": { + "name": "Timothy Hodges", + "age": 25, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Hale, Reed and Rivera", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "home", + "category": "military", + "price": 163.01, + "stock_quantity": 317 + }, + "customer": { + "name": "Dustin Hanna", + "age": 53, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Rivera, Suarez and Tran", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "above", + "category": "reflect", + "price": 442.88, + "stock_quantity": 985 + }, + "customer": { + "name": "Charles Brandt", + "age": 38, + "country": "Kenya" + } + }, + { + "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'", + "company": { + "name": "Johnson-Simmons", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "social", + "category": "writer", + "price": 960.39, + "stock_quantity": 472 + }, + "customer": { + "name": "Jessica Krause", + "age": 22, + "country": "Estonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mccarthy, Hall and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mccarthy, Hall and Brown", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "every", + "category": "test", + "price": 327.11, + "stock_quantity": 320 + }, + "customer": { + "name": "Monica Hall", + "age": 59, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "George-Faulkner", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "start", + "category": "ahead", + "price": 595.13, + "stock_quantity": 156 + }, + "customer": { + "name": "Hannah Murillo", + "age": 51, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Johnson, Case and Howell", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "run", + "category": "capital", + "price": 503.09, + "stock_quantity": 381 + }, + "customer": { + "name": "Craig King", + "age": 41, + "country": "Wallis and Futuna" + } + }, + { + "natural_query": "Show me all products in the behavior category with a price over $308.1.", + "sql_query": "SELECT * FROM products WHERE category = 'behavior' AND price > 308.1", + "company": { + "name": "Anderson-Best", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "take", + "category": "behavior", + "price": 308.1, + "stock_quantity": 495 + }, + "customer": { + "name": "Ashley Khan", + "age": 68, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Wise, Gonzales and West", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "watch", + "category": "newspaper", + "price": 505.29, + "stock_quantity": 837 + }, + "customer": { + "name": "Troy Garrett", + "age": 72, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Cole Ltd", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "analysis", + "category": "letter", + "price": 94.43, + "stock_quantity": 805 + }, + "customer": { + "name": "Curtis Guzman", + "age": 58, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Valdez-Macias", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "center", + "category": "in", + "price": 472.02, + "stock_quantity": 837 + }, + "customer": { + "name": "Jamie Sutton", + "age": 51, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Garcia PLC", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "establish", + "category": "about", + "price": 388.56, + "stock_quantity": 480 + }, + "customer": { + "name": "Nicholas Dawson", + "age": 69, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Ryan, Edwards and Lynch", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "prove", + "category": "she", + "price": 631.51, + "stock_quantity": 934 + }, + "customer": { + "name": "Joshua Harris", + "age": 25, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Mcintyre Ltd", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "side", + "category": "throw", + "price": 766.26, + "stock_quantity": 549 + }, + "customer": { + "name": "Diana Byrd", + "age": 79, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Garrett, Howard and Garcia", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "local", + "category": "cut", + "price": 430.43, + "stock_quantity": 471 + }, + "customer": { + "name": "Steven Rodriguez", + "age": 61, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Nguyen and Sons", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "cup", + "category": "trip", + "price": 158.56, + "stock_quantity": 756 + }, + "customer": { + "name": "Rebekah Warren", + "age": 40, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Phillips Group", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "pressure", + "category": "look", + "price": 957.4, + "stock_quantity": 731 + }, + "customer": { + "name": "Ryan Rivera", + "age": 78, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Boyer-Payne", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "girl", + "category": "center", + "price": 256.67, + "stock_quantity": 218 + }, + "customer": { + "name": "Barbara Shelton", + "age": 72, + "country": "France" + } + }, + { + "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'", + "company": { + "name": "Hickman-Pacheco", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "industry", + "category": "life", + "price": 706.95, + "stock_quantity": 52 + }, + "customer": { + "name": "Lauren Jones", + "age": 65, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Ferguson-Chavez", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "interesting", + "category": "key", + "price": 639.38, + "stock_quantity": 607 + }, + "customer": { + "name": "Stephanie Webb", + "age": 37, + "country": "South Africa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brandt-Le'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brandt-Le", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "energy", + "category": "teacher", + "price": 920.22, + "stock_quantity": 243 + }, + "customer": { + "name": "Jennifer Alvarez", + "age": 67, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Decker Ltd", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "majority", + "category": "tend", + "price": 771.03, + "stock_quantity": 521 + }, + "customer": { + "name": "Billy Parker", + "age": 39, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Wilson-Cooke", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "order", + "category": "eat", + "price": 929.76, + "stock_quantity": 718 + }, + "customer": { + "name": "Hayden Taylor", + "age": 73, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Spears Inc", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "share", + "category": "town", + "price": 598.64, + "stock_quantity": 225 + }, + "customer": { + "name": "Jamie Hernandez", + "age": 24, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Rivera-Phillips", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "cut", + "category": "fire", + "price": 826.0, + "stock_quantity": 368 + }, + "customer": { + "name": "Lisa Rivera", + "age": 50, + "country": "Dominican Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lewis, Patel and Dennis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lewis, Patel and Dennis", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "down", + "category": "approach", + "price": 488.23, + "stock_quantity": 986 + }, + "customer": { + "name": "Raymond Scott", + "age": 52, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Lawrence Group", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "section", + "category": "trial", + "price": 568.06, + "stock_quantity": 591 + }, + "customer": { + "name": "Elizabeth Trevino", + "age": 67, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Campbell, Edwards and Dunn", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "parent", + "category": "owner", + "price": 353.33, + "stock_quantity": 342 + }, + "customer": { + "name": "Abigail Wong", + "age": 24, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Ali-Barnes", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "thousand", + "category": "area", + "price": 746.9, + "stock_quantity": 540 + }, + "customer": { + "name": "Edwin Crawford", + "age": 41, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Taylor Ltd", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "present", + "category": "sort", + "price": 645.6, + "stock_quantity": 33 + }, + "customer": { + "name": "James Lee", + "age": 42, + "country": "Nigeria" + } + }, + { + "natural_query": "Show me all products in the culture category with a price over $244.67.", + "sql_query": "SELECT * FROM products WHERE category = 'culture' AND price > 244.67", + "company": { + "name": "Hall, Wright and Nelson", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "suggest", + "category": "culture", + "price": 244.67, + "stock_quantity": 500 + }, + "customer": { + "name": "Karen Wolfe", + "age": 73, + "country": "Malaysia" + } + }, + { + "natural_query": "What is the total profit for each country in White LLC?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'White LLC' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "White LLC", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "woman", + "category": "suggest", + "price": 541.71, + "stock_quantity": 550 + }, + "customer": { + "name": "Connie Rangel", + "age": 54, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Cook Inc", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "force", + "category": "including", + "price": 104.71, + "stock_quantity": 56 + }, + "customer": { + "name": "Linda Heath", + "age": 51, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Adams and Sons", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "spring", + "category": "although", + "price": 740.1, + "stock_quantity": 970 + }, + "customer": { + "name": "Caleb Phillips", + "age": 55, + "country": "Uzbekistan" + } + }, + { + "natural_query": "List all products of Chen-Osborne ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Chen-Osborne' ORDER BY rating DESC", + "company": { + "name": "Chen-Osborne", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "director", + "category": "common", + "price": 59.55, + "stock_quantity": 140 + }, + "customer": { + "name": "James Carter", + "age": 36, + "country": "United Kingdom" + } + }, + { + "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'", + "company": { + "name": "Valdez-Porter", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "ok", + "category": "issue", + "price": 206.79, + "stock_quantity": 202 + }, + "customer": { + "name": "Lisa Davis", + "age": 27, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Neal, Strong and Davis", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "voice", + "category": "their", + "price": 913.33, + "stock_quantity": 512 + }, + "customer": { + "name": "Brittany Shaw", + "age": 21, + "country": "Myanmar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mitchell and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mitchell and Sons", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "process", + "category": "remember", + "price": 432.51, + "stock_quantity": 901 + }, + "customer": { + "name": "Kenneth Bell", + "age": 22, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Jones Ltd", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "wind", + "category": "past", + "price": 801.54, + "stock_quantity": 750 + }, + "customer": { + "name": "Travis Smith", + "age": 46, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Osborne, Rios and Oconnor", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "you", + "category": "war", + "price": 467.91, + "stock_quantity": 919 + }, + "customer": { + "name": "Brittney Cohen", + "age": 35, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Carey, Meyer and Wang", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "serve", + "category": "song", + "price": 235.25, + "stock_quantity": 702 + }, + "customer": { + "name": "Ashley Buchanan", + "age": 70, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Doyle and Sons", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "day", + "category": "shake", + "price": 771.27, + "stock_quantity": 314 + }, + "customer": { + "name": "Lisa Nichols", + "age": 80, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "cause", + "category": "oil", + "price": 303.64, + "stock_quantity": 190 + }, + "customer": { + "name": "Katherine Vaughn", + "age": 52, + "country": "Botswana" + } + }, + { + "natural_query": "List all customers and their total order value for Carter-Morgan.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Carter-Morgan' GROUP BY c.customer_id", + "company": { + "name": "Carter-Morgan", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "decade", + "category": "small", + "price": 379.72, + "stock_quantity": 59 + }, + "customer": { + "name": "James Barrett MD", + "age": 77, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Parsons, Wallace and Murphy", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "include", + "category": "while", + "price": 19.73, + "stock_quantity": 532 + }, + "customer": { + "name": "Edward Kim", + "age": 25, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Khan, Martin and Taylor", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "possible", + "category": "others", + "price": 931.89, + "stock_quantity": 164 + }, + "customer": { + "name": "Monica Fleming", + "age": 62, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Hartman Group", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "west", + "category": "town", + "price": 499.3, + "stock_quantity": 832 + }, + "customer": { + "name": "Thomas Lee", + "age": 49, + "country": "Andorra" + } + }, + { + "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'", + "company": { + "name": "Barron, Hodge and Waller", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "take", + "category": "any", + "price": 523.55, + "stock_quantity": 718 + }, + "customer": { + "name": "Christopher Martin", + "age": 79, + "country": "Haiti" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mckee-Lewis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mckee-Lewis", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "station", + "category": "visit", + "price": 575.47, + "stock_quantity": 841 + }, + "customer": { + "name": "Amy Espinoza", + "age": 22, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Henry, Perez and Stein", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "source", + "category": "structure", + "price": 817.41, + "stock_quantity": 390 + }, + "customer": { + "name": "Kelly Johnson", + "age": 30, + "country": "Uganda" + } + }, + { + "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'", + "company": { + "name": "Gomez, Davis and Contreras", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "will", + "category": "this", + "price": 492.44, + "stock_quantity": 655 + }, + "customer": { + "name": "Mr. Michael Palmer", + "age": 36, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "White, Taylor and Wood", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "book", + "category": "fine", + "price": 812.22, + "stock_quantity": 692 + }, + "customer": { + "name": "Elizabeth Smith", + "age": 47, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Stephens, Harrington and Conner", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "mouth", + "category": "real", + "price": 192.19, + "stock_quantity": 708 + }, + "customer": { + "name": "Denise Brooks", + "age": 39, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Leonard Inc", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "bed", + "category": "trial", + "price": 232.1, + "stock_quantity": 356 + }, + "customer": { + "name": "Marcus Johnson", + "age": 74, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Gray, Beltran and Santana", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "memory", + "category": "beautiful", + "price": 424.1, + "stock_quantity": 315 + }, + "customer": { + "name": "Megan Jones", + "age": 61, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Sanchez and Sons", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "catch", + "category": "list", + "price": 530.63, + "stock_quantity": 600 + }, + "customer": { + "name": "Ethan Kramer", + "age": 22, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Garcia, Suarez and Faulkner", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "card", + "category": "never", + "price": 64.46, + "stock_quantity": 492 + }, + "customer": { + "name": "Nicholas Holloway", + "age": 62, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Cooper Ltd", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "different", + "category": "him", + "price": 978.02, + "stock_quantity": 910 + }, + "customer": { + "name": "James Campbell", + "age": 44, + "country": "Denmark" + } + }, + { + "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'", + "company": { + "name": "Gonzalez-Jones", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "why", + "category": "music", + "price": 537.95, + "stock_quantity": 844 + }, + "customer": { + "name": "Madison Harding", + "age": 36, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Montes, Davis and Wright", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "feel", + "category": "ahead", + "price": 787.22, + "stock_quantity": 453 + }, + "customer": { + "name": "Tracy Baxter", + "age": 33, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Meyer, Hall and Morales", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "total", + "category": "program", + "price": 397.33, + "stock_quantity": 13 + }, + "customer": { + "name": "Carolyn Nelson", + "age": 63, + "country": "Kyrgyz Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Holmes-Ellis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Holmes-Ellis", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "travel", + "category": "offer", + "price": 79.69, + "stock_quantity": 703 + }, + "customer": { + "name": "Tanya Wells", + "age": 59, + "country": "Paraguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green-Payne'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green-Payne", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "right", + "category": "quite", + "price": 774.45, + "stock_quantity": 974 + }, + "customer": { + "name": "Jennifer Edwards", + "age": 36, + "country": "Norfolk Island" + } + }, + { + "natural_query": "What is the total rating of all products for Miles Ltd?", + "sql_query": "SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Miles Ltd'", + "company": { + "name": "Miles Ltd", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "particularly", + "category": "stock", + "price": 654.95, + "stock_quantity": 382 + }, + "customer": { + "name": "Leslie Jones", + "age": 18, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Thomas, Williams and Jackson", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "technology", + "category": "serious", + "price": 65.31, + "stock_quantity": 608 + }, + "customer": { + "name": "Alicia Allen", + "age": 37, + "country": "Barbados" + } + }, + { + "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'", + "company": { + "name": "Hernandez-Gonzalez", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "offer", + "category": "assume", + "price": 132.37, + "stock_quantity": 207 + }, + "customer": { + "name": "Gerald Henderson", + "age": 52, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Clark and Sons", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "skill", + "category": "score", + "price": 442.37, + "stock_quantity": 428 + }, + "customer": { + "name": "Eric Park", + "age": 40, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Carter, Rios and Hill", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "capital", + "category": "then", + "price": 186.8, + "stock_quantity": 463 + }, + "customer": { + "name": "William Phelps", + "age": 43, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Martinez Group", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "threat", + "category": "behind", + "price": 471.0, + "stock_quantity": 534 + }, + "customer": { + "name": "Edward Sanchez", + "age": 50, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "knowledge", + "category": "first", + "price": 608.48, + "stock_quantity": 496 + }, + "customer": { + "name": "Adrian Alvarado", + "age": 73, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Roberts, Smith and Wolfe", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "morning", + "category": "network", + "price": 939.85, + "stock_quantity": 279 + }, + "customer": { + "name": "Hannah Carson", + "age": 31, + "country": "Spain" + } + }, + { + "natural_query": "List all customers and their total order value for Ryan PLC.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Ryan PLC' GROUP BY c.customer_id", + "company": { + "name": "Ryan PLC", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "job", + "category": "successful", + "price": 330.55, + "stock_quantity": 643 + }, + "customer": { + "name": "Phillip Morris", + "age": 69, + "country": "Anguilla" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Vincent-Gray'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Vincent-Gray", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "will", + "category": "rather", + "price": 483.7, + "stock_quantity": 577 + }, + "customer": { + "name": "Tammy Mccormick", + "age": 24, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Garcia Inc", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "instead", + "category": "become", + "price": 746.46, + "stock_quantity": 189 + }, + "customer": { + "name": "Alejandro Schwartz", + "age": 68, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Davis, Gregory and Wright", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "game", + "category": "language", + "price": 413.33, + "stock_quantity": 353 + }, + "customer": { + "name": "Mary Elliott", + "age": 28, + "country": "Azerbaijan" + } + }, + { + "natural_query": "What is the total quantity for each category in Gamble-Thompson?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Gamble-Thompson' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Gamble-Thompson", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "significant", + "category": "beautiful", + "price": 617.8, + "stock_quantity": 891 + }, + "customer": { + "name": "Omar Rowland", + "age": 52, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Walsh, Hurst and Dean", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "everybody", + "category": "fly", + "price": 211.75, + "stock_quantity": 41 + }, + "customer": { + "name": "Emily Sanchez", + "age": 41, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Mendoza-Allen", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "prepare", + "category": "rich", + "price": 254.63, + "stock_quantity": 128 + }, + "customer": { + "name": "Sean Thomas", + "age": 73, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Richmond-George", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "push", + "category": "right", + "price": 330.54, + "stock_quantity": 314 + }, + "customer": { + "name": "Laura Willis", + "age": 56, + "country": "Nepal" + } + }, + { + "natural_query": "How many orders were placed for Logan, Johnson and Welch between 2023-12-21 and 2024-05-01?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Logan, Johnson and Welch' AND order_date BETWEEN '2023-12-21' AND '2024-05-01'", + "company": { + "name": "Logan, Johnson and Welch", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "administration", + "category": "all", + "price": 629.34, + "stock_quantity": 732 + }, + "customer": { + "name": "Kaitlyn Little", + "age": 67, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Snyder-Delgado", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "training", + "category": "prove", + "price": 219.75, + "stock_quantity": 899 + }, + "customer": { + "name": "Nathan Buchanan", + "age": 47, + "country": "Sierra Leone" + } + }, + { + "natural_query": "How many orders were placed for Rogers-Bowers between 2024-01-13 and 2024-02-22?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rogers-Bowers' AND order_date BETWEEN '2024-01-13' AND '2024-02-22'", + "company": { + "name": "Rogers-Bowers", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "rock", + "category": "hold", + "price": 856.25, + "stock_quantity": 231 + }, + "customer": { + "name": "Donald Li", + "age": 26, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Wallace, Butler and Perkins", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "control", + "category": "force", + "price": 525.8, + "stock_quantity": 831 + }, + "customer": { + "name": "Angela Mason", + "age": 34, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Graves Ltd", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "bill", + "category": "your", + "price": 343.42, + "stock_quantity": 778 + }, + "customer": { + "name": "Michael Dunlap", + "age": 43, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Osborne, Williamson and Sanders", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "fall", + "category": "way", + "price": 506.01, + "stock_quantity": 689 + }, + "customer": { + "name": "Jane Nguyen", + "age": 71, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Edwards, Burch and Gordon", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "themselves", + "category": "enough", + "price": 943.9, + "stock_quantity": 652 + }, + "customer": { + "name": "Alyssa Warren", + "age": 51, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Black-Trujillo", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "wrong", + "category": "lawyer", + "price": 811.93, + "stock_quantity": 859 + }, + "customer": { + "name": "Samantha Vazquez", + "age": 66, + "country": "Turks and Caicos Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bauer, Chapman and Pierce'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bauer, Chapman and Pierce", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "least", + "category": "chance", + "price": 205.51, + "stock_quantity": 726 + }, + "customer": { + "name": "Bryan Huynh", + "age": 33, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Bryant, Reynolds and Martin", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "five", + "category": "maybe", + "price": 248.24, + "stock_quantity": 157 + }, + "customer": { + "name": "Samuel Olson", + "age": 75, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Myers-West", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "general", + "category": "than", + "price": 945.24, + "stock_quantity": 669 + }, + "customer": { + "name": "Christina Adams", + "age": 33, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Vincent, Herring and Lewis", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "close", + "category": "born", + "price": 780.67, + "stock_quantity": 353 + }, + "customer": { + "name": "Steven Buchanan", + "age": 19, + "country": "Maldives" + } + }, + { + "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'", + "company": { + "name": "Beard PLC", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "have", + "category": "much", + "price": 224.66, + "stock_quantity": 485 + }, + "customer": { + "name": "Annette Fritz", + "age": 24, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Cervantes, Ferguson and Palmer", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "blood", + "category": "generation", + "price": 438.91, + "stock_quantity": 46 + }, + "customer": { + "name": "Mary Wall", + "age": 21, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Brown-Patterson", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "save", + "category": "sit", + "price": 664.42, + "stock_quantity": 471 + }, + "customer": { + "name": "Tammy Smith", + "age": 51, + "country": "Bulgaria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hart and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hart and Sons", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "important", + "category": "foreign", + "price": 270.73, + "stock_quantity": 495 + }, + "customer": { + "name": "Cindy Miller", + "age": 44, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Scott-Hall", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "stand", + "category": "much", + "price": 724.93, + "stock_quantity": 869 + }, + "customer": { + "name": "Melanie Mueller", + "age": 31, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Riley LLC", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "ever", + "category": "whether", + "price": 554.89, + "stock_quantity": 839 + }, + "customer": { + "name": "Jordan Morgan", + "age": 27, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Kidd, Khan and Arroyo", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "fall", + "category": "participant", + "price": 698.79, + "stock_quantity": 0 + }, + "customer": { + "name": "Michael Ryan", + "age": 44, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Maxwell Group", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "modern", + "category": "represent", + "price": 905.79, + "stock_quantity": 826 + }, + "customer": { + "name": "Juan Snyder", + "age": 37, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Wright, Proctor and Castillo", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "your", + "category": "fine", + "price": 416.96, + "stock_quantity": 748 + }, + "customer": { + "name": "Kim Rivera", + "age": 50, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Rosales-Barnett", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "simple", + "category": "whether", + "price": 674.53, + "stock_quantity": 140 + }, + "customer": { + "name": "Lynn Mckenzie", + "age": 29, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Hernandez LLC", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "left", + "category": "you", + "price": 451.31, + "stock_quantity": 51 + }, + "customer": { + "name": "Mark Peterson", + "age": 65, + "country": "Wallis and Futuna" + } + }, + { + "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'", + "company": { + "name": "Carter Inc", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "training", + "category": "wide", + "price": 899.14, + "stock_quantity": 708 + }, + "customer": { + "name": "Thomas Morris", + "age": 55, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Norris, Martin and Padilla'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Norris, Martin and Padilla", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "seven", + "category": "military", + "price": 260.83, + "stock_quantity": 337 + }, + "customer": { + "name": "Justin Wilson", + "age": 47, + "country": "Qatar" + } + }, + { + "natural_query": "List all customers and their total order value for Reynolds Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Reynolds Ltd' GROUP BY c.customer_id", + "company": { + "name": "Reynolds Ltd", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "up", + "category": "from", + "price": 79.3, + "stock_quantity": 305 + }, + "customer": { + "name": "Rachel Beltran", + "age": 39, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Young-Watson", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "long", + "category": "performance", + "price": 561.7, + "stock_quantity": 835 + }, + "customer": { + "name": "Brett Carpenter", + "age": 53, + "country": "Cape Verde" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis, Roberson and Colon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis, Roberson and Colon", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "mean", + "category": "middle", + "price": 370.55, + "stock_quantity": 903 + }, + "customer": { + "name": "Michael Hardy", + "age": 72, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Woods-Ortiz", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "draw", + "category": "thing", + "price": 317.24, + "stock_quantity": 971 + }, + "customer": { + "name": "Kevin Woods", + "age": 21, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Phelps Ltd", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "traditional", + "category": "often", + "price": 932.05, + "stock_quantity": 357 + }, + "customer": { + "name": "Mrs. Stacey Ward DDS", + "age": 70, + "country": "Micronesia" + } + }, + { + "natural_query": "List all customers and their total order value for Frazier and Sons.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Frazier and Sons' GROUP BY c.customer_id", + "company": { + "name": "Frazier and Sons", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "general", + "category": "sport", + "price": 818.2, + "stock_quantity": 540 + }, + "customer": { + "name": "Jaclyn Hogan", + "age": 64, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Greene-Taylor", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "never", + "category": "product", + "price": 634.11, + "stock_quantity": 328 + }, + "customer": { + "name": "Toni Wallace", + "age": 35, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "York-Robinson", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "radio", + "category": "live", + "price": 426.88, + "stock_quantity": 74 + }, + "customer": { + "name": "Scott Novak", + "age": 75, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Hudson-Cervantes", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "force", + "category": "land", + "price": 479.2, + "stock_quantity": 810 + }, + "customer": { + "name": "Michael Howard", + "age": 40, + "country": "France" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Medina-Benson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Medina-Benson", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "coach", + "category": "air", + "price": 316.71, + "stock_quantity": 32 + }, + "customer": { + "name": "Joel Thompson", + "age": 56, + "country": "Kuwait" + } + }, + { + "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'", + "company": { + "name": "Brown, Allen and Suarez", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "enter", + "category": "full", + "price": 561.72, + "stock_quantity": 23 + }, + "customer": { + "name": "Thomas Green", + "age": 35, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Savage LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Savage LLC", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "car", + "category": "item", + "price": 235.91, + "stock_quantity": 335 + }, + "customer": { + "name": "James Woods", + "age": 35, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Horn-Meyer", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "choice", + "category": "reflect", + "price": 654.43, + "stock_quantity": 964 + }, + "customer": { + "name": "Lisa Jones", + "age": 70, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Flowers, Arnold and Santos", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "establish", + "category": "public", + "price": 993.87, + "stock_quantity": 693 + }, + "customer": { + "name": "Wendy Mccall", + "age": 43, + "country": "Andorra" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martinez-Mckinney'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martinez-Mckinney", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "there", + "category": "marriage", + "price": 93.45, + "stock_quantity": 32 + }, + "customer": { + "name": "Jacob Jones", + "age": 58, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Ward-Rodriguez", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "identify", + "category": "stop", + "price": 846.85, + "stock_quantity": 393 + }, + "customer": { + "name": "Jerry Morris", + "age": 47, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Martinez PLC", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "keep", + "category": "indicate", + "price": 557.76, + "stock_quantity": 591 + }, + "customer": { + "name": "Cassie Wood", + "age": 73, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Smith-Morse", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "evidence", + "category": "personal", + "price": 316.99, + "stock_quantity": 217 + }, + "customer": { + "name": "Paige Rodriguez", + "age": 28, + "country": "Montenegro" + } + }, + { + "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'", + "company": { + "name": "Francis-Washington", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "where", + "category": "threat", + "price": 542.02, + "stock_quantity": 463 + }, + "customer": { + "name": "Jessica Horn", + "age": 55, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Knapp and Sons", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "commercial", + "category": "quickly", + "price": 994.27, + "stock_quantity": 231 + }, + "customer": { + "name": "Brent Rivera", + "age": 31, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Cole, Gray and Smith", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "while", + "category": "analysis", + "price": 891.63, + "stock_quantity": 918 + }, + "customer": { + "name": "Edward Cardenas", + "age": 64, + "country": "Australia" + } + }, + { + "natural_query": "How many orders were placed for Torres, Martin and Hayes between 2023-11-24 and 2024-07-06?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Torres, Martin and Hayes' AND order_date BETWEEN '2023-11-24' AND '2024-07-06'", + "company": { + "name": "Torres, Martin and Hayes", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "than", + "category": "technology", + "price": 126.68, + "stock_quantity": 111 + }, + "customer": { + "name": "Danielle Vazquez", + "age": 80, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Brown, Baker and Thornton", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "talk", + "category": "wind", + "price": 943.37, + "stock_quantity": 103 + }, + "customer": { + "name": "Tanya Petersen", + "age": 34, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Williams Inc", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "thank", + "category": "the", + "price": 774.94, + "stock_quantity": 452 + }, + "customer": { + "name": "Amber Smith", + "age": 18, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Stafford-Richardson", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "spring", + "category": "community", + "price": 554.92, + "stock_quantity": 62 + }, + "customer": { + "name": "Daniel Murray", + "age": 35, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Salazar-Davis", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "smile", + "category": "partner", + "price": 409.29, + "stock_quantity": 145 + }, + "customer": { + "name": "Jennifer Woods", + "age": 67, + "country": "Morocco" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dixon-Holloway'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dixon-Holloway", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "light", + "category": "often", + "price": 778.71, + "stock_quantity": 760 + }, + "customer": { + "name": "Ronnie Skinner", + "age": 53, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Ballard Group", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "add", + "category": "product", + "price": 315.65, + "stock_quantity": 219 + }, + "customer": { + "name": "Jon Anthony", + "age": 26, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "White PLC", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "major", + "category": "short", + "price": 822.53, + "stock_quantity": 449 + }, + "customer": { + "name": "Leah Todd", + "age": 71, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Winters and Sons", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "movie", + "category": "buy", + "price": 407.99, + "stock_quantity": 5 + }, + "customer": { + "name": "John Graves", + "age": 20, + "country": "Uzbekistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fields Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fields Inc", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "also", + "category": "film", + "price": 115.72, + "stock_quantity": 574 + }, + "customer": { + "name": "Michael Frost", + "age": 39, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Smith, Payne and Perry", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "level", + "category": "accept", + "price": 984.08, + "stock_quantity": 113 + }, + "customer": { + "name": "Kimberly Taylor", + "age": 55, + "country": "Central African Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller PLC", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "rate", + "category": "cause", + "price": 619.86, + "stock_quantity": 113 + }, + "customer": { + "name": "Brooke Curtis", + "age": 47, + "country": "Portugal" + } + }, + { + "natural_query": "What is the total sales for each country in Church Inc?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Church Inc' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Church Inc", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "language", + "category": "bar", + "price": 517.39, + "stock_quantity": 583 + }, + "customer": { + "name": "Mrs. Ashley Stone PhD", + "age": 57, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Orr, Whitehead and Carter", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "glass", + "category": "bar", + "price": 681.78, + "stock_quantity": 97 + }, + "customer": { + "name": "Joseph Davis", + "age": 50, + "country": "Holy See (Vatican City State)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mann, Watkins and Madden'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mann, Watkins and Madden", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "doctor", + "category": "drug", + "price": 255.76, + "stock_quantity": 535 + }, + "customer": { + "name": "Caitlyn Ferguson", + "age": 64, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Medina, Meyer and Tran", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "over", + "category": "too", + "price": 213.42, + "stock_quantity": 217 + }, + "customer": { + "name": "Michael Nielsen", + "age": 40, + "country": "Madagascar" + } + }, + { + "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'", + "company": { + "name": "Lowe-Skinner", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "happy", + "category": "star", + "price": 454.76, + "stock_quantity": 641 + }, + "customer": { + "name": "Suzanne Edwards", + "age": 33, + "country": "United States Minor Outlying Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Castillo, Moyer and Myers'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Castillo, Moyer and Myers", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "four", + "category": "eight", + "price": 640.32, + "stock_quantity": 379 + }, + "customer": { + "name": "Marcus Gilbert", + "age": 49, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Tucker, Garcia and Stone", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "standard", + "category": "spring", + "price": 627.49, + "stock_quantity": 743 + }, + "customer": { + "name": "Gina Jones", + "age": 36, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Warren, Martinez and Turner", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "feel", + "category": "what", + "price": 306.95, + "stock_quantity": 603 + }, + "customer": { + "name": "Ashley Velasquez", + "age": 72, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Hayden, Vasquez and Owens", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "to", + "category": "human", + "price": 355.2, + "stock_quantity": 349 + }, + "customer": { + "name": "Jennifer Bean", + "age": 49, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Mccall, Contreras and Pacheco", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "area", + "category": "catch", + "price": 247.45, + "stock_quantity": 829 + }, + "customer": { + "name": "Maria Rocha", + "age": 64, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Elliott, Williams and Price", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "film", + "category": "fire", + "price": 194.31, + "stock_quantity": 979 + }, + "customer": { + "name": "Sheila Buchanan", + "age": 19, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Wolfe, Gutierrez and Ball", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "debate", + "category": "food", + "price": 232.34, + "stock_quantity": 916 + }, + "customer": { + "name": "Andrew Buchanan", + "age": 22, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Charles Group", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "drop", + "category": "raise", + "price": 163.35, + "stock_quantity": 787 + }, + "customer": { + "name": "Natasha Ramos", + "age": 47, + "country": "Samoa" + } + }, + { + "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'", + "company": { + "name": "Hayes-Wolfe", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "unit", + "category": "happy", + "price": 973.4, + "stock_quantity": 509 + }, + "customer": { + "name": "Ricardo Scott", + "age": 56, + "country": "Liberia" + } + }, + { + "natural_query": "What is the total sales for each supplier in Mcdowell Ltd?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mcdowell Ltd' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Mcdowell Ltd", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "per", + "category": "offer", + "price": 304.68, + "stock_quantity": 507 + }, + "customer": { + "name": "Donna Jones", + "age": 51, + "country": "Mayotte" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Allen, Osborne and Hays'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Allen, Osborne and Hays", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "back", + "category": "series", + "price": 919.43, + "stock_quantity": 914 + }, + "customer": { + "name": "Ariel Pierce", + "age": 21, + "country": "French Southern Territories" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Watts, Jenkins and Moon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Watts, Jenkins and Moon", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "may", + "category": "safe", + "price": 830.84, + "stock_quantity": 822 + }, + "customer": { + "name": "Jay Vasquez", + "age": 76, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Gilbert Ltd", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "about", + "category": "tell", + "price": 599.54, + "stock_quantity": 279 + }, + "customer": { + "name": "Dillon Thomas", + "age": 28, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Wilson, Carlson and Marshall", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "remain", + "category": "peace", + "price": 828.84, + "stock_quantity": 624 + }, + "customer": { + "name": "Joseph Zhang", + "age": 52, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Martin, Mitchell and Rich", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "around", + "category": "painting", + "price": 529.65, + "stock_quantity": 460 + }, + "customer": { + "name": "Victoria Smith", + "age": 54, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Nelson, Harrington and Carpenter", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "will", + "category": "mind", + "price": 126.18, + "stock_quantity": 771 + }, + "customer": { + "name": "Randy Mercado", + "age": 54, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Marshall Group", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "huge", + "category": "poor", + "price": 928.91, + "stock_quantity": 986 + }, + "customer": { + "name": "Jerome Reid", + "age": 48, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Gray, Bradshaw and Johnson", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "same", + "category": "college", + "price": 554.11, + "stock_quantity": 212 + }, + "customer": { + "name": "Amanda Garner", + "age": 79, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Mclaughlin-Holloway", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "resource", + "category": "nearly", + "price": 102.18, + "stock_quantity": 937 + }, + "customer": { + "name": "Ryan Burgess", + "age": 59, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Lewis, Daniel and Wright", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "institution", + "category": "him", + "price": 853.66, + "stock_quantity": 252 + }, + "customer": { + "name": "Amy Chavez", + "age": 38, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Carlson Inc", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "follow", + "category": "consumer", + "price": 411.75, + "stock_quantity": 938 + }, + "customer": { + "name": "Victoria Garcia", + "age": 67, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Archer-Rivera", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "four", + "category": "make", + "price": 321.48, + "stock_quantity": 280 + }, + "customer": { + "name": "Doris King", + "age": 44, + "country": "Russian Federation" + } + }, + { + "natural_query": "What are the top 3 products by orders for Mitchell, Olson and Thompson last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Mitchell, Olson and Thompson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3", + "company": { + "name": "Mitchell, Olson and Thompson", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "argue", + "category": "hope", + "price": 589.77, + "stock_quantity": 486 + }, + "customer": { + "name": "Timothy Phillips", + "age": 44, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Johnston-Underwood", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "pattern", + "category": "month", + "price": 528.08, + "stock_quantity": 12 + }, + "customer": { + "name": "Sara Whitaker", + "age": 31, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Jenkins, Ellison and Collins", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "may", + "category": "peace", + "price": 58.15, + "stock_quantity": 652 + }, + "customer": { + "name": "Jasmin Johnson", + "age": 80, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Hall-Ramos", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "expert", + "category": "financial", + "price": 307.73, + "stock_quantity": 30 + }, + "customer": { + "name": "Jeremy Martinez", + "age": 22, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Lambert-Arnold", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "Mr", + "category": "within", + "price": 285.68, + "stock_quantity": 657 + }, + "customer": { + "name": "Curtis Wise", + "age": 32, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Jones Group", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "cover", + "category": "than", + "price": 584.76, + "stock_quantity": 123 + }, + "customer": { + "name": "Vanessa Thompson", + "age": 37, + "country": "Ghana" + } + }, + { + "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'", + "company": { + "name": "Nguyen Inc", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "start", + "category": "cut", + "price": 126.03, + "stock_quantity": 414 + }, + "customer": { + "name": "James Harris", + "age": 21, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Roach, Montgomery and Davis", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "role", + "category": "marriage", + "price": 40.66, + "stock_quantity": 262 + }, + "customer": { + "name": "Melissa Carlson", + "age": 31, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Jones Inc", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "dinner", + "category": "most", + "price": 517.38, + "stock_quantity": 492 + }, + "customer": { + "name": "William Acosta", + "age": 59, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Walls-Crane", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "area", + "category": "example", + "price": 191.49, + "stock_quantity": 802 + }, + "customer": { + "name": "Thomas Salinas", + "age": 26, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Ramirez PLC", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "arm", + "category": "strong", + "price": 769.07, + "stock_quantity": 411 + }, + "customer": { + "name": "Amanda Rosario", + "age": 20, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Greene, Trevino and Park", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "fill", + "category": "new", + "price": 691.28, + "stock_quantity": 904 + }, + "customer": { + "name": "Jennifer Mcpherson", + "age": 22, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Schmidt and Sons", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "by", + "category": "serious", + "price": 701.64, + "stock_quantity": 347 + }, + "customer": { + "name": "Andre Webb", + "age": 73, + "country": "Micronesia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Wilson, Hernandez and Schneider for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson, Hernandez and Schneider'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson, Hernandez and Schneider", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "information", + "category": "democratic", + "price": 585.43, + "stock_quantity": 994 + }, + "customer": { + "name": "Thomas Alexander", + "age": 41, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Cook, Reeves and Buckley", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "happy", + "category": "send", + "price": 406.9, + "stock_quantity": 801 + }, + "customer": { + "name": "William Johnson", + "age": 23, + "country": "Vanuatu" + } + }, + { + "natural_query": "What are the top 5 products by sales for Bell, Parker and Sullivan last quarter?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bell, Parker and Sullivan' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5", + "company": { + "name": "Bell, Parker and Sullivan", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "through", + "category": "science", + "price": 561.78, + "stock_quantity": 197 + }, + "customer": { + "name": "Ronald Anderson", + "age": 39, + "country": "French Guiana" + } + }, + { + "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'", + "company": { + "name": "Romero-Carter", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "interview", + "category": "where", + "price": 680.34, + "stock_quantity": 409 + }, + "customer": { + "name": "Brianna Jones", + "age": 42, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Andrews-Foster", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "although", + "category": "offer", + "price": 801.87, + "stock_quantity": 841 + }, + "customer": { + "name": "John Phillips", + "age": 30, + "country": "Mexico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Elliott, Jones and Solomon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Elliott, Jones and Solomon", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "interview", + "category": "full", + "price": 517.31, + "stock_quantity": 345 + }, + "customer": { + "name": "Jose Foster", + "age": 29, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Mitchell Ltd", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "this", + "category": "provide", + "price": 120.11, + "stock_quantity": 603 + }, + "customer": { + "name": "Jon Long", + "age": 37, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Miller, Wells and Cummings", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "western", + "category": "remain", + "price": 34.34, + "stock_quantity": 154 + }, + "customer": { + "name": "Eric Richardson", + "age": 74, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Quinn, Jackson and Smith", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "day", + "category": "at", + "price": 222.93, + "stock_quantity": 863 + }, + "customer": { + "name": "Joshua Wright", + "age": 59, + "country": "Somalia" + } + }, + { + "natural_query": "List all products of Hunt Inc ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Hunt Inc' ORDER BY price DESC", + "company": { + "name": "Hunt Inc", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "possible", + "category": "scientist", + "price": 820.1, + "stock_quantity": 606 + }, + "customer": { + "name": "Cody Goodwin", + "age": 65, + "country": "Timor-Leste" + } + }, + { + "natural_query": "Show me all products in the yourself category with a price over $925.87.", + "sql_query": "SELECT * FROM products WHERE category = 'yourself' AND price > 925.87", + "company": { + "name": "Duran, Serrano and Perkins", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "reason", + "category": "yourself", + "price": 925.87, + "stock_quantity": 138 + }, + "customer": { + "name": "Mr. Christopher Murphy", + "age": 24, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Bowman-Mendez", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "perform", + "category": "Republican", + "price": 352.81, + "stock_quantity": 701 + }, + "customer": { + "name": "Deborah King", + "age": 26, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Cervantes, Wilson and Williams", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "radio", + "category": "people", + "price": 565.94, + "stock_quantity": 429 + }, + "customer": { + "name": "Meghan Mitchell", + "age": 42, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Watson-Moore", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "officer", + "category": "read", + "price": 90.21, + "stock_quantity": 644 + }, + "customer": { + "name": "Guy Nunez", + "age": 58, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Spencer-Riley", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "stock", + "category": "behind", + "price": 602.02, + "stock_quantity": 330 + }, + "customer": { + "name": "Jenna Harrington", + "age": 37, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Phillips Group", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "produce", + "category": "step", + "price": 783.77, + "stock_quantity": 552 + }, + "customer": { + "name": "William Bradley", + "age": 33, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Miller, Burnett and Jimenez", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "born", + "category": "hundred", + "price": 135.49, + "stock_quantity": 629 + }, + "customer": { + "name": "Leonard Wang", + "age": 22, + "country": "Saint Helena" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson-Sexton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson-Sexton", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "dog", + "category": "impact", + "price": 404.66, + "stock_quantity": 934 + }, + "customer": { + "name": "Linda Obrien", + "age": 41, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Jones, Beck and Melendez", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "woman", + "category": "author", + "price": 959.28, + "stock_quantity": 63 + }, + "customer": { + "name": "Edward Nelson", + "age": 56, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Castro, Blair and Sheppard", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "risk", + "category": "nice", + "price": 378.98, + "stock_quantity": 69 + }, + "customer": { + "name": "Andrea Flores", + "age": 36, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Adams-Reed", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "unit", + "category": "energy", + "price": 481.73, + "stock_quantity": 171 + }, + "customer": { + "name": "Kristen Higgins", + "age": 80, + "country": "Nauru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moyer Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moyer Group", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "book", + "category": "miss", + "price": 345.87, + "stock_quantity": 704 + }, + "customer": { + "name": "Ruth Smith", + "age": 62, + "country": "American Samoa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nguyen, Cunningham and Martin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nguyen, Cunningham and Martin", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "election", + "category": "program", + "price": 370.95, + "stock_quantity": 500 + }, + "customer": { + "name": "Teresa Mooney", + "age": 29, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Baldwin, Hoover and Keller", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "plan", + "category": "total", + "price": 191.62, + "stock_quantity": 778 + }, + "customer": { + "name": "Ashley Delgado", + "age": 33, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Ward and Hart", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "after", + "category": "analysis", + "price": 508.29, + "stock_quantity": 985 + }, + "customer": { + "name": "Stephanie Bailey", + "age": 22, + "country": "Colombia" + } + }, + { + "natural_query": "How many orders were placed for Contreras, Phillips and Livingston between 2024-02-24 and 2024-09-14?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Contreras, Phillips and Livingston' AND order_date BETWEEN '2024-02-24' AND '2024-09-14'", + "company": { + "name": "Contreras, Phillips and Livingston", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "type", + "category": "contain", + "price": 467.12, + "stock_quantity": 50 + }, + "customer": { + "name": "Derek Moreno", + "age": 70, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Hickman, Brown and Lewis", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "per", + "category": "appear", + "price": 663.13, + "stock_quantity": 617 + }, + "customer": { + "name": "Susan Elliott", + "age": 40, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Clark LLC", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "nothing", + "category": "fund", + "price": 663.36, + "stock_quantity": 588 + }, + "customer": { + "name": "Tiffany Lee", + "age": 40, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Ramirez, Hampton and Hanson", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "necessary", + "category": "history", + "price": 892.08, + "stock_quantity": 765 + }, + "customer": { + "name": "William Sanders", + "age": 62, + "country": "Bahamas" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson, Martinez and Kirk'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson, Martinez and Kirk", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "usually", + "category": "market", + "price": 941.34, + "stock_quantity": 806 + }, + "customer": { + "name": "Richard Garza", + "age": 75, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Sanchez PLC", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "deep", + "category": "treatment", + "price": 612.1, + "stock_quantity": 179 + }, + "customer": { + "name": "Beth Hernandez", + "age": 76, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Lewis, Gross and Walsh", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "raise", + "category": "off", + "price": 451.13, + "stock_quantity": 56 + }, + "customer": { + "name": "Cindy Chung", + "age": 77, + "country": "Lao People's Democratic Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Osborne Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Osborne Ltd", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "later", + "category": "eat", + "price": 208.56, + "stock_quantity": 641 + }, + "customer": { + "name": "Cheryl Moran", + "age": 69, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Lee, Munoz and Velasquez", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "trade", + "category": "art", + "price": 173.47, + "stock_quantity": 697 + }, + "customer": { + "name": "Sarah Smith", + "age": 56, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Singh, Campbell and Hoffman", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "ball", + "category": "land", + "price": 87.37, + "stock_quantity": 647 + }, + "customer": { + "name": "Lisa Hawkins", + "age": 65, + "country": "Cambodia" + } + }, + { + "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'", + "company": { + "name": "Price-Day", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "often", + "category": "soldier", + "price": 71.2, + "stock_quantity": 213 + }, + "customer": { + "name": "Troy Davis", + "age": 28, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Watson-Cole", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "participant", + "category": "religious", + "price": 925.05, + "stock_quantity": 224 + }, + "customer": { + "name": "Kimberly Gray", + "age": 73, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Russo-Molina", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "government", + "category": "study", + "price": 205.41, + "stock_quantity": 502 + }, + "customer": { + "name": "Gina Johnson", + "age": 63, + "country": "Spain" + } + }, + { + "natural_query": "Show me all products in the window category with a price over $378.47.", + "sql_query": "SELECT * FROM products WHERE category = 'window' AND price > 378.47", + "company": { + "name": "Johnson, Lester and Snyder", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "like", + "category": "window", + "price": 378.47, + "stock_quantity": 517 + }, + "customer": { + "name": "Edward Love Jr.", + "age": 50, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Walker, Wiley and Cherry", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "pull", + "category": "this", + "price": 506.84, + "stock_quantity": 979 + }, + "customer": { + "name": "Jared Henson", + "age": 42, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Gray, Mullins and Mccoy", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "career", + "category": "which", + "price": 392.12, + "stock_quantity": 417 + }, + "customer": { + "name": "Jermaine Colon", + "age": 28, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Wilson-Wood", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "easy", + "category": "behavior", + "price": 119.27, + "stock_quantity": 28 + }, + "customer": { + "name": "James Copeland", + "age": 21, + "country": "Turkmenistan" + } + }, + { + "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'", + "company": { + "name": "Doyle Ltd", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "always", + "category": "scene", + "price": 956.44, + "stock_quantity": 792 + }, + "customer": { + "name": "Thomas Frank", + "age": 66, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Doyle, Jefferson and Mccormick", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "meet", + "category": "continue", + "price": 97.33, + "stock_quantity": 31 + }, + "customer": { + "name": "Michael Wood", + "age": 33, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Duarte PLC", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "pattern", + "category": "bad", + "price": 231.07, + "stock_quantity": 813 + }, + "customer": { + "name": "Michael Lin", + "age": 80, + "country": "Chad" + } + }, + { + "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'", + "company": { + "name": "Meza-Perkins", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "from", + "category": "run", + "price": 852.74, + "stock_quantity": 958 + }, + "customer": { + "name": "David Booth", + "age": 61, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Roberts Inc", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "resource", + "category": "teacher", + "price": 483.62, + "stock_quantity": 317 + }, + "customer": { + "name": "Herbert Hill", + "age": 68, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Pineda, Vaughan and Butler", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "expect", + "category": "require", + "price": 294.07, + "stock_quantity": 133 + }, + "customer": { + "name": "Daniel Woods", + "age": 25, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Lee, Sanchez and Baker", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "exactly", + "category": "college", + "price": 377.62, + "stock_quantity": 378 + }, + "customer": { + "name": "Michael Leonard", + "age": 78, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Stewart-Meadows", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "he", + "category": "best", + "price": 157.86, + "stock_quantity": 215 + }, + "customer": { + "name": "Madison Diaz", + "age": 52, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "West-Sheppard", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "already", + "category": "close", + "price": 756.11, + "stock_quantity": 16 + }, + "customer": { + "name": "Melinda Mendoza", + "age": 44, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Jones Inc", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "go", + "category": "relate", + "price": 883.77, + "stock_quantity": 138 + }, + "customer": { + "name": "Laura Cox", + "age": 45, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Mason-Daniels", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "myself", + "category": "almost", + "price": 574.25, + "stock_quantity": 379 + }, + "customer": { + "name": "Mark Rice", + "age": 24, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Lara Inc", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "type", + "category": "clearly", + "price": 123.24, + "stock_quantity": 269 + }, + "customer": { + "name": "Laura Tucker", + "age": 60, + "country": "Tuvalu" + } + }, + { + "natural_query": "How many orders were placed for Goodwin, Stevens and Gray between 2023-12-29 and 2024-07-08?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Goodwin, Stevens and Gray' AND order_date BETWEEN '2023-12-29' AND '2024-07-08'", + "company": { + "name": "Goodwin, Stevens and Gray", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "every", + "category": "professional", + "price": 662.85, + "stock_quantity": 401 + }, + "customer": { + "name": "Katherine Daniels", + "age": 39, + "country": "Bosnia and Herzegovina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lopez, Li and Olson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lopez, Li and Olson", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "southern", + "category": "truth", + "price": 465.32, + "stock_quantity": 74 + }, + "customer": { + "name": "Justin Anderson", + "age": 34, + "country": "Grenada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shah-Carter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shah-Carter", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "woman", + "category": "possible", + "price": 249.69, + "stock_quantity": 616 + }, + "customer": { + "name": "Christopher Dixon", + "age": 28, + "country": "South Africa" + } + }, + { + "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'", + "company": { + "name": "Cunningham-Schmitt", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "leave", + "category": "with", + "price": 655.79, + "stock_quantity": 466 + }, + "customer": { + "name": "Ruben Dunn", + "age": 45, + "country": "Chad" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cain-Shaw'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cain-Shaw", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "chance", + "category": "all", + "price": 990.09, + "stock_quantity": 790 + }, + "customer": { + "name": "Robyn Burns", + "age": 52, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Brown and Sons", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "career", + "category": "yard", + "price": 729.21, + "stock_quantity": 514 + }, + "customer": { + "name": "Samantha Sanchez", + "age": 29, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Kaiser Ltd", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "year", + "category": "table", + "price": 208.03, + "stock_quantity": 325 + }, + "customer": { + "name": "Savannah Davila", + "age": 38, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Brooks PLC", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "song", + "category": "team", + "price": 758.42, + "stock_quantity": 607 + }, + "customer": { + "name": "George Harris", + "age": 30, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Sexton, Holt and Chambers", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "economy", + "category": "remain", + "price": 765.6, + "stock_quantity": 130 + }, + "customer": { + "name": "Michael Pham", + "age": 60, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Rice-Warren", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "per", + "category": "hour", + "price": 446.61, + "stock_quantity": 311 + }, + "customer": { + "name": "Penny Dean", + "age": 77, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez, Mclaughlin and Wall'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez, Mclaughlin and Wall", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "push", + "category": "often", + "price": 204.71, + "stock_quantity": 809 + }, + "customer": { + "name": "Mark Mitchell", + "age": 79, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "Harvey-Morales", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "other", + "category": "guy", + "price": 66.08, + "stock_quantity": 256 + }, + "customer": { + "name": "Edward Anderson", + "age": 35, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Wood, Sanchez and Carroll", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "report", + "category": "among", + "price": 727.08, + "stock_quantity": 755 + }, + "customer": { + "name": "Jillian Allen", + "age": 50, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Hoover, Kaiser and Hunter", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "health", + "category": "high", + "price": 617.49, + "stock_quantity": 813 + }, + "customer": { + "name": "James Hall", + "age": 61, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "James, Munoz and Kerr", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "hot", + "category": "effect", + "price": 244.42, + "stock_quantity": 208 + }, + "customer": { + "name": "Thomas Patrick", + "age": 71, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Cooper-Lewis", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "trade", + "category": "one", + "price": 695.55, + "stock_quantity": 559 + }, + "customer": { + "name": "Anna Brooks", + "age": 31, + "country": "Poland" + } + }, + { + "natural_query": "What are the top 6 products by revenue for Barnes PLC this month?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Barnes PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6", + "company": { + "name": "Barnes PLC", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "particularly", + "category": "worry", + "price": 976.04, + "stock_quantity": 812 + }, + "customer": { + "name": "Troy Perry", + "age": 73, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Love, Kennedy and Jacobson", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "guess", + "category": "camera", + "price": 581.74, + "stock_quantity": 702 + }, + "customer": { + "name": "Michael Galvan", + "age": 52, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Carter, Wilson and Bishop", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "age", + "category": "not", + "price": 348.26, + "stock_quantity": 686 + }, + "customer": { + "name": "Maria Brown", + "age": 58, + "country": "Micronesia" + } + }, + { + "natural_query": "How many orders were placed for Williams-David between 2024-05-17 and 2024-09-07?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-David' AND order_date BETWEEN '2024-05-17' AND '2024-09-07'", + "company": { + "name": "Williams-David", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "land", + "category": "explain", + "price": 667.67, + "stock_quantity": 72 + }, + "customer": { + "name": "Matthew Hall", + "age": 19, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Floyd and Sons", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "consider", + "category": "wife", + "price": 548.16, + "stock_quantity": 928 + }, + "customer": { + "name": "Ronald Fowler", + "age": 43, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Ayala, Snyder and Johnston", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "audience", + "category": "probably", + "price": 103.17, + "stock_quantity": 246 + }, + "customer": { + "name": "Andrew Castro", + "age": 28, + "country": "Canada" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Kelly-Baldwin?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Kelly-Baldwin'", + "company": { + "name": "Kelly-Baldwin", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "exactly", + "category": "minute", + "price": 248.29, + "stock_quantity": 707 + }, + "customer": { + "name": "Stephanie Powers", + "age": 80, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Peterson-Gibbs", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "shake", + "category": "hold", + "price": 637.66, + "stock_quantity": 353 + }, + "customer": { + "name": "Lisa White", + "age": 47, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Johnson, Lee and Rodriguez", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "technology", + "category": "resource", + "price": 492.22, + "stock_quantity": 299 + }, + "customer": { + "name": "Wendy Jones", + "age": 39, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Patterson-Fuller", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "significant", + "category": "simple", + "price": 722.92, + "stock_quantity": 250 + }, + "customer": { + "name": "Brandon Simon", + "age": 64, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Bennett-Burke", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "author", + "category": "story", + "price": 518.16, + "stock_quantity": 201 + }, + "customer": { + "name": "Candice Mcdonald", + "age": 47, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Vasquez-Murphy", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "program", + "category": "decision", + "price": 591.98, + "stock_quantity": 356 + }, + "customer": { + "name": "Michael Sanchez", + "age": 50, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Gonzalez Ltd", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "bed", + "category": "among", + "price": 18.59, + "stock_quantity": 457 + }, + "customer": { + "name": "Jacob Vazquez", + "age": 43, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Rojas and Sons", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "country", + "category": "discussion", + "price": 640.59, + "stock_quantity": 666 + }, + "customer": { + "name": "April Franklin", + "age": 71, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Rodriguez Group", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "phone", + "category": "worker", + "price": 567.75, + "stock_quantity": 89 + }, + "customer": { + "name": "Jeremy Bell", + "age": 80, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Guerra, Paul and Nichols", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "I", + "category": "organization", + "price": 606.39, + "stock_quantity": 855 + }, + "customer": { + "name": "John Copeland", + "age": 68, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Allison Inc", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "view", + "category": "technology", + "price": 702.58, + "stock_quantity": 421 + }, + "customer": { + "name": "Mrs. Caitlin Smith", + "age": 58, + "country": "British Virgin Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Daniels-Griffin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Daniels-Griffin", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "shake", + "category": "industry", + "price": 837.56, + "stock_quantity": 473 + }, + "customer": { + "name": "Scott Espinoza", + "age": 75, + "country": "Ecuador" + } + }, + { + "natural_query": "How many orders were placed for Dillon, Walker and Williams between 2024-01-16 and 2024-08-13?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dillon, Walker and Williams' AND order_date BETWEEN '2024-01-16' AND '2024-08-13'", + "company": { + "name": "Dillon, Walker and Williams", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "dinner", + "category": "eye", + "price": 502.4, + "stock_quantity": 991 + }, + "customer": { + "name": "Leah Torres", + "age": 40, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Hughes, Thomas and Baird", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "medical", + "category": "none", + "price": 891.54, + "stock_quantity": 204 + }, + "customer": { + "name": "Mark Martinez", + "age": 26, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Cooley Inc", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "cause", + "category": "mean", + "price": 563.04, + "stock_quantity": 41 + }, + "customer": { + "name": "Chad Robinson", + "age": 22, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Garrett Inc", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "heavy", + "category": "get", + "price": 321.26, + "stock_quantity": 545 + }, + "customer": { + "name": "Kristie Jones", + "age": 43, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Nguyen, Higgins and Cannon", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "minute", + "category": "sense", + "price": 454.32, + "stock_quantity": 605 + }, + "customer": { + "name": "Lance Hoover", + "age": 43, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Smith-Gordon", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "already", + "category": "create", + "price": 968.76, + "stock_quantity": 810 + }, + "customer": { + "name": "Jesse Reyes", + "age": 71, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Webb, Stewart and Obrien'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Webb, Stewart and Obrien", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "may", + "category": "name", + "price": 678.76, + "stock_quantity": 267 + }, + "customer": { + "name": "Andrew Marquez", + "age": 68, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Barber Group", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "change", + "category": "effect", + "price": 766.78, + "stock_quantity": 212 + }, + "customer": { + "name": "Amanda Ramos", + "age": 75, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Patel Ltd", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "painting", + "category": "less", + "price": 320.81, + "stock_quantity": 708 + }, + "customer": { + "name": "Tracy Torres MD", + "age": 77, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Sherman, Valdez and Valentine", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "big", + "category": "popular", + "price": 368.11, + "stock_quantity": 903 + }, + "customer": { + "name": "Marc Kidd", + "age": 55, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "King-Johnson", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "dinner", + "category": "laugh", + "price": 285.2, + "stock_quantity": 881 + }, + "customer": { + "name": "Ryan Barron", + "age": 19, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Allen, Murray and Foster", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "form", + "category": "argue", + "price": 890.94, + "stock_quantity": 173 + }, + "customer": { + "name": "Cassandra Wilson", + "age": 79, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Baker-Montgomery", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "bar", + "category": "recent", + "price": 926.58, + "stock_quantity": 929 + }, + "customer": { + "name": "Brandon Snyder", + "age": 40, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Grimes-Goodwin", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "fly", + "category": "name", + "price": 395.07, + "stock_quantity": 430 + }, + "customer": { + "name": "Allen Sanders", + "age": 23, + "country": "Moldova" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Henry-Stephens'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Henry-Stephens", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "program", + "category": "marriage", + "price": 365.2, + "stock_quantity": 774 + }, + "customer": { + "name": "Sarah Mcguire", + "age": 71, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Goodwin, Doyle and Barnes", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "language", + "category": "store", + "price": 377.63, + "stock_quantity": 119 + }, + "customer": { + "name": "Joseph Rodgers", + "age": 64, + "country": "Bosnia and Herzegovina" + } + }, + { + "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'", + "company": { + "name": "Gonzalez Ltd", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "degree", + "category": "market", + "price": 35.6, + "stock_quantity": 962 + }, + "customer": { + "name": "Matthew Cuevas", + "age": 35, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Alvarez LLC", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "the", + "category": "day", + "price": 578.15, + "stock_quantity": 993 + }, + "customer": { + "name": "Christopher Hicks", + "age": 35, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Atkins and Sons", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "itself", + "category": "institution", + "price": 257.16, + "stock_quantity": 334 + }, + "customer": { + "name": "Bryan Barr", + "age": 77, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Holmes-Rodriguez", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "then", + "category": "career", + "price": 557.59, + "stock_quantity": 301 + }, + "customer": { + "name": "Jason Bell", + "age": 18, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Parrish, Craig and Chen", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "next", + "category": "husband", + "price": 927.75, + "stock_quantity": 596 + }, + "customer": { + "name": "Christopher Rhodes", + "age": 53, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Rodriguez, Brown and Porter", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "share", + "category": "interesting", + "price": 603.7, + "stock_quantity": 296 + }, + "customer": { + "name": "Jeffrey Jones", + "age": 74, + "country": "Aruba" + } + }, + { + "natural_query": "List all products of Ochoa, Smith and Patterson ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Ochoa, Smith and Patterson' ORDER BY price ASC", + "company": { + "name": "Ochoa, Smith and Patterson", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "do", + "category": "commercial", + "price": 673.81, + "stock_quantity": 624 + }, + "customer": { + "name": "Elizabeth Koch", + "age": 39, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Wilson-Murray", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "however", + "category": "relationship", + "price": 836.57, + "stock_quantity": 74 + }, + "customer": { + "name": "Tiffany Jones", + "age": 38, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Smith, Potter and Herring", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "political", + "category": "fast", + "price": 690.32, + "stock_quantity": 3 + }, + "customer": { + "name": "Sharon Harrington", + "age": 72, + "country": "Mali" + } + }, + { + "natural_query": "Show me all products in the significant category with a price over $301.35.", + "sql_query": "SELECT * FROM products WHERE category = 'significant' AND price > 301.35", + "company": { + "name": "Roberson-Barber", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "read", + "category": "significant", + "price": 301.35, + "stock_quantity": 44 + }, + "customer": { + "name": "Tina Underwood", + "age": 76, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Barnes, Austin and Peterson", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "candidate", + "category": "start", + "price": 729.34, + "stock_quantity": 250 + }, + "customer": { + "name": "Lori Rodriguez", + "age": 34, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Park LLC", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "soldier", + "category": "win", + "price": 185.27, + "stock_quantity": 106 + }, + "customer": { + "name": "Jeffrey Gross", + "age": 30, + "country": "Congo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Floyd Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Floyd Group", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "draw", + "category": "law", + "price": 408.21, + "stock_quantity": 647 + }, + "customer": { + "name": "Tracy Brown", + "age": 75, + "country": "Pakistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Owens, Madden and Perry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Owens, Madden and Perry", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "who", + "category": "day", + "price": 47.04, + "stock_quantity": 154 + }, + "customer": { + "name": "Lindsey Bentley", + "age": 66, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Johnson, Richard and Wyatt", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "turn", + "category": "impact", + "price": 287.82, + "stock_quantity": 484 + }, + "customer": { + "name": "Theresa Garrison", + "age": 38, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Moore, Martinez and Hebert", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "next", + "category": "know", + "price": 195.64, + "stock_quantity": 675 + }, + "customer": { + "name": "Eugene Fowler", + "age": 67, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Williams and Sons", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "personal", + "category": "free", + "price": 468.46, + "stock_quantity": 824 + }, + "customer": { + "name": "Jennifer Barber", + "age": 44, + "country": "French Southern Territories" + } + }, + { + "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'", + "company": { + "name": "Reynolds, Frank and King", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "friend", + "category": "may", + "price": 333.51, + "stock_quantity": 106 + }, + "customer": { + "name": "Mrs. Victoria White", + "age": 64, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Avila-Cain", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "either", + "category": "care", + "price": 606.21, + "stock_quantity": 743 + }, + "customer": { + "name": "Brandon Hall", + "age": 64, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Kim-Holland", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "old", + "category": "up", + "price": 406.89, + "stock_quantity": 128 + }, + "customer": { + "name": "Shawn Brooks", + "age": 41, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Williams-Church", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "green", + "category": "road", + "price": 390.59, + "stock_quantity": 102 + }, + "customer": { + "name": "John Boyer", + "age": 44, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Jenkins LLC", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "deal", + "category": "ago", + "price": 824.27, + "stock_quantity": 571 + }, + "customer": { + "name": "Jessica Burgess", + "age": 80, + "country": "India" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Alvarado Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Alvarado Ltd", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "stay", + "category": "writer", + "price": 539.74, + "stock_quantity": 192 + }, + "customer": { + "name": "Jacob Nichols DDS", + "age": 56, + "country": "Botswana" + } + }, + { + "natural_query": "What is the total profit for each category in Hudson, Adams and Yang?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Hudson, Adams and Yang' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Hudson, Adams and Yang", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "two", + "category": "pick", + "price": 654.84, + "stock_quantity": 631 + }, + "customer": { + "name": "Tyler Lowery", + "age": 26, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Woods, Lutz and Diaz", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "woman", + "category": "water", + "price": 156.84, + "stock_quantity": 403 + }, + "customer": { + "name": "Ashley Green", + "age": 67, + "country": "Croatia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Rivera and Holmes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Rivera and Holmes", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "article", + "category": "follow", + "price": 294.29, + "stock_quantity": 960 + }, + "customer": { + "name": "Michael Rose", + "age": 70, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Schmitt-Grant", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "easy", + "category": "how", + "price": 968.28, + "stock_quantity": 346 + }, + "customer": { + "name": "Karen Parsons", + "age": 38, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Jacobson, Castillo and Scott", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "quite", + "category": "tree", + "price": 515.87, + "stock_quantity": 85 + }, + "customer": { + "name": "Angela Bentley", + "age": 27, + "country": "Swaziland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor Inc", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "three", + "category": "building", + "price": 80.42, + "stock_quantity": 375 + }, + "customer": { + "name": "Kathy Taylor", + "age": 74, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Ruiz, Williams and Sanchez", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "about", + "category": "fight", + "price": 979.75, + "stock_quantity": 662 + }, + "customer": { + "name": "Kim Perez", + "age": 76, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Bennett, Villarreal and Hart", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "oil", + "category": "baby", + "price": 341.51, + "stock_quantity": 310 + }, + "customer": { + "name": "William Cherry", + "age": 18, + "country": "Western Sahara" + } + }, + { + "natural_query": "What is the total sales for each supplier in Williams-Serrano?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams-Serrano' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Williams-Serrano", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "contain", + "category": "try", + "price": 666.01, + "stock_quantity": 95 + }, + "customer": { + "name": "Charles Montoya", + "age": 32, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Fisher-Palmer", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "set", + "category": "difficult", + "price": 774.81, + "stock_quantity": 746 + }, + "customer": { + "name": "William Carter", + "age": 41, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Weiss, Wu and Jennings", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "street", + "category": "suggest", + "price": 996.17, + "stock_quantity": 126 + }, + "customer": { + "name": "Robyn Wolf", + "age": 46, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Fowler Group", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "window", + "category": "loss", + "price": 452.04, + "stock_quantity": 360 + }, + "customer": { + "name": "Lorraine Wagner", + "age": 71, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Ruiz PLC", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "despite", + "category": "himself", + "price": 154.66, + "stock_quantity": 309 + }, + "customer": { + "name": "Meagan Escobar", + "age": 76, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Brown, Wilkins and Reilly", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "respond", + "category": "leader", + "price": 718.01, + "stock_quantity": 803 + }, + "customer": { + "name": "Sara Cox", + "age": 65, + "country": "British Virgin Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ramsey and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ramsey and Sons", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "try", + "category": "total", + "price": 403.33, + "stock_quantity": 53 + }, + "customer": { + "name": "Pamela Moore", + "age": 45, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Chan Ltd", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "station", + "category": "large", + "price": 84.66, + "stock_quantity": 477 + }, + "customer": { + "name": "Jennifer Henderson", + "age": 56, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Shah-Garner", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "real", + "category": "upon", + "price": 255.45, + "stock_quantity": 408 + }, + "customer": { + "name": "Kelly Taylor", + "age": 56, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Newman and Sons", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "blue", + "category": "before", + "price": 555.12, + "stock_quantity": 30 + }, + "customer": { + "name": "Adam Smith", + "age": 70, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Martinez-Owens", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "can", + "category": "contain", + "price": 707.59, + "stock_quantity": 678 + }, + "customer": { + "name": "Ann Stevens", + "age": 28, + "country": "United Kingdom" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wright, Edwards and Long'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wright, Edwards and Long", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "Democrat", + "category": "past", + "price": 171.57, + "stock_quantity": 833 + }, + "customer": { + "name": "Robert King", + "age": 74, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Estrada Inc", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "assume", + "category": "statement", + "price": 238.51, + "stock_quantity": 469 + }, + "customer": { + "name": "Leslie Hernandez", + "age": 26, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Cooper and Sons", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "down", + "category": "staff", + "price": 529.18, + "stock_quantity": 287 + }, + "customer": { + "name": "Brian Taylor", + "age": 28, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Newton, Riddle and Burnett", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "born", + "category": "analysis", + "price": 793.08, + "stock_quantity": 388 + }, + "customer": { + "name": "Brady Elliott", + "age": 42, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Jensen-Wolf", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "finish", + "category": "loss", + "price": 38.27, + "stock_quantity": 78 + }, + "customer": { + "name": "Donald Sullivan", + "age": 79, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Evans LLC", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "once", + "category": "right", + "price": 307.31, + "stock_quantity": 446 + }, + "customer": { + "name": "Donald Turner", + "age": 20, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Butler-Carter", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "TV", + "category": "expert", + "price": 912.9, + "stock_quantity": 895 + }, + "customer": { + "name": "Susan Knapp", + "age": 35, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Bradley, Green and Moore", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "may", + "category": "would", + "price": 689.85, + "stock_quantity": 179 + }, + "customer": { + "name": "Malik Lee", + "age": 60, + "country": "Mozambique" + } + }, + { + "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'", + "company": { + "name": "Norris-Hall", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "feel", + "category": "place", + "price": 744.43, + "stock_quantity": 984 + }, + "customer": { + "name": "Trevor Owens", + "age": 35, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Smith, Smith and Newton", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "security", + "category": "his", + "price": 789.44, + "stock_quantity": 821 + }, + "customer": { + "name": "Edward Russell", + "age": 43, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Copeland Group", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "down", + "category": "middle", + "price": 844.23, + "stock_quantity": 13 + }, + "customer": { + "name": "Dillon White", + "age": 31, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Clark, Wong and Kerr", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "enter", + "category": "as", + "price": 747.4, + "stock_quantity": 916 + }, + "customer": { + "name": "Sara Brown", + "age": 39, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Mills Group", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "lose", + "category": "personal", + "price": 753.38, + "stock_quantity": 33 + }, + "customer": { + "name": "Jorge Miller", + "age": 47, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Camacho LLC", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "production", + "category": "family", + "price": 512.34, + "stock_quantity": 267 + }, + "customer": { + "name": "Karen Rodriguez", + "age": 58, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Hernandez, Ward and Wiley", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "line", + "category": "future", + "price": 736.08, + "stock_quantity": 99 + }, + "customer": { + "name": "Joseph Johnson", + "age": 73, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Dean and Sons", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "white", + "category": "interview", + "price": 422.09, + "stock_quantity": 336 + }, + "customer": { + "name": "Shawn Myers", + "age": 54, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Rodriguez LLC", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "government", + "category": "technology", + "price": 432.6, + "stock_quantity": 895 + }, + "customer": { + "name": "Bonnie Mcdonald", + "age": 38, + "country": "Switzerland" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Rojas LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rojas LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rojas LLC", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "available", + "category": "set", + "price": 61.09, + "stock_quantity": 158 + }, + "customer": { + "name": "Brandon Green", + "age": 77, + "country": "Taiwan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Schroeder, Davidson and Olsen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Schroeder, Davidson and Olsen", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "social", + "category": "receive", + "price": 915.77, + "stock_quantity": 283 + }, + "customer": { + "name": "Bryce Gutierrez", + "age": 37, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Hamilton, Cisneros and Wiggins", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "attack", + "category": "factor", + "price": 516.44, + "stock_quantity": 245 + }, + "customer": { + "name": "James Klein", + "age": 54, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Jones, Perez and Mueller", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "business", + "category": "garden", + "price": 185.16, + "stock_quantity": 951 + }, + "customer": { + "name": "Mark Wagner", + "age": 18, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bowen and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bowen and Sons", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "student", + "category": "onto", + "price": 593.47, + "stock_quantity": 384 + }, + "customer": { + "name": "Cassandra Bauer", + "age": 41, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Hernandez-Gilbert", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "shoulder", + "category": "including", + "price": 15.27, + "stock_quantity": 704 + }, + "customer": { + "name": "Adam Peters", + "age": 39, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Lewis PLC", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "current", + "category": "customer", + "price": 959.72, + "stock_quantity": 226 + }, + "customer": { + "name": "Christopher Farmer", + "age": 32, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Holmes-Hernandez", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "wear", + "category": "energy", + "price": 606.17, + "stock_quantity": 215 + }, + "customer": { + "name": "Jacqueline Roman", + "age": 72, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Webster-Reed", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "animal", + "category": "onto", + "price": 825.34, + "stock_quantity": 655 + }, + "customer": { + "name": "Ashley Smith", + "age": 37, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Johnson Inc", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "general", + "category": "professional", + "price": 234.16, + "stock_quantity": 740 + }, + "customer": { + "name": "Courtney Bates", + "age": 53, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Perez, Baldwin and Powell", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "occur", + "category": "although", + "price": 631.36, + "stock_quantity": 953 + }, + "customer": { + "name": "John Snow", + "age": 69, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Castro LLC", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "my", + "category": "national", + "price": 389.6, + "stock_quantity": 262 + }, + "customer": { + "name": "Krystal Obrien", + "age": 64, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Pearson Group", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "now", + "category": "consider", + "price": 333.17, + "stock_quantity": 424 + }, + "customer": { + "name": "Kelsey Petty", + "age": 76, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Perez-Dennis", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "middle", + "category": "three", + "price": 306.27, + "stock_quantity": 269 + }, + "customer": { + "name": "Kelly King", + "age": 73, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Lane, Rice and Jackson", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "television", + "category": "prevent", + "price": 976.14, + "stock_quantity": 976 + }, + "customer": { + "name": "Kim Hoffman", + "age": 20, + "country": "France" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hodges-Bell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hodges-Bell", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "machine", + "category": "cup", + "price": 21.12, + "stock_quantity": 397 + }, + "customer": { + "name": "Randall Vaughan", + "age": 75, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Cooley-Ward", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "laugh", + "category": "war", + "price": 395.31, + "stock_quantity": 915 + }, + "customer": { + "name": "Tammie Williamson", + "age": 44, + "country": "Andorra" + } + }, + { + "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'", + "company": { + "name": "Mcclure PLC", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "pretty", + "category": "wall", + "price": 427.0, + "stock_quantity": 319 + }, + "customer": { + "name": "Kayla Stevens", + "age": 28, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Norton-Beck", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "sure", + "category": "friend", + "price": 624.01, + "stock_quantity": 14 + }, + "customer": { + "name": "Laura Gallegos", + "age": 29, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Williams Inc", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "although", + "category": "chair", + "price": 198.08, + "stock_quantity": 403 + }, + "customer": { + "name": "Timothy Wheeler", + "age": 44, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Hurley-Bradley", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "send", + "category": "artist", + "price": 443.36, + "stock_quantity": 8 + }, + "customer": { + "name": "Dominic Diaz", + "age": 65, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Henry-Price", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "environment", + "category": "nation", + "price": 829.12, + "stock_quantity": 751 + }, + "customer": { + "name": "David Clark", + "age": 51, + "country": "Senegal" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Smith, Randall and Torres for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Randall and Torres'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Randall and Torres", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "management", + "category": "interest", + "price": 702.82, + "stock_quantity": 720 + }, + "customer": { + "name": "Stephen Webster", + "age": 24, + "country": "Andorra" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor LLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "clear", + "category": "customer", + "price": 574.19, + "stock_quantity": 955 + }, + "customer": { + "name": "Patricia Christian", + "age": 68, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Perez-Walsh", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "whatever", + "category": "both", + "price": 340.64, + "stock_quantity": 210 + }, + "customer": { + "name": "Donna Martin", + "age": 42, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Dickson, Gonzales and Sanchez", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "we", + "category": "mean", + "price": 27.69, + "stock_quantity": 644 + }, + "customer": { + "name": "Joel Esparza", + "age": 31, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Rivers LLC", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "bring", + "category": "late", + "price": 361.35, + "stock_quantity": 901 + }, + "customer": { + "name": "Deborah Scott", + "age": 22, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "White, Fleming and Santos", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "source", + "category": "operation", + "price": 37.34, + "stock_quantity": 430 + }, + "customer": { + "name": "Anna Holloway", + "age": 57, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Hines-Young", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "change", + "category": "whole", + "price": 709.14, + "stock_quantity": 844 + }, + "customer": { + "name": "Jennifer Jackson", + "age": 77, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Harrison, Butler and Lewis", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "case", + "category": "town", + "price": 555.45, + "stock_quantity": 913 + }, + "customer": { + "name": "Christopher Juarez", + "age": 74, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Alvarado-Taylor", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "history", + "category": "investment", + "price": 884.54, + "stock_quantity": 634 + }, + "customer": { + "name": "Nancy Austin", + "age": 65, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Weaver Ltd", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "score", + "category": "realize", + "price": 75.65, + "stock_quantity": 717 + }, + "customer": { + "name": "Christopher Shaffer", + "age": 25, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Taylor, Chandler and Collins", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "require", + "category": "TV", + "price": 366.32, + "stock_quantity": 545 + }, + "customer": { + "name": "Sean Brown", + "age": 44, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Harris LLC", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "western", + "category": "tree", + "price": 934.01, + "stock_quantity": 794 + }, + "customer": { + "name": "Brandon Anderson", + "age": 46, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Jones, Yang and Carpenter", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "lead", + "category": "star", + "price": 350.18, + "stock_quantity": 890 + }, + "customer": { + "name": "Michael Tucker", + "age": 52, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Burke Group", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "hospital", + "category": "still", + "price": 117.25, + "stock_quantity": 77 + }, + "customer": { + "name": "Vicki Curry", + "age": 66, + "country": "Pakistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Webster-Mueller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Webster-Mueller", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "yard", + "category": "east", + "price": 24.88, + "stock_quantity": 525 + }, + "customer": { + "name": "Jesse Mendez", + "age": 40, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Osborne, Monroe and White", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "hundred", + "category": "above", + "price": 133.69, + "stock_quantity": 605 + }, + "customer": { + "name": "Devon Perry", + "age": 50, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Hayden, Chambers and Knight", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "interesting", + "category": "especially", + "price": 435.53, + "stock_quantity": 204 + }, + "customer": { + "name": "Tracy Anderson", + "age": 73, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Bennett Group", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "citizen", + "category": "allow", + "price": 808.38, + "stock_quantity": 609 + }, + "customer": { + "name": "Bryan Hammond", + "age": 23, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Moore, Campbell and Mcintosh", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "truth", + "category": "happy", + "price": 808.77, + "stock_quantity": 604 + }, + "customer": { + "name": "Andre Hill", + "age": 67, + "country": "Nicaragua" + } + }, + { + "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'", + "company": { + "name": "Fuentes-Mitchell", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "cold", + "category": "dinner", + "price": 122.75, + "stock_quantity": 205 + }, + "customer": { + "name": "Christine Sanders", + "age": 77, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Lawrence, Mccarty and Clark", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "down", + "category": "light", + "price": 186.3, + "stock_quantity": 94 + }, + "customer": { + "name": "Dwayne Gordon", + "age": 49, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Estes LLC", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "benefit", + "category": "last", + "price": 102.34, + "stock_quantity": 175 + }, + "customer": { + "name": "Julia Williams", + "age": 64, + "country": "Greece" + } + }, + { + "natural_query": "What are the top 5 products by sales for Hall-Edwards this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hall-Edwards' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5", + "company": { + "name": "Hall-Edwards", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "tell", + "category": "event", + "price": 446.1, + "stock_quantity": 111 + }, + "customer": { + "name": "Christine Cardenas", + "age": 64, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Cross-Frazier", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "occur", + "category": "garden", + "price": 20.21, + "stock_quantity": 507 + }, + "customer": { + "name": "Jesus Smith", + "age": 74, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Green, Quinn and Peterson", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "because", + "category": "woman", + "price": 768.34, + "stock_quantity": 965 + }, + "customer": { + "name": "Gregory Peters", + "age": 21, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Alexander-Johnston", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "could", + "category": "place", + "price": 368.5, + "stock_quantity": 343 + }, + "customer": { + "name": "Jeffrey Porter", + "age": 43, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Singh-Moore", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "guess", + "category": "speak", + "price": 312.72, + "stock_quantity": 143 + }, + "customer": { + "name": "David Wilkerson DDS", + "age": 74, + "country": "Costa Rica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones-Welch'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones-Welch", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "east", + "category": "main", + "price": 991.24, + "stock_quantity": 899 + }, + "customer": { + "name": "Melinda Clayton", + "age": 40, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Williams Inc", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "woman", + "category": "sell", + "price": 181.54, + "stock_quantity": 17 + }, + "customer": { + "name": "Molly Stewart", + "age": 26, + "country": "Kenya" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cannon, Lopez and Reynolds'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cannon, Lopez and Reynolds", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "wish", + "category": "activity", + "price": 67.14, + "stock_quantity": 660 + }, + "customer": { + "name": "Anthony Boyd", + "age": 22, + "country": "Brunei Darussalam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mosley, Evans and Mueller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mosley, Evans and Mueller", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "trip", + "category": "science", + "price": 158.55, + "stock_quantity": 654 + }, + "customer": { + "name": "David Johnson", + "age": 37, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Young-Figueroa", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "price", + "category": "hold", + "price": 380.18, + "stock_quantity": 402 + }, + "customer": { + "name": "Deborah Jones", + "age": 70, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Carter, Lee and Crane", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "professional", + "category": "defense", + "price": 550.19, + "stock_quantity": 151 + }, + "customer": { + "name": "James Gallagher", + "age": 36, + "country": "Djibouti" + } + }, + { + "natural_query": "Show me all products in the political category with a price over $185.2.", + "sql_query": "SELECT * FROM products WHERE category = 'political' AND price > 185.2", + "company": { + "name": "Rivera, Sandoval and Moore", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "tell", + "category": "political", + "price": 185.2, + "stock_quantity": 295 + }, + "customer": { + "name": "Marcus Garcia", + "age": 46, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Kelly, Wallace and White", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "for", + "category": "meeting", + "price": 623.13, + "stock_quantity": 297 + }, + "customer": { + "name": "Troy Mills", + "age": 44, + "country": "Nauru" + } + }, + { + "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'", + "company": { + "name": "Mercado, Allen and Patrick", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "book", + "category": "information", + "price": 730.9, + "stock_quantity": 960 + }, + "customer": { + "name": "Taylor Reilly", + "age": 49, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Atkinson, Delgado and Conway", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "arm", + "category": "ever", + "price": 930.87, + "stock_quantity": 927 + }, + "customer": { + "name": "Mr. Kevin Galvan", + "age": 23, + "country": "Portugal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Padilla, Stout and Robbins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Padilla, Stout and Robbins", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "both", + "category": "expert", + "price": 632.97, + "stock_quantity": 764 + }, + "customer": { + "name": "Stephanie Peters", + "age": 30, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Fletcher-Kirk", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "majority", + "category": "media", + "price": 992.07, + "stock_quantity": 916 + }, + "customer": { + "name": "Robert Vasquez", + "age": 47, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Gomez LLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "none", + "category": "ago", + "price": 93.75, + "stock_quantity": 545 + }, + "customer": { + "name": "Austin Sharp", + "age": 58, + "country": "Indonesia" + } + }, + { + "natural_query": "What are the top 8 products by orders for Kelley-Castaneda this year?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Kelley-Castaneda' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8", + "company": { + "name": "Kelley-Castaneda", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "worry", + "category": "south", + "price": 891.25, + "stock_quantity": 711 + }, + "customer": { + "name": "Christopher Peterson", + "age": 37, + "country": "Djibouti" + } + }, + { + "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'", + "company": { + "name": "Welch, Blankenship and Williams", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "level", + "category": "allow", + "price": 341.38, + "stock_quantity": 924 + }, + "customer": { + "name": "James Dunlap", + "age": 29, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Mcintyre, Lewis and Bautista", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "support", + "category": "particular", + "price": 221.35, + "stock_quantity": 122 + }, + "customer": { + "name": "Erik Stephens", + "age": 21, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gray, Dickson and Lynch'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gray, Dickson and Lynch", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "paper", + "category": "economic", + "price": 505.14, + "stock_quantity": 692 + }, + "customer": { + "name": "Jacqueline Miller", + "age": 19, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Nelson-Murphy", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "reveal", + "category": "course", + "price": 924.66, + "stock_quantity": 839 + }, + "customer": { + "name": "April Maldonado", + "age": 34, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Morales Ltd", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "whose", + "category": "tax", + "price": 592.72, + "stock_quantity": 933 + }, + "customer": { + "name": "Rose Brown", + "age": 37, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Mora, Carlson and Cobb", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "theory", + "category": "executive", + "price": 292.57, + "stock_quantity": 674 + }, + "customer": { + "name": "Mark Mcintosh", + "age": 75, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Strong-Dunn", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "rise", + "category": "evidence", + "price": 336.57, + "stock_quantity": 21 + }, + "customer": { + "name": "Darin Rosales", + "age": 57, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Wallace Ltd", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "kitchen", + "category": "product", + "price": 834.4, + "stock_quantity": 481 + }, + "customer": { + "name": "Peter Jackson", + "age": 73, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "Beck-Brown", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "field", + "category": "develop", + "price": 113.36, + "stock_quantity": 722 + }, + "customer": { + "name": "Danny Figueroa", + "age": 36, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Jackson-Smith", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "appear", + "category": "chair", + "price": 39.16, + "stock_quantity": 647 + }, + "customer": { + "name": "Andrew Nelson", + "age": 79, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Henry, Blake and Durham", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "get", + "category": "me", + "price": 322.21, + "stock_quantity": 275 + }, + "customer": { + "name": "Megan Turner", + "age": 39, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Smith-Marsh", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "tree", + "category": "nothing", + "price": 994.03, + "stock_quantity": 624 + }, + "customer": { + "name": "Alex Stevens", + "age": 62, + "country": "Belize" + } + }, + { + "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'", + "company": { + "name": "Bell-Reeves", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "heart", + "category": "edge", + "price": 788.36, + "stock_quantity": 404 + }, + "customer": { + "name": "Sara Evans", + "age": 38, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Beck-Soto", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "not", + "category": "exist", + "price": 202.15, + "stock_quantity": 946 + }, + "customer": { + "name": "Matthew Neal", + "age": 49, + "country": "India" + } + }, + { + "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'", + "company": { + "name": "Middleton-Harris", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "security", + "category": "service", + "price": 271.15, + "stock_quantity": 9 + }, + "customer": { + "name": "Brenda Miller", + "age": 75, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Campbell, Berger and Torres", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "firm", + "category": "here", + "price": 228.59, + "stock_quantity": 967 + }, + "customer": { + "name": "Catherine Wilson", + "age": 38, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Martinez-Collins", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "never", + "category": "great", + "price": 762.19, + "stock_quantity": 1 + }, + "customer": { + "name": "Nathan Sloan", + "age": 52, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Ellis Group", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "reduce", + "category": "woman", + "price": 597.75, + "stock_quantity": 238 + }, + "customer": { + "name": "Kristy Winters", + "age": 30, + "country": "Jordan" + } + }, + { + "natural_query": "What is the average quantity of all products for Ramirez Inc?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Ramirez Inc'", + "company": { + "name": "Ramirez Inc", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "century", + "category": "top", + "price": 416.99, + "stock_quantity": 259 + }, + "customer": { + "name": "Natalie Johnson", + "age": 61, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Miranda, Bryant and Quinn", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "behavior", + "category": "number", + "price": 575.32, + "stock_quantity": 285 + }, + "customer": { + "name": "Kimberly Brown", + "age": 25, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Walls, Wright and Griffin", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "thousand", + "category": "young", + "price": 535.55, + "stock_quantity": 507 + }, + "customer": { + "name": "Richard Harrison", + "age": 74, + "country": "Liechtenstein" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fleming, Hartman and Phillips'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fleming, Hartman and Phillips", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "important", + "category": "rich", + "price": 18.04, + "stock_quantity": 946 + }, + "customer": { + "name": "Kelly Gordon", + "age": 72, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Jones Ltd", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "debate", + "category": "whole", + "price": 479.14, + "stock_quantity": 624 + }, + "customer": { + "name": "Todd Mathis", + "age": 50, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Zamora-George", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "star", + "category": "parent", + "price": 997.25, + "stock_quantity": 704 + }, + "customer": { + "name": "Mr. Brian Moore", + "age": 59, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Bishop-Jones", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "professional", + "category": "player", + "price": 581.56, + "stock_quantity": 883 + }, + "customer": { + "name": "Scott Young", + "age": 31, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Hickman, Larson and Weaver", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "begin", + "category": "indeed", + "price": 402.97, + "stock_quantity": 637 + }, + "customer": { + "name": "Pamela Robertson", + "age": 73, + "country": "Liberia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Warren, Fleming and Martin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Warren, Fleming and Martin", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "listen", + "category": "stop", + "price": 471.07, + "stock_quantity": 163 + }, + "customer": { + "name": "John Hardy", + "age": 35, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Rios, Daniels and Wu", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "sure", + "category": "wear", + "price": 546.18, + "stock_quantity": 255 + }, + "customer": { + "name": "Tiffany Barber", + "age": 42, + "country": "Brunei Darussalam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lee Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lee Ltd", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "reality", + "category": "edge", + "price": 890.15, + "stock_quantity": 454 + }, + "customer": { + "name": "Megan Smith", + "age": 39, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Padilla-Lindsey", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "president", + "category": "let", + "price": 125.97, + "stock_quantity": 102 + }, + "customer": { + "name": "Kenneth Clark", + "age": 60, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Wall-Lynch", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "rich", + "category": "song", + "price": 565.16, + "stock_quantity": 782 + }, + "customer": { + "name": "Tonya Pearson", + "age": 47, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Moore, Padilla and Weaver", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "data", + "category": "commercial", + "price": 259.51, + "stock_quantity": 475 + }, + "customer": { + "name": "Jason Gill", + "age": 68, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Ramirez, Jarvis and Stanley", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "or", + "category": "appear", + "price": 390.98, + "stock_quantity": 932 + }, + "customer": { + "name": "Melissa Silva", + "age": 55, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Arroyo and Sons", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "manager", + "category": "guess", + "price": 711.54, + "stock_quantity": 177 + }, + "customer": { + "name": "Kyle Garrett", + "age": 51, + "country": "Nigeria" + } + }, + { + "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'", + "company": { + "name": "Greer, Singh and Washington", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "heavy", + "category": "media", + "price": 710.21, + "stock_quantity": 244 + }, + "customer": { + "name": "Laura Vasquez", + "age": 63, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Williams-Tran", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "off", + "category": "east", + "price": 762.78, + "stock_quantity": 587 + }, + "customer": { + "name": "Jay Lewis", + "age": 62, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Thompson-Butler", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "expert", + "category": "also", + "price": 394.72, + "stock_quantity": 683 + }, + "customer": { + "name": "Albert Ross", + "age": 77, + "country": "El Salvador" + } + }, + { + "natural_query": "What is the minimum price of all products for Gonzalez, Brown and Mcintyre?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Gonzalez, Brown and Mcintyre'", + "company": { + "name": "Gonzalez, Brown and Mcintyre", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "theory", + "category": "firm", + "price": 767.02, + "stock_quantity": 577 + }, + "customer": { + "name": "Alan Dyer", + "age": 34, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Anderson, Jensen and Elliott", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "one", + "category": "property", + "price": 649.01, + "stock_quantity": 486 + }, + "customer": { + "name": "Jason Daniels", + "age": 33, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Perez-Rich", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "force", + "category": "role", + "price": 840.57, + "stock_quantity": 647 + }, + "customer": { + "name": "Nicole Campbell", + "age": 42, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Cook-Silva", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "assume", + "category": "involve", + "price": 611.06, + "stock_quantity": 285 + }, + "customer": { + "name": "Matthew Scott", + "age": 55, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Moore, Lewis and Saunders", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "truth", + "category": "discuss", + "price": 515.13, + "stock_quantity": 141 + }, + "customer": { + "name": "Lacey Jones", + "age": 68, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Nichols Group", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "although", + "category": "create", + "price": 444.49, + "stock_quantity": 949 + }, + "customer": { + "name": "Victor Moore", + "age": 25, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Berg, Lopez and Harrison", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "share", + "category": "system", + "price": 524.21, + "stock_quantity": 366 + }, + "customer": { + "name": "Jeremy Holmes", + "age": 63, + "country": "Kazakhstan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Villanueva, Davis and Kelly'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Villanueva, Davis and Kelly", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "sometimes", + "category": "ten", + "price": 155.4, + "stock_quantity": 456 + }, + "customer": { + "name": "Nathan Tucker", + "age": 31, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "natural_query": "List all customers and their total order value for Roberts-Lopez.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Roberts-Lopez' GROUP BY c.customer_id", + "company": { + "name": "Roberts-Lopez", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "none", + "category": "ok", + "price": 963.65, + "stock_quantity": 31 + }, + "customer": { + "name": "Joseph Summers", + "age": 57, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Fuller and Sons", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "political", + "category": "allow", + "price": 976.71, + "stock_quantity": 191 + }, + "customer": { + "name": "Megan Brooks", + "age": 46, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Stevens-Williams", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "south", + "category": "him", + "price": 379.47, + "stock_quantity": 844 + }, + "customer": { + "name": "Timothy Conrad", + "age": 38, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Clarke, Carroll and Baker", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "physical", + "category": "message", + "price": 173.51, + "stock_quantity": 410 + }, + "customer": { + "name": "Gloria Bradshaw", + "age": 72, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Mcguire-Best", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "behind", + "category": "newspaper", + "price": 108.51, + "stock_quantity": 156 + }, + "customer": { + "name": "David Knox", + "age": 25, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Terry PLC", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "expert", + "category": "window", + "price": 847.21, + "stock_quantity": 11 + }, + "customer": { + "name": "Michael Cook", + "age": 24, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Payne-Garrett", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "national", + "category": "since", + "price": 918.6, + "stock_quantity": 102 + }, + "customer": { + "name": "Nicole Edwards", + "age": 29, + "country": "Timor-Leste" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcclain-Herman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcclain-Herman", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "no", + "category": "bed", + "price": 622.97, + "stock_quantity": 697 + }, + "customer": { + "name": "Brandon Hart", + "age": 77, + "country": "Belize" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lin, Carey and Gardner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lin, Carey and Gardner", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "arrive", + "category": "far", + "price": 43.44, + "stock_quantity": 535 + }, + "customer": { + "name": "Veronica Nelson", + "age": 53, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Hamilton-Salinas", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "front", + "category": "say", + "price": 883.94, + "stock_quantity": 529 + }, + "customer": { + "name": "Anna Parker", + "age": 63, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Lee LLC", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "lay", + "category": "talk", + "price": 171.06, + "stock_quantity": 738 + }, + "customer": { + "name": "Tina Taylor", + "age": 30, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Duffy and Sons", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "want", + "category": "majority", + "price": 310.16, + "stock_quantity": 400 + }, + "customer": { + "name": "Tonya Bryant", + "age": 53, + "country": "United Kingdom" + } + }, + { + "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'", + "company": { + "name": "Walker Inc", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "become", + "category": "Democrat", + "price": 28.53, + "stock_quantity": 166 + }, + "customer": { + "name": "Kyle Maddox", + "age": 32, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Gibson-Olson", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "rate", + "category": "near", + "price": 364.98, + "stock_quantity": 854 + }, + "customer": { + "name": "Philip Gillespie", + "age": 30, + "country": "Aruba" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Williams, Simmons and Mckinney for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams, Simmons and Mckinney'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams, Simmons and Mckinney", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "growth", + "category": "sing", + "price": 427.41, + "stock_quantity": 492 + }, + "customer": { + "name": "Robert Ramos", + "age": 33, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Simmons LLC", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "response", + "category": "second", + "price": 566.79, + "stock_quantity": 743 + }, + "customer": { + "name": "Amy Rodriguez", + "age": 56, + "country": "Pakistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor-Deleon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor-Deleon", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "happy", + "category": "commercial", + "price": 495.81, + "stock_quantity": 300 + }, + "customer": { + "name": "Katherine Clarke", + "age": 32, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Lowe and Sons", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "simple", + "category": "near", + "price": 894.96, + "stock_quantity": 827 + }, + "customer": { + "name": "Denise Sanchez", + "age": 65, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Page, George and Smith", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "former", + "category": "quality", + "price": 357.31, + "stock_quantity": 490 + }, + "customer": { + "name": "Patrick Harvey", + "age": 62, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Best-Gonzales", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "show", + "category": "pressure", + "price": 799.68, + "stock_quantity": 290 + }, + "customer": { + "name": "Kristin Browning", + "age": 44, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Martin and Sons", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "care", + "category": "south", + "price": 532.82, + "stock_quantity": 240 + }, + "customer": { + "name": "Susan Williams", + "age": 24, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Fields-Sullivan", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "structure", + "category": "dream", + "price": 810.37, + "stock_quantity": 817 + }, + "customer": { + "name": "Brittney Howard", + "age": 48, + "country": "Montenegro" + } + }, + { + "natural_query": "List all products of Logan, White and Gordon ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Logan, White and Gordon' ORDER BY price DESC", + "company": { + "name": "Logan, White and Gordon", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "nothing", + "category": "condition", + "price": 477.93, + "stock_quantity": 282 + }, + "customer": { + "name": "Natasha Steele", + "age": 58, + "country": "Venezuela" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gross Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gross Group", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "civil", + "category": "land", + "price": 499.31, + "stock_quantity": 969 + }, + "customer": { + "name": "Dr. Lisa Taylor", + "age": 52, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Mason, Mason and Vega", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "little", + "category": "accept", + "price": 576.06, + "stock_quantity": 374 + }, + "customer": { + "name": "Julie Smith", + "age": 55, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Lopez-White", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "significant", + "category": "particularly", + "price": 198.05, + "stock_quantity": 997 + }, + "customer": { + "name": "Jerome Adams", + "age": 40, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Mccoy Group", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "art", + "category": "fly", + "price": 714.05, + "stock_quantity": 942 + }, + "customer": { + "name": "Oscar Wood", + "age": 42, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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'", + "company": { + "name": "Williams PLC", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "ten", + "category": "article", + "price": 434.04, + "stock_quantity": 197 + }, + "customer": { + "name": "Samantha Dorsey", + "age": 57, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Robertson-Burns", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "not", + "category": "population", + "price": 202.13, + "stock_quantity": 761 + }, + "customer": { + "name": "Krystal Wyatt", + "age": 77, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Aguirre, Gonzalez and Coleman", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "my", + "category": "if", + "price": 680.2, + "stock_quantity": 672 + }, + "customer": { + "name": "Patricia Blake", + "age": 37, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Smith, Peterson and Rangel", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "lose", + "category": "hospital", + "price": 308.97, + "stock_quantity": 783 + }, + "customer": { + "name": "Ashley Lopez", + "age": 36, + "country": "Angola" + } + }, + { + "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'", + "company": { + "name": "Diaz and Sons", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "city", + "category": "available", + "price": 634.06, + "stock_quantity": 852 + }, + "customer": { + "name": "Brandy White", + "age": 24, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Thompson, Miles and Garcia", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "hundred", + "category": "agent", + "price": 319.16, + "stock_quantity": 193 + }, + "customer": { + "name": "David Clark", + "age": 69, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Elliott, Douglas and Wright", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "sort", + "category": "those", + "price": 880.14, + "stock_quantity": 100 + }, + "customer": { + "name": "Meredith Taylor", + "age": 52, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Garcia, Moran and Brooks", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "society", + "category": "fear", + "price": 395.51, + "stock_quantity": 396 + }, + "customer": { + "name": "Kelsey Murphy", + "age": 64, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Johnson-Christian", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "somebody", + "category": "phone", + "price": 723.19, + "stock_quantity": 529 + }, + "customer": { + "name": "Rachel Benson", + "age": 47, + "country": "Thailand" + } + }, + { + "natural_query": "Show me all products in the pressure category with a price over $997.11.", + "sql_query": "SELECT * FROM products WHERE category = 'pressure' AND price > 997.11", + "company": { + "name": "Thomas, Rose and Nelson", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "item", + "category": "pressure", + "price": 997.11, + "stock_quantity": 167 + }, + "customer": { + "name": "Amy Hobbs", + "age": 34, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Garcia Inc", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "record", + "category": "else", + "price": 481.75, + "stock_quantity": 719 + }, + "customer": { + "name": "Deanna Stokes", + "age": 62, + "country": "United States Virgin Islands" + } + }, + { + "natural_query": "What is the average rating of all products for Martinez, Ford and Blanchard?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Martinez, Ford and Blanchard'", + "company": { + "name": "Martinez, Ford and Blanchard", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "represent", + "category": "seem", + "price": 562.82, + "stock_quantity": 830 + }, + "customer": { + "name": "Paul Day", + "age": 62, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Armstrong, Foster and Graves", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "interest", + "category": "to", + "price": 202.43, + "stock_quantity": 672 + }, + "customer": { + "name": "Frederick Carpenter", + "age": 46, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Nelson Ltd", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "if", + "category": "friend", + "price": 419.39, + "stock_quantity": 59 + }, + "customer": { + "name": "Joshua Lawrence", + "age": 62, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Luna, Burton and Kirk", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "production", + "category": "manager", + "price": 442.86, + "stock_quantity": 532 + }, + "customer": { + "name": "Zachary Murray", + "age": 31, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Bonilla LLC", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "my", + "category": "moment", + "price": 665.29, + "stock_quantity": 909 + }, + "customer": { + "name": "Michael Austin", + "age": 64, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Boyd-Gibson", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "line", + "category": "total", + "price": 984.53, + "stock_quantity": 930 + }, + "customer": { + "name": "Alyssa Smith", + "age": 68, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Wilson, Price and Smith", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "consider", + "category": "responsibility", + "price": 765.83, + "stock_quantity": 335 + }, + "customer": { + "name": "Thomas Avila", + "age": 32, + "country": "New Zealand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bush LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bush LLC", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "music", + "category": "woman", + "price": 615.91, + "stock_quantity": 731 + }, + "customer": { + "name": "Sara Alexander", + "age": 47, + "country": "Guadeloupe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson and Sons", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "a", + "category": "despite", + "price": 986.84, + "stock_quantity": 198 + }, + "customer": { + "name": "Thomas Chase", + "age": 66, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Mendez Ltd", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "spring", + "category": "table", + "price": 515.56, + "stock_quantity": 174 + }, + "customer": { + "name": "Krystal Ross", + "age": 36, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Young, Romero and Norris", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "man", + "category": "here", + "price": 847.84, + "stock_quantity": 75 + }, + "customer": { + "name": "Keith Price", + "age": 74, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Watkins, Williams and Bell", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "customer", + "category": "staff", + "price": 269.38, + "stock_quantity": 123 + }, + "customer": { + "name": "Michael Moore", + "age": 48, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Thomas, Hoffman and Huffman", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "anyone", + "category": "pick", + "price": 634.58, + "stock_quantity": 792 + }, + "customer": { + "name": "Christina Hebert", + "age": 54, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Barber, Fisher and Hernandez", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "decide", + "category": "fish", + "price": 383.99, + "stock_quantity": 498 + }, + "customer": { + "name": "Allison Richardson", + "age": 21, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Smith-Whitehead", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "word", + "category": "difference", + "price": 585.46, + "stock_quantity": 819 + }, + "customer": { + "name": "Daniel Taylor", + "age": 56, + "country": "Taiwan" + } + }, + { + "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'", + "company": { + "name": "Graham, Perez and Murphy", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "able", + "category": "friend", + "price": 650.32, + "stock_quantity": 461 + }, + "customer": { + "name": "Mary Walker", + "age": 63, + "country": "Russian Federation" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Smith, Roberts and Butler?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Smith, Roberts and Butler' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Smith, Roberts and Butler", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "try", + "category": "create", + "price": 830.81, + "stock_quantity": 436 + }, + "customer": { + "name": "Mary Hernandez", + "age": 63, + "country": "Afghanistan" + } + }, + { + "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'", + "company": { + "name": "Riddle-Carroll", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "night", + "category": "class", + "price": 139.67, + "stock_quantity": 932 + }, + "customer": { + "name": "Guy Schmitt", + "age": 47, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Vega PLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "true", + "category": "past", + "price": 493.04, + "stock_quantity": 328 + }, + "customer": { + "name": "William Jackson Jr.", + "age": 24, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Mcneil LLC", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "chance", + "category": "reach", + "price": 691.58, + "stock_quantity": 949 + }, + "customer": { + "name": "Jesse Day", + "age": 36, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Powell, Mullins and Bennett", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "baby", + "category": "eight", + "price": 728.61, + "stock_quantity": 521 + }, + "customer": { + "name": "Carrie Walker", + "age": 41, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Raymond, Nelson and Roberts", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "positive", + "category": "character", + "price": 268.75, + "stock_quantity": 652 + }, + "customer": { + "name": "Tammy Olson", + "age": 78, + "country": "Belgium" + } + }, + { + "natural_query": "What is the average price of all products for Henderson, Williamson and Tucker?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Henderson, Williamson and Tucker'", + "company": { + "name": "Henderson, Williamson and Tucker", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "drop", + "category": "region", + "price": 661.2, + "stock_quantity": 549 + }, + "customer": { + "name": "Stephanie Brooks", + "age": 50, + "country": "Lebanon" + } + }, + { + "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'", + "company": { + "name": "Smith, Morris and Roy", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "thank", + "category": "week", + "price": 237.71, + "stock_quantity": 290 + }, + "customer": { + "name": "Larry Dickerson", + "age": 53, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Perry and Sons", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "around", + "category": "again", + "price": 625.96, + "stock_quantity": 972 + }, + "customer": { + "name": "Megan Thomas", + "age": 29, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Bell and Sons", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "then", + "category": "it", + "price": 725.64, + "stock_quantity": 179 + }, + "customer": { + "name": "John Burton", + "age": 26, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Flynn-Lawson", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "score", + "category": "new", + "price": 525.42, + "stock_quantity": 932 + }, + "customer": { + "name": "Katrina Wheeler", + "age": 47, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Sanchez-Perez", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "student", + "category": "region", + "price": 587.23, + "stock_quantity": 497 + }, + "customer": { + "name": "Emily Smith", + "age": 43, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Diaz, Turner and Snyder", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "former", + "category": "move", + "price": 261.46, + "stock_quantity": 712 + }, + "customer": { + "name": "Michael Thompson", + "age": 60, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Lopez-Prince", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "spring", + "category": "final", + "price": 468.32, + "stock_quantity": 765 + }, + "customer": { + "name": "Kimberly Gonzalez", + "age": 73, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Durham-Frye", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "as", + "category": "light", + "price": 190.45, + "stock_quantity": 589 + }, + "customer": { + "name": "Christine Duncan", + "age": 28, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Lang, Bailey and Lee", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "card", + "category": "easy", + "price": 557.89, + "stock_quantity": 845 + }, + "customer": { + "name": "Sabrina Kelley", + "age": 55, + "country": "Malawi" + } + }, + { + "natural_query": "What are the top 7 products by customers for Clay and Sons this month?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Clay and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7", + "company": { + "name": "Clay and Sons", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "memory", + "category": "him", + "price": 10.39, + "stock_quantity": 33 + }, + "customer": { + "name": "David Rodriguez", + "age": 52, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Nelson-Clark", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "conference", + "category": "worry", + "price": 180.9, + "stock_quantity": 511 + }, + "customer": { + "name": "Kimberly Morris", + "age": 19, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Lawson LLC", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "trip", + "category": "wish", + "price": 262.36, + "stock_quantity": 872 + }, + "customer": { + "name": "Richard Gomez", + "age": 36, + "country": "Tanzania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fisher, Grimes and Page'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fisher, Grimes and Page", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "reveal", + "category": "improve", + "price": 410.76, + "stock_quantity": 69 + }, + "customer": { + "name": "Anita Phillips", + "age": 48, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Wells, Hart and Jackson", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "if", + "category": "president", + "price": 499.95, + "stock_quantity": 27 + }, + "customer": { + "name": "Matthew Ward", + "age": 46, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Pittman-Ortiz", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "box", + "category": "describe", + "price": 305.15, + "stock_quantity": 44 + }, + "customer": { + "name": "Jessica Frost DDS", + "age": 57, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Tyler, Thompson and Barry", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "worry", + "category": "crime", + "price": 848.87, + "stock_quantity": 614 + }, + "customer": { + "name": "Adam Rowe", + "age": 41, + "country": "Saint Barthelemy" + } + }, + { + "natural_query": "How many orders were placed for Williams LLC between 2023-12-08 and 2024-01-23?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams LLC' AND order_date BETWEEN '2023-12-08' AND '2024-01-23'", + "company": { + "name": "Williams LLC", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "day", + "category": "total", + "price": 327.51, + "stock_quantity": 923 + }, + "customer": { + "name": "Lori Villa", + "age": 29, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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'", + "company": { + "name": "Smith, Meza and Acosta", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "name", + "category": "coach", + "price": 428.03, + "stock_quantity": 620 + }, + "customer": { + "name": "Jonathan Castillo", + "age": 56, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "law", + "category": "car", + "price": 112.47, + "stock_quantity": 692 + }, + "customer": { + "name": "Christy Gray MD", + "age": 24, + "country": "Iceland" + } + }, + { + "natural_query": "What is the total sales for each country in Moreno LLC?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moreno LLC' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Moreno LLC", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "keep", + "category": "others", + "price": 642.2, + "stock_quantity": 235 + }, + "customer": { + "name": "Ann Smith", + "age": 54, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Johnson and Sons", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "direction", + "category": "fact", + "price": 463.71, + "stock_quantity": 295 + }, + "customer": { + "name": "Linda Ellis", + "age": 67, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Jensen Ltd", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "short", + "category": "today", + "price": 559.13, + "stock_quantity": 505 + }, + "customer": { + "name": "Donald Cameron", + "age": 35, + "country": "French Guiana" + } + }, + { + "natural_query": "Show me all products in the happy category with a price over $165.9.", + "sql_query": "SELECT * FROM products WHERE category = 'happy' AND price > 165.9", + "company": { + "name": "Perez, Woodard and Gutierrez", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "evidence", + "category": "happy", + "price": 165.9, + "stock_quantity": 478 + }, + "customer": { + "name": "Daniel Snow", + "age": 31, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Sharp, Mills and Williams", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "night", + "category": "character", + "price": 944.49, + "stock_quantity": 882 + }, + "customer": { + "name": "Jessica Bruce", + "age": 77, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Velazquez-Perez", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "third", + "category": "purpose", + "price": 921.94, + "stock_quantity": 900 + }, + "customer": { + "name": "Madison Cowan", + "age": 53, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Andrade Group", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "morning", + "category": "senior", + "price": 259.58, + "stock_quantity": 310 + }, + "customer": { + "name": "Alice Barnett", + "age": 34, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Andersen Ltd", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "order", + "category": "item", + "price": 192.7, + "stock_quantity": 74 + }, + "customer": { + "name": "Brian Mathis", + "age": 80, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Diaz-Church", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "population", + "category": "environmental", + "price": 308.39, + "stock_quantity": 255 + }, + "customer": { + "name": "Steven Chapman", + "age": 19, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Baker, Schaefer and Davis", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "impact", + "category": "responsibility", + "price": 25.6, + "stock_quantity": 175 + }, + "customer": { + "name": "John Moore", + "age": 58, + "country": "Faroe Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Newton PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Newton PLC", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "lose", + "category": "recognize", + "price": 664.82, + "stock_quantity": 916 + }, + "customer": { + "name": "Carlos Phillips", + "age": 35, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Rodriguez and Sons", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "attorney", + "category": "two", + "price": 97.88, + "stock_quantity": 524 + }, + "customer": { + "name": "Dave Hudson", + "age": 36, + "country": "Saint Martin" + } + }, + { + "natural_query": "What is the average quantity of all products for Baker Ltd?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Baker Ltd'", + "company": { + "name": "Baker Ltd", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "six", + "category": "computer", + "price": 651.61, + "stock_quantity": 833 + }, + "customer": { + "name": "Stephanie Carroll", + "age": 68, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Dodson-Martinez", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "evidence", + "category": "cause", + "price": 38.15, + "stock_quantity": 140 + }, + "customer": { + "name": "Matthew Freeman", + "age": 25, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Allen, Ryan and Smith", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "visit", + "category": "still", + "price": 453.65, + "stock_quantity": 670 + }, + "customer": { + "name": "Anthony Jacobson", + "age": 67, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Wilson-Payne", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "better", + "category": "suddenly", + "price": 291.68, + "stock_quantity": 413 + }, + "customer": { + "name": "Shelby Cameron DDS", + "age": 53, + "country": "Botswana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sullivan Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sullivan Group", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "whether", + "category": "yeah", + "price": 406.97, + "stock_quantity": 834 + }, + "customer": { + "name": "Brendan Oliver", + "age": 40, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Martin-Schneider", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "property", + "category": "without", + "price": 204.5, + "stock_quantity": 494 + }, + "customer": { + "name": "Michael Hansen DDS", + "age": 78, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Castaneda Group", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "assume", + "category": "opportunity", + "price": 374.84, + "stock_quantity": 159 + }, + "customer": { + "name": "Kathleen Weber", + "age": 20, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Shaw, Barnes and Hanson", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "present", + "category": "water", + "price": 322.38, + "stock_quantity": 98 + }, + "customer": { + "name": "Lori Jarvis", + "age": 26, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Vaughan PLC", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "American", + "category": "similar", + "price": 429.66, + "stock_quantity": 649 + }, + "customer": { + "name": "Megan Yoder", + "age": 20, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Anderson PLC", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "miss", + "category": "thing", + "price": 50.68, + "stock_quantity": 676 + }, + "customer": { + "name": "Nathaniel Smith", + "age": 47, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Morris-Johnson", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "heart", + "category": "exactly", + "price": 957.61, + "stock_quantity": 522 + }, + "customer": { + "name": "Jessica Wheeler", + "age": 35, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Walker-Adams", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "gun", + "category": "part", + "price": 981.78, + "stock_quantity": 59 + }, + "customer": { + "name": "Jessica Grant", + "age": 73, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Jones, Friedman and Rivas", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "sport", + "category": "whatever", + "price": 996.05, + "stock_quantity": 694 + }, + "customer": { + "name": "Donald Mendez", + "age": 47, + "country": "Timor-Leste" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Jackson, Lam and Kim for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jackson, Lam and Kim'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jackson, Lam and Kim", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "beyond", + "category": "become", + "price": 263.26, + "stock_quantity": 734 + }, + "customer": { + "name": "Dana Smith", + "age": 47, + "country": "Kuwait" + } + }, + { + "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'", + "company": { + "name": "Dominguez, Robinson and Whitney", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "should", + "category": "hotel", + "price": 692.2, + "stock_quantity": 158 + }, + "customer": { + "name": "Luis Butler", + "age": 40, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Hall PLC", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "arm", + "category": "food", + "price": 938.06, + "stock_quantity": 16 + }, + "customer": { + "name": "Melissa Cole", + "age": 35, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Watson-Hines", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "industry", + "category": "player", + "price": 919.22, + "stock_quantity": 554 + }, + "customer": { + "name": "Curtis Waters", + "age": 43, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Marshall, Singleton and Newton", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "Democrat", + "category": "including", + "price": 798.55, + "stock_quantity": 430 + }, + "customer": { + "name": "Stephen Holmes", + "age": 64, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Walker, Ramirez and Little", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "director", + "category": "because", + "price": 691.94, + "stock_quantity": 839 + }, + "customer": { + "name": "Alan Hayden", + "age": 22, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Mendez, Burke and Myers", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "player", + "category": "great", + "price": 389.48, + "stock_quantity": 254 + }, + "customer": { + "name": "Wayne Smith", + "age": 36, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Peterson, Marshall and Harrison", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "sure", + "category": "huge", + "price": 801.45, + "stock_quantity": 812 + }, + "customer": { + "name": "Tracy Garcia", + "age": 30, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Kelley, Smith and Medina", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "response", + "category": "reality", + "price": 567.49, + "stock_quantity": 989 + }, + "customer": { + "name": "Catherine Rodriguez", + "age": 24, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Garcia PLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "meet", + "category": "fill", + "price": 74.04, + "stock_quantity": 314 + }, + "customer": { + "name": "Bryan Marshall", + "age": 20, + "country": "Burundi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Graham, Peterson and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Graham, Peterson and Brown", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "wind", + "category": "maybe", + "price": 809.8, + "stock_quantity": 441 + }, + "customer": { + "name": "Jorge Cooley", + "age": 71, + "country": "Zambia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sanders LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sanders LLC", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "partner", + "category": "defense", + "price": 755.77, + "stock_quantity": 927 + }, + "customer": { + "name": "Patrick Case", + "age": 35, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Johnson-Parker", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "occur", + "category": "stage", + "price": 162.29, + "stock_quantity": 198 + }, + "customer": { + "name": "Michael Kelly", + "age": 33, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Lam Group", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "where", + "category": "beyond", + "price": 70.46, + "stock_quantity": 946 + }, + "customer": { + "name": "Ethan Beasley", + "age": 67, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Jimenez and Sons", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "vote", + "category": "machine", + "price": 783.13, + "stock_quantity": 278 + }, + "customer": { + "name": "Terry Harrell", + "age": 53, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Lynn, Tran and Stone", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "structure", + "category": "about", + "price": 13.7, + "stock_quantity": 931 + }, + "customer": { + "name": "Sarah Thompson", + "age": 44, + "country": "Botswana" + } + }, + { + "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'", + "company": { + "name": "Park, Campbell and Rivera", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "similar", + "category": "community", + "price": 401.72, + "stock_quantity": 721 + }, + "customer": { + "name": "Kevin Moon", + "age": 67, + "country": "Andorra" + } + }, + { + "natural_query": "List all products of Price, Lee and Peters ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Price, Lee and Peters' ORDER BY stock_quantity DESC", + "company": { + "name": "Price, Lee and Peters", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "little", + "category": "medical", + "price": 71.87, + "stock_quantity": 366 + }, + "customer": { + "name": "Amy Lewis", + "age": 59, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Morgan, Allen and Baker", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "low", + "category": "especially", + "price": 125.32, + "stock_quantity": 609 + }, + "customer": { + "name": "Michael Ballard", + "age": 40, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Carter-Washington", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "others", + "category": "speech", + "price": 979.73, + "stock_quantity": 349 + }, + "customer": { + "name": "David Olsen", + "age": 29, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Garcia, Robinson and Garcia", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "and", + "category": "sense", + "price": 698.27, + "stock_quantity": 326 + }, + "customer": { + "name": "Thomas Kennedy", + "age": 32, + "country": "Singapore" + } + }, + { + "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'", + "company": { + "name": "French-Hunt", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "institution", + "category": "time", + "price": 403.94, + "stock_quantity": 279 + }, + "customer": { + "name": "Gregory Sanders", + "age": 66, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Brown-Hamilton", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "perhaps", + "category": "color", + "price": 346.43, + "stock_quantity": 512 + }, + "customer": { + "name": "Brian Williams", + "age": 47, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Reed Group", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "ever", + "category": "out", + "price": 740.12, + "stock_quantity": 887 + }, + "customer": { + "name": "Brenda Allen", + "age": 60, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Branch Inc", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "finish", + "category": "hand", + "price": 380.69, + "stock_quantity": 550 + }, + "customer": { + "name": "Jeffrey Day", + "age": 28, + "country": "Latvia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sanders, Johnson and Williamson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sanders, Johnson and Williamson", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "black", + "category": "head", + "price": 95.96, + "stock_quantity": 172 + }, + "customer": { + "name": "Mark Smith", + "age": 78, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Ingram, Beard and Murray", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "current", + "category": "available", + "price": 387.37, + "stock_quantity": 505 + }, + "customer": { + "name": "Mason Jones", + "age": 50, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Peterson, Mitchell and Kennedy", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "produce", + "category": "blue", + "price": 127.42, + "stock_quantity": 36 + }, + "customer": { + "name": "Karen Sanchez", + "age": 31, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Miller Inc", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "prove", + "category": "forward", + "price": 580.65, + "stock_quantity": 407 + }, + "customer": { + "name": "John Henderson", + "age": 57, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Boyd, Arnold and Garcia", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "former", + "category": "economy", + "price": 963.52, + "stock_quantity": 887 + }, + "customer": { + "name": "Brittney Ho", + "age": 68, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Stout-Fletcher", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "box", + "category": "option", + "price": 128.04, + "stock_quantity": 189 + }, + "customer": { + "name": "Dwayne Jennings", + "age": 48, + "country": "Panama" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis-Anderson", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "affect", + "category": "blue", + "price": 199.08, + "stock_quantity": 612 + }, + "customer": { + "name": "Samuel Thomas", + "age": 72, + "country": "Ghana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez, Lindsey and Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez, Lindsey and Campbell", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "buy", + "category": "establish", + "price": 410.12, + "stock_quantity": 126 + }, + "customer": { + "name": "Rodney Rodriguez", + "age": 32, + "country": "Argentina" + } + }, + { + "natural_query": "List all customers and their total order value for Long-Barker.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Long-Barker' GROUP BY c.customer_id", + "company": { + "name": "Long-Barker", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "data", + "category": "visit", + "price": 901.78, + "stock_quantity": 670 + }, + "customer": { + "name": "Mrs. Mary Sanford", + "age": 80, + "country": "Trinidad and Tobago" + } + }, + { + "natural_query": "List all products of Bean-Wong ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Bean-Wong' ORDER BY stock_quantity DESC", + "company": { + "name": "Bean-Wong", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "strong", + "category": "natural", + "price": 554.69, + "stock_quantity": 528 + }, + "customer": { + "name": "Miguel Rojas", + "age": 52, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Parker, Chandler and Wright", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "Mr", + "category": "feel", + "price": 741.1, + "stock_quantity": 929 + }, + "customer": { + "name": "Michael Stephenson", + "age": 62, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Drake LLC", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "wall", + "category": "performance", + "price": 724.88, + "stock_quantity": 91 + }, + "customer": { + "name": "Jeffery Swanson", + "age": 68, + "country": "North Macedonia" + } + }, + { + "natural_query": "List all products of Jacobs, Morris and Smith ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Jacobs, Morris and Smith' ORDER BY stock_quantity DESC", + "company": { + "name": "Jacobs, Morris and Smith", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "parent", + "category": "free", + "price": 681.58, + "stock_quantity": 402 + }, + "customer": { + "name": "Courtney Mcgee", + "age": 24, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Carr-Johnson", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "poor", + "category": "benefit", + "price": 129.77, + "stock_quantity": 48 + }, + "customer": { + "name": "Thomas Robinson", + "age": 21, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Scott-Dixon", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "house", + "category": "should", + "price": 996.05, + "stock_quantity": 87 + }, + "customer": { + "name": "Jeffrey Young", + "age": 24, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Galvan Inc", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "data", + "category": "score", + "price": 848.09, + "stock_quantity": 713 + }, + "customer": { + "name": "Jennifer Osborne", + "age": 19, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Johnson-Ross", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "fall", + "category": "share", + "price": 327.96, + "stock_quantity": 58 + }, + "customer": { + "name": "Mrs. Annette Rodriguez", + "age": 76, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Maddox PLC", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "cause", + "category": "someone", + "price": 913.9, + "stock_quantity": 243 + }, + "customer": { + "name": "Daniel Jacobs", + "age": 76, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Greene Ltd", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "against", + "category": "year", + "price": 67.33, + "stock_quantity": 582 + }, + "customer": { + "name": "Matthew Hoover", + "age": 58, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Turner, Grimes and Powell", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "finally", + "category": "name", + "price": 565.03, + "stock_quantity": 818 + }, + "customer": { + "name": "Russell Rios", + "age": 33, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Collins, Bailey and Banks", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "card", + "category": "ago", + "price": 508.4, + "stock_quantity": 124 + }, + "customer": { + "name": "Emily Rice", + "age": 25, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Lam-Cochran", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "each", + "category": "moment", + "price": 638.19, + "stock_quantity": 788 + }, + "customer": { + "name": "John Taylor", + "age": 68, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Bradley, Harrison and Patel", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "product", + "category": "three", + "price": 419.63, + "stock_quantity": 776 + }, + "customer": { + "name": "Bryan Keller", + "age": 49, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Boyd, Clay and Taylor", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "society", + "category": "name", + "price": 992.17, + "stock_quantity": 689 + }, + "customer": { + "name": "Robert Simmons", + "age": 49, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Ware Group", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "artist", + "category": "message", + "price": 217.33, + "stock_quantity": 882 + }, + "customer": { + "name": "Stephen Burke", + "age": 22, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Gilmore Inc", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "paper", + "category": "other", + "price": 738.11, + "stock_quantity": 15 + }, + "customer": { + "name": "Suzanne Bullock", + "age": 37, + "country": "Liechtenstein" + } + }, + { + "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'", + "company": { + "name": "Smith, Smith and Wells", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "pretty", + "category": "how", + "price": 870.8, + "stock_quantity": 883 + }, + "customer": { + "name": "Nicole Stokes", + "age": 33, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Sutton-Mosley", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "drive", + "category": "along", + "price": 809.06, + "stock_quantity": 771 + }, + "customer": { + "name": "Susan Washington", + "age": 64, + "country": "Lesotho" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Scott, Harrison and Stokes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Scott, Harrison and Stokes", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "network", + "category": "produce", + "price": 149.2, + "stock_quantity": 693 + }, + "customer": { + "name": "Connie Berger", + "age": 36, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Thomas, Adams and Watkins", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "late", + "category": "stay", + "price": 720.85, + "stock_quantity": 137 + }, + "customer": { + "name": "John Foster", + "age": 71, + "country": "Congo" + } + }, + { + "natural_query": "What are the top 8 products by revenue for Quinn PLC last quarter?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Quinn PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8", + "company": { + "name": "Quinn PLC", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "system", + "category": "former", + "price": 64.29, + "stock_quantity": 657 + }, + "customer": { + "name": "Jeremy Kemp", + "age": 46, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Smith, Davenport and Green", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "computer", + "category": "kitchen", + "price": 994.65, + "stock_quantity": 172 + }, + "customer": { + "name": "Michelle Lang", + "age": 67, + "country": "Ghana" + } + }, + { + "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'", + "company": { + "name": "Whitney, Stewart and Hale", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "player", + "category": "defense", + "price": 871.72, + "stock_quantity": 33 + }, + "customer": { + "name": "Ashley Carter", + "age": 69, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Wiley-Murphy", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "task", + "category": "million", + "price": 381.99, + "stock_quantity": 715 + }, + "customer": { + "name": "Jennifer Holland", + "age": 49, + "country": "Papua New Guinea" + } + }, + { + "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'", + "company": { + "name": "Pace and Sons", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "from", + "category": "consumer", + "price": 415.77, + "stock_quantity": 216 + }, + "customer": { + "name": "Ashlee Ortiz", + "age": 42, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Griffin Ltd", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "should", + "category": "name", + "price": 680.31, + "stock_quantity": 103 + }, + "customer": { + "name": "Miranda Bell", + "age": 53, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Vega, Lopez and Tucker", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "nearly", + "category": "PM", + "price": 640.74, + "stock_quantity": 906 + }, + "customer": { + "name": "Maureen Perez", + "age": 19, + "country": "India" + } + }, + { + "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'", + "company": { + "name": "Smith, Diaz and Martinez", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "ask", + "category": "care", + "price": 212.72, + "stock_quantity": 885 + }, + "customer": { + "name": "Savannah Gallegos", + "age": 52, + "country": "Georgia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Solis, Turner and Reed for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Solis, Turner and Reed'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Solis, Turner and Reed", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "happy", + "category": "research", + "price": 790.13, + "stock_quantity": 188 + }, + "customer": { + "name": "Kelly Arnold DDS", + "age": 69, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Oconnell-Griffin", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "rule", + "category": "line", + "price": 91.58, + "stock_quantity": 316 + }, + "customer": { + "name": "Samantha Jackson", + "age": 54, + "country": "Botswana" + } + }, + { + "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'", + "company": { + "name": "Alvarez-Park", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "money", + "category": "safe", + "price": 241.44, + "stock_quantity": 299 + }, + "customer": { + "name": "Justin Ross", + "age": 41, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Mcfarland, Lutz and Hoffman", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "building", + "category": "Mr", + "price": 501.65, + "stock_quantity": 643 + }, + "customer": { + "name": "Hailey Martinez", + "age": 56, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Boyle LLC", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "act", + "category": "husband", + "price": 91.48, + "stock_quantity": 671 + }, + "customer": { + "name": "Richard Lewis", + "age": 33, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Marsh, White and Rhodes", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "hit", + "category": "large", + "price": 875.01, + "stock_quantity": 81 + }, + "customer": { + "name": "Lisa Joseph", + "age": 68, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Graham, Ward and Brown", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "establish", + "category": "prove", + "price": 182.19, + "stock_quantity": 857 + }, + "customer": { + "name": "Andres Andrews", + "age": 19, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Alexander, Knight and Gomez", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "cell", + "category": "thus", + "price": 674.58, + "stock_quantity": 534 + }, + "customer": { + "name": "Thomas Taylor", + "age": 78, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Romero, Davis and Haynes", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "class", + "category": "morning", + "price": 164.47, + "stock_quantity": 556 + }, + "customer": { + "name": "Steven Melton", + "age": 75, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Martinez PLC", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "pretty", + "category": "wear", + "price": 586.04, + "stock_quantity": 527 + }, + "customer": { + "name": "Amanda Williams", + "age": 73, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Davis Inc", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "these", + "category": "between", + "price": 930.17, + "stock_quantity": 197 + }, + "customer": { + "name": "Allison Vega", + "age": 52, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Giles, Smith and Lucas", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "site", + "category": "cut", + "price": 85.87, + "stock_quantity": 619 + }, + "customer": { + "name": "James Salazar", + "age": 23, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Hamilton-Henderson", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "serious", + "category": "indeed", + "price": 776.48, + "stock_quantity": 920 + }, + "customer": { + "name": "Hayley Lynch", + "age": 30, + "country": "Azerbaijan" + } + }, + { + "natural_query": "List all products of House-King ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'House-King' ORDER BY stock_quantity ASC", + "company": { + "name": "House-King", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "ground", + "category": "before", + "price": 582.34, + "stock_quantity": 54 + }, + "customer": { + "name": "Seth Houston", + "age": 53, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Mcgee-Shelton", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "personal", + "category": "international", + "price": 685.87, + "stock_quantity": 665 + }, + "customer": { + "name": "Richard Clark", + "age": 71, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Phillips, Wright and Bailey", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "ground", + "category": "air", + "price": 143.95, + "stock_quantity": 939 + }, + "customer": { + "name": "Natasha Meyer", + "age": 75, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Dickerson-Wright", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "radio", + "category": "head", + "price": 833.93, + "stock_quantity": 26 + }, + "customer": { + "name": "Jeremy Williams", + "age": 45, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "George, Brewer and Schneider", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "work", + "category": "word", + "price": 548.06, + "stock_quantity": 591 + }, + "customer": { + "name": "Sarah Juarez", + "age": 54, + "country": "Slovenia" + } + }, + { + "natural_query": "List all customers and their total order value for Bennett Inc.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Bennett Inc' GROUP BY c.customer_id", + "company": { + "name": "Bennett Inc", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "off", + "category": "first", + "price": 556.37, + "stock_quantity": 393 + }, + "customer": { + "name": "Gail Maddox", + "age": 75, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Hartman-Hensley", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "face", + "category": "reduce", + "price": 405.01, + "stock_quantity": 235 + }, + "customer": { + "name": "Shannon Padilla", + "age": 51, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Davis-Munoz", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "right", + "category": "each", + "price": 541.36, + "stock_quantity": 803 + }, + "customer": { + "name": "Brooke Powell", + "age": 39, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Lee-Klein", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "dark", + "category": "how", + "price": 68.08, + "stock_quantity": 795 + }, + "customer": { + "name": "Tiffany Lambert", + "age": 79, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Turner, Kelly and Smith", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "seek", + "category": "station", + "price": 199.34, + "stock_quantity": 862 + }, + "customer": { + "name": "Mathew Martinez", + "age": 52, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Le PLC", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "day", + "category": "baby", + "price": 680.11, + "stock_quantity": 94 + }, + "customer": { + "name": "Crystal Adams", + "age": 64, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Weber, Sanchez and Moore", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "my", + "category": "respond", + "price": 130.65, + "stock_quantity": 843 + }, + "customer": { + "name": "Miss Nicole Lopez", + "age": 78, + "country": "Saint Barthelemy" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mendoza, Jones and Burns'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mendoza, Jones and Burns", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "individual", + "category": "why", + "price": 396.14, + "stock_quantity": 622 + }, + "customer": { + "name": "Heather Howard", + "age": 18, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Delgado, Lewis and Turner", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "available", + "category": "town", + "price": 141.37, + "stock_quantity": 887 + }, + "customer": { + "name": "Amy Durham", + "age": 64, + "country": "New Caledonia" + } + }, + { + "natural_query": "How many orders were placed for Moore-Powers between 2024-02-13 and 2024-05-30?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore-Powers' AND order_date BETWEEN '2024-02-13' AND '2024-05-30'", + "company": { + "name": "Moore-Powers", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "energy", + "category": "foreign", + "price": 143.39, + "stock_quantity": 120 + }, + "customer": { + "name": "Tonya Soto", + "age": 60, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Cooley Ltd", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "everything", + "category": "for", + "price": 527.85, + "stock_quantity": 476 + }, + "customer": { + "name": "Veronica Parker", + "age": 33, + "country": "Seychelles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis-Phillips'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis-Phillips", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "reason", + "category": "maintain", + "price": 868.59, + "stock_quantity": 464 + }, + "customer": { + "name": "Francisco Hill", + "age": 60, + "country": "Panama" + } + }, + { + "natural_query": "How many orders were placed for Jones Inc between 2024-06-21 and 2024-06-25?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jones Inc' AND order_date BETWEEN '2024-06-21' AND '2024-06-25'", + "company": { + "name": "Jones Inc", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "strategy", + "category": "main", + "price": 920.87, + "stock_quantity": 194 + }, + "customer": { + "name": "William Davis", + "age": 22, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Jackson, Sampson and Johnson", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "blood", + "category": "imagine", + "price": 463.92, + "stock_quantity": 44 + }, + "customer": { + "name": "Matthew Carter", + "age": 44, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Estrada Ltd", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "detail", + "category": "discover", + "price": 26.24, + "stock_quantity": 786 + }, + "customer": { + "name": "Austin Bridges", + "age": 31, + "country": "China" + } + }, + { + "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'", + "company": { + "name": "Alvarez and Sons", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "before", + "category": "offer", + "price": 856.88, + "stock_quantity": 252 + }, + "customer": { + "name": "Lisa Evans", + "age": 68, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Adams Group", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "process", + "category": "run", + "price": 896.56, + "stock_quantity": 836 + }, + "customer": { + "name": "Rebecca Montgomery", + "age": 31, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Boone, Duncan and Carson", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "involve", + "category": "beyond", + "price": 787.19, + "stock_quantity": 583 + }, + "customer": { + "name": "Erika Mora", + "age": 60, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Bradley-Perry", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "because", + "category": "respond", + "price": 630.59, + "stock_quantity": 883 + }, + "customer": { + "name": "Nicole Garcia", + "age": 41, + "country": "Mexico" + } + }, + { + "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'", + "company": { + "name": "Jackson Ltd", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "what", + "category": "decide", + "price": 808.64, + "stock_quantity": 691 + }, + "customer": { + "name": "Kelly Davis", + "age": 32, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Barker, Lopez and Kennedy", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "agent", + "category": "still", + "price": 489.8, + "stock_quantity": 956 + }, + "customer": { + "name": "Jamie Sullivan", + "age": 70, + "country": "Namibia" + } + }, + { + "natural_query": "How many orders were placed for Burch, Torres and Mosley between 2024-07-27 and 2024-08-09?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Burch, Torres and Mosley' AND order_date BETWEEN '2024-07-27' AND '2024-08-09'", + "company": { + "name": "Burch, Torres and Mosley", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "ask", + "category": "central", + "price": 727.92, + "stock_quantity": 204 + }, + "customer": { + "name": "Joshua Murillo", + "age": 25, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Moore and Sons", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "better", + "category": "scientist", + "price": 558.4, + "stock_quantity": 729 + }, + "customer": { + "name": "Paul Newton", + "age": 45, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Reilly, Baker and Acosta", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "open", + "category": "vote", + "price": 965.59, + "stock_quantity": 429 + }, + "customer": { + "name": "Kimberly Hopkins", + "age": 52, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Mccoy-Conley", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "argue", + "category": "often", + "price": 661.29, + "stock_quantity": 162 + }, + "customer": { + "name": "Elizabeth Willis", + "age": 30, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Huff-Haynes", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "rather", + "category": "understand", + "price": 274.38, + "stock_quantity": 117 + }, + "customer": { + "name": "April Jones", + "age": 59, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Gonzalez-Schroeder", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "environmental", + "category": "adult", + "price": 307.5, + "stock_quantity": 800 + }, + "customer": { + "name": "Drew Holloway", + "age": 76, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nash, Mclean and Ross'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nash, Mclean and Ross", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "beautiful", + "category": "according", + "price": 337.87, + "stock_quantity": 546 + }, + "customer": { + "name": "Susan Gallegos", + "age": 65, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Porter Ltd", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "pull", + "category": "property", + "price": 808.38, + "stock_quantity": 871 + }, + "customer": { + "name": "Jonathan Dorsey", + "age": 37, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Hunter, Mckee and Smith", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "bit", + "category": "understand", + "price": 682.21, + "stock_quantity": 300 + }, + "customer": { + "name": "Shannon Chen", + "age": 65, + "country": "Moldova" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Russell-Kane'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Russell-Kane", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "hard", + "category": "front", + "price": 605.92, + "stock_quantity": 436 + }, + "customer": { + "name": "Sara Gibson", + "age": 68, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Hughes Ltd", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "can", + "category": "find", + "price": 407.86, + "stock_quantity": 693 + }, + "customer": { + "name": "Nathaniel Beasley", + "age": 47, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Mullins-King", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "Republican", + "category": "top", + "price": 624.99, + "stock_quantity": 787 + }, + "customer": { + "name": "Nicole Cole", + "age": 59, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Keith-Martin", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "easy", + "category": "approach", + "price": 937.7, + "stock_quantity": 287 + }, + "customer": { + "name": "Shannon Stevens", + "age": 77, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilkins, Graves and Nguyen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilkins, Graves and Nguyen", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "back", + "category": "whom", + "price": 175.94, + "stock_quantity": 473 + }, + "customer": { + "name": "Shari Sullivan", + "age": 27, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Kidd Ltd", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "ahead", + "category": "professor", + "price": 29.71, + "stock_quantity": 233 + }, + "customer": { + "name": "Erica Randall", + "age": 78, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Baker-Hernandez", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "painting", + "category": "need", + "price": 168.45, + "stock_quantity": 865 + }, + "customer": { + "name": "Neil Brewer", + "age": 58, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Shelton, Gordon and Mcdonald", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "since", + "category": "feel", + "price": 290.61, + "stock_quantity": 354 + }, + "customer": { + "name": "Aaron Davis", + "age": 24, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Murray-Baker", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "religious", + "category": "own", + "price": 225.45, + "stock_quantity": 66 + }, + "customer": { + "name": "Sean Clark", + "age": 65, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "White-Odonnell", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "free", + "category": "mean", + "price": 680.27, + "stock_quantity": 833 + }, + "customer": { + "name": "Kyle Warner", + "age": 68, + "country": "Central African Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chan LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chan LLC", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "arrive", + "category": "war", + "price": 192.53, + "stock_quantity": 490 + }, + "customer": { + "name": "Danielle Parsons", + "age": 39, + "country": "United Kingdom" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Walker, Davis and Henderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Walker, Davis and Henderson", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "item", + "category": "property", + "price": 986.87, + "stock_quantity": 543 + }, + "customer": { + "name": "Linda Obrien", + "age": 22, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gallegos-Wilson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gallegos-Wilson", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "owner", + "category": "strategy", + "price": 101.07, + "stock_quantity": 659 + }, + "customer": { + "name": "Calvin Medina", + "age": 77, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Wood-Hill", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "friend", + "category": "capital", + "price": 904.94, + "stock_quantity": 938 + }, + "customer": { + "name": "Lisa Stevens", + "age": 76, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Shaw Group", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "piece", + "category": "mother", + "price": 171.95, + "stock_quantity": 62 + }, + "customer": { + "name": "Jose Mitchell", + "age": 69, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Freeman, Williamson and Rogers", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "Mrs", + "category": "fire", + "price": 258.83, + "stock_quantity": 866 + }, + "customer": { + "name": "Samuel Carney", + "age": 23, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Wheeler, Henry and Baker", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "paper", + "category": "line", + "price": 193.61, + "stock_quantity": 783 + }, + "customer": { + "name": "Angela Gates", + "age": 51, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Flores, Villarreal and Mason", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "power", + "category": "look", + "price": 14.57, + "stock_quantity": 486 + }, + "customer": { + "name": "Mrs. Joyce Phillips", + "age": 27, + "country": "South Africa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Combs-Stephens'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Combs-Stephens", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "television", + "category": "politics", + "price": 540.07, + "stock_quantity": 200 + }, + "customer": { + "name": "Carlos Richards", + "age": 66, + "country": "Western Sahara" + } + }, + { + "natural_query": "What is the total sales for each country in Holder, Owen and George?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Holder, Owen and George' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Holder, Owen and George", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "building", + "category": "real", + "price": 140.51, + "stock_quantity": 103 + }, + "customer": { + "name": "Linda Owens", + "age": 20, + "country": "Guadeloupe" + } + }, + { + "natural_query": "What is the minimum rating of all products for Foster-Nunez?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Foster-Nunez'", + "company": { + "name": "Foster-Nunez", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "performance", + "category": "get", + "price": 509.8, + "stock_quantity": 486 + }, + "customer": { + "name": "Kevin Brooks", + "age": 77, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Poole Inc", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "fast", + "category": "stock", + "price": 488.54, + "stock_quantity": 273 + }, + "customer": { + "name": "Bob Rogers", + "age": 76, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Harris, Ponce and Wilson", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "industry", + "category": "woman", + "price": 339.4, + "stock_quantity": 253 + }, + "customer": { + "name": "James Carey", + "age": 18, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Rose, Martin and Johnson", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "land", + "category": "course", + "price": 852.04, + "stock_quantity": 745 + }, + "customer": { + "name": "Joshua Cuevas", + "age": 28, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Dawson LLC", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "know", + "category": "put", + "price": 805.88, + "stock_quantity": 93 + }, + "customer": { + "name": "Kevin Jensen", + "age": 23, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Anderson-Ward", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "cup", + "category": "raise", + "price": 518.81, + "stock_quantity": 166 + }, + "customer": { + "name": "Mrs. Tonya Browning", + "age": 27, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Paul Ltd", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "wonder", + "category": "actually", + "price": 230.29, + "stock_quantity": 993 + }, + "customer": { + "name": "Daniel Henderson", + "age": 56, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Palmer Group", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "here", + "category": "boy", + "price": 769.27, + "stock_quantity": 272 + }, + "customer": { + "name": "Kim Butler", + "age": 71, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Ibarra-Marsh", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "her", + "category": "strategy", + "price": 516.18, + "stock_quantity": 247 + }, + "customer": { + "name": "Dwayne Olsen", + "age": 60, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Estrada-Lyons", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "call", + "category": "two", + "price": 756.51, + "stock_quantity": 256 + }, + "customer": { + "name": "Paul Dominguez", + "age": 41, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Bowman-White", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "spend", + "category": "on", + "price": 291.01, + "stock_quantity": 709 + }, + "customer": { + "name": "Ryan Walsh", + "age": 67, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Ramirez Inc", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "represent", + "category": "series", + "price": 696.51, + "stock_quantity": 427 + }, + "customer": { + "name": "Shelia Clark", + "age": 78, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Stevenson Ltd", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "number", + "category": "his", + "price": 864.14, + "stock_quantity": 265 + }, + "customer": { + "name": "Dominic Johnson", + "age": 20, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Hogan PLC", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "region", + "category": "test", + "price": 632.33, + "stock_quantity": 28 + }, + "customer": { + "name": "Bethany Foley", + "age": 36, + "country": "Thailand" + } + }, + { + "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'", + "company": { + "name": "Scott Group", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "serious", + "category": "woman", + "price": 821.39, + "stock_quantity": 950 + }, + "customer": { + "name": "William Rodriguez", + "age": 52, + "country": "Congo" + } + }, + { + "natural_query": "List all products of Brennan, Butler and Davis ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Brennan, Butler and Davis' ORDER BY price DESC", + "company": { + "name": "Brennan, Butler and Davis", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "management", + "category": "American", + "price": 300.66, + "stock_quantity": 984 + }, + "customer": { + "name": "Andre Moran", + "age": 54, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Christian-Mathews", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "fight", + "category": "girl", + "price": 545.98, + "stock_quantity": 450 + }, + "customer": { + "name": "Rhonda Robinson", + "age": 52, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Jones LLC", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "form", + "category": "off", + "price": 549.31, + "stock_quantity": 71 + }, + "customer": { + "name": "Sandra Sutton", + "age": 62, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Schwartz, Cruz and Martinez", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "dog", + "category": "sort", + "price": 900.79, + "stock_quantity": 599 + }, + "customer": { + "name": "Sabrina Gutierrez", + "age": 66, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Montgomery and Sons", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "how", + "category": "begin", + "price": 52.69, + "stock_quantity": 531 + }, + "customer": { + "name": "Paul Harmon", + "age": 31, + "country": "Bulgaria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mejia Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mejia Ltd", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "language", + "category": "most", + "price": 554.99, + "stock_quantity": 494 + }, + "customer": { + "name": "Rhonda Villa", + "age": 27, + "country": "Malaysia" + } + }, + { + "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'", + "company": { + "name": "Mayo, Abbott and Arroyo", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "author", + "category": "nature", + "price": 245.67, + "stock_quantity": 155 + }, + "customer": { + "name": "Terri Harper", + "age": 29, + "country": "Guernsey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Vargas Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Vargas Group", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "up", + "category": "senior", + "price": 498.93, + "stock_quantity": 130 + }, + "customer": { + "name": "Carol Glass", + "age": 22, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Ellis, Cunningham and Hernandez", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "lose", + "category": "represent", + "price": 124.18, + "stock_quantity": 304 + }, + "customer": { + "name": "Charles Spears", + "age": 74, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Ward-Foster", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "beat", + "category": "official", + "price": 118.83, + "stock_quantity": 197 + }, + "customer": { + "name": "Amanda Wise", + "age": 61, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Kelley Inc", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "whom", + "category": "option", + "price": 237.8, + "stock_quantity": 710 + }, + "customer": { + "name": "Steven Sanchez", + "age": 23, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Hart Ltd", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "check", + "category": "site", + "price": 339.74, + "stock_quantity": 271 + }, + "customer": { + "name": "Sherry White", + "age": 74, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Hansen-Wilson", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "hard", + "category": "close", + "price": 769.57, + "stock_quantity": 29 + }, + "customer": { + "name": "Tanya Romero", + "age": 67, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "partner", + "category": "dog", + "price": 869.02, + "stock_quantity": 205 + }, + "customer": { + "name": "Michelle Sanchez", + "age": 63, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Munoz-Williams", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "soldier", + "category": "drop", + "price": 528.23, + "stock_quantity": 416 + }, + "customer": { + "name": "Joseph Rodriguez", + "age": 25, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Mitchell Ltd", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "accept", + "category": "writer", + "price": 993.61, + "stock_quantity": 53 + }, + "customer": { + "name": "Lauren Adams MD", + "age": 20, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Lee Group", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "part", + "category": "necessary", + "price": 227.7, + "stock_quantity": 881 + }, + "customer": { + "name": "Terry Pham", + "age": 63, + "country": "Iceland" + } + }, + { + "natural_query": "What is the total profit for each category in Rios, Stout and Campbell?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rios, Stout and Campbell' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Rios, Stout and Campbell", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "few", + "category": "body", + "price": 564.79, + "stock_quantity": 800 + }, + "customer": { + "name": "Dr. Victoria Yoder", + "age": 36, + "country": "Seychelles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carpenter, Lee and Perez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carpenter, Lee and Perez", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "other", + "category": "but", + "price": 24.18, + "stock_quantity": 369 + }, + "customer": { + "name": "Sheryl Santos", + "age": 25, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Fields-Valencia", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "another", + "category": "follow", + "price": 905.47, + "stock_quantity": 99 + }, + "customer": { + "name": "Robert Krueger", + "age": 71, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Ramirez Inc", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "big", + "category": "pass", + "price": 703.29, + "stock_quantity": 346 + }, + "customer": { + "name": "Christine Dean", + "age": 41, + "country": "New Zealand" + } + }, + { + "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'", + "company": { + "name": "Huff, Wang and Cooper", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "theory", + "category": "career", + "price": 897.85, + "stock_quantity": 581 + }, + "customer": { + "name": "John Morton", + "age": 70, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Key, Miller and Coleman", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "unit", + "category": "adult", + "price": 809.82, + "stock_quantity": 631 + }, + "customer": { + "name": "Emily Smith", + "age": 73, + "country": "Czech Republic" + } + }, + { + "natural_query": "What is the total sales for each country in Munoz Inc?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Munoz Inc' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Munoz Inc", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "body", + "category": "per", + "price": 109.37, + "stock_quantity": 107 + }, + "customer": { + "name": "Michael Lara", + "age": 39, + "country": "Ukraine" + } + }, + { + "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'", + "company": { + "name": "Dodson, Lopez and Howell", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "offer", + "category": "blue", + "price": 25.93, + "stock_quantity": 449 + }, + "customer": { + "name": "Jennifer Walters", + "age": 78, + "country": "Maldives" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ruiz-Mcgrath'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ruiz-Mcgrath", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "lot", + "category": "buy", + "price": 512.62, + "stock_quantity": 231 + }, + "customer": { + "name": "Linda Flores", + "age": 30, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Lewis, Nelson and Morrison", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "leader", + "category": "agree", + "price": 368.58, + "stock_quantity": 822 + }, + "customer": { + "name": "Mary Williams", + "age": 33, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Burgess-Taylor", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "mother", + "category": "others", + "price": 199.73, + "stock_quantity": 143 + }, + "customer": { + "name": "Krystal Tucker", + "age": 18, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Stewart, Thomas and Montgomery", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "stand", + "category": "many", + "price": 913.34, + "stock_quantity": 168 + }, + "customer": { + "name": "Thomas Castillo", + "age": 79, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Henry-Carson", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "travel", + "category": "style", + "price": 314.54, + "stock_quantity": 552 + }, + "customer": { + "name": "Raymond Parks", + "age": 31, + "country": "Honduras" + } + }, + { + "natural_query": "List all products of Bailey LLC ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Bailey LLC' ORDER BY stock_quantity DESC", + "company": { + "name": "Bailey LLC", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "force", + "category": "west", + "price": 621.35, + "stock_quantity": 993 + }, + "customer": { + "name": "Blake Hamilton", + "age": 22, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Rodriguez Inc", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "grow", + "category": "anything", + "price": 595.8, + "stock_quantity": 302 + }, + "customer": { + "name": "Matthew Lynch", + "age": 42, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Campbell-Ramirez", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "boy", + "category": "attorney", + "price": 662.25, + "stock_quantity": 714 + }, + "customer": { + "name": "Jonathan Gould", + "age": 65, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Hutchinson-Young", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "produce", + "category": "room", + "price": 904.25, + "stock_quantity": 540 + }, + "customer": { + "name": "Melody Frey", + "age": 60, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Shaffer-Lynch", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "raise", + "category": "type", + "price": 344.08, + "stock_quantity": 821 + }, + "customer": { + "name": "Tony Rodriguez", + "age": 71, + "country": "Wallis and Futuna" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ruiz-Arnold'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ruiz-Arnold", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "house", + "category": "unit", + "price": 620.22, + "stock_quantity": 190 + }, + "customer": { + "name": "Michael Mckay", + "age": 58, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Francis, Collins and Thomas", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "sometimes", + "category": "must", + "price": 338.59, + "stock_quantity": 959 + }, + "customer": { + "name": "John Lewis", + "age": 22, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Ayala-Rivera", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "find", + "category": "method", + "price": 73.68, + "stock_quantity": 883 + }, + "customer": { + "name": "Vincent Hunt", + "age": 79, + "country": "Somalia" + } + }, + { + "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'", + "company": { + "name": "Oconnell, Cervantes and Reynolds", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "and", + "category": "though", + "price": 385.19, + "stock_quantity": 678 + }, + "customer": { + "name": "Nicole Erickson", + "age": 66, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Kidd, Conley and Allen", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "fine", + "category": "tax", + "price": 534.66, + "stock_quantity": 88 + }, + "customer": { + "name": "Jessica Bryant", + "age": 23, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Callahan, Thompson and Campbell", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "building", + "category": "term", + "price": 361.7, + "stock_quantity": 78 + }, + "customer": { + "name": "Matthew Gallagher", + "age": 65, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Zimmerman-Morales", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "today", + "category": "might", + "price": 990.11, + "stock_quantity": 22 + }, + "customer": { + "name": "Jenna Graves", + "age": 53, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Rogers LLC", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "base", + "category": "institution", + "price": 468.32, + "stock_quantity": 837 + }, + "customer": { + "name": "Mitchell Davenport", + "age": 23, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Tran-Thompson", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "himself", + "category": "memory", + "price": 276.78, + "stock_quantity": 89 + }, + "customer": { + "name": "Ann Wright", + "age": 21, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Parks, Levine and Murray", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "bring", + "category": "generation", + "price": 215.48, + "stock_quantity": 779 + }, + "customer": { + "name": "Shannon Bowen", + "age": 69, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Elliott, Davis and Bailey", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "daughter", + "category": "family", + "price": 837.57, + "stock_quantity": 950 + }, + "customer": { + "name": "Amanda Spears", + "age": 20, + "country": "Dominican Republic" + } + }, + { + "natural_query": "How many orders were placed for Erickson PLC between 2024-01-20 and 2024-07-14?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Erickson PLC' AND order_date BETWEEN '2024-01-20' AND '2024-07-14'", + "company": { + "name": "Erickson PLC", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "receive", + "category": "high", + "price": 875.67, + "stock_quantity": 675 + }, + "customer": { + "name": "Samuel Cook", + "age": 74, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Gonzales-Monroe", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "industry", + "category": "real", + "price": 369.68, + "stock_quantity": 600 + }, + "customer": { + "name": "Dawn Chavez", + "age": 64, + "country": "Pitcairn Islands" + } + }, + { + "natural_query": "List all customers and their total order value for Odom, Waller and Hartman.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Odom, Waller and Hartman' GROUP BY c.customer_id", + "company": { + "name": "Odom, Waller and Hartman", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "there", + "category": "law", + "price": 178.31, + "stock_quantity": 296 + }, + "customer": { + "name": "Cynthia Whitney", + "age": 78, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Lane, Beck and Henderson", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "marriage", + "category": "finally", + "price": 879.26, + "stock_quantity": 25 + }, + "customer": { + "name": "Erica Jones", + "age": 58, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Hanna, Williams and Baldwin", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "research", + "category": "house", + "price": 846.01, + "stock_quantity": 280 + }, + "customer": { + "name": "Jose Gentry", + "age": 58, + "country": "United Arab Emirates" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Molina, Mccarthy and Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Molina, Mccarthy and Campbell", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "sing", + "category": "represent", + "price": 317.99, + "stock_quantity": 84 + }, + "customer": { + "name": "Michael Garrison", + "age": 55, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Merritt-Snow", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "just", + "category": "life", + "price": 250.91, + "stock_quantity": 94 + }, + "customer": { + "name": "Joshua Moore", + "age": 78, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Keller, Robinson and Jennings", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "child", + "category": "seem", + "price": 433.05, + "stock_quantity": 322 + }, + "customer": { + "name": "Steven Turner", + "age": 68, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Campbell, Gonzalez and Rios", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "near", + "category": "knowledge", + "price": 612.06, + "stock_quantity": 40 + }, + "customer": { + "name": "Anthony Carter", + "age": 66, + "country": "Rwanda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chase-Roy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chase-Roy", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "final", + "category": "subject", + "price": 154.92, + "stock_quantity": 432 + }, + "customer": { + "name": "Bryan Horne", + "age": 40, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Smith, Green and Salas", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "only", + "category": "dog", + "price": 853.44, + "stock_quantity": 981 + }, + "customer": { + "name": "Caitlin Williams", + "age": 76, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Shea, Haas and Vincent", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "green", + "category": "evidence", + "price": 941.01, + "stock_quantity": 35 + }, + "customer": { + "name": "Katie Bowen", + "age": 57, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Matthews-Rivera", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "happen", + "category": "much", + "price": 426.94, + "stock_quantity": 677 + }, + "customer": { + "name": "Mary Hogan", + "age": 72, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Parker and Sons", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "green", + "category": "common", + "price": 438.91, + "stock_quantity": 283 + }, + "customer": { + "name": "Angela Adams", + "age": 63, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Maynard LLC", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "series", + "category": "leave", + "price": 288.52, + "stock_quantity": 525 + }, + "customer": { + "name": "Steven Lopez", + "age": 26, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "democratic", + "category": "camera", + "price": 280.19, + "stock_quantity": 582 + }, + "customer": { + "name": "Jaime Rodgers", + "age": 71, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Oconnor-Torres", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "along", + "category": "perform", + "price": 502.09, + "stock_quantity": 287 + }, + "customer": { + "name": "Dale Rodriguez", + "age": 46, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Armstrong, Taylor and Haas", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "former", + "category": "break", + "price": 83.35, + "stock_quantity": 619 + }, + "customer": { + "name": "Andrew Cooper", + "age": 36, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Fox-Morris", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "enough", + "category": "at", + "price": 917.34, + "stock_quantity": 498 + }, + "customer": { + "name": "Adam Castillo", + "age": 24, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Lopez Ltd", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "must", + "category": "yet", + "price": 720.19, + "stock_quantity": 591 + }, + "customer": { + "name": "Austin Smith", + "age": 52, + "country": "Afghanistan" + } + }, + { + "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'", + "company": { + "name": "Freeman-Carlson", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "group", + "category": "lose", + "price": 630.76, + "stock_quantity": 734 + }, + "customer": { + "name": "Tricia Hood", + "age": 58, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Howard-Reynolds", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "contain", + "category": "exist", + "price": 347.91, + "stock_quantity": 801 + }, + "customer": { + "name": "Linda Miller", + "age": 61, + "country": "Saint Martin" + } + }, + { + "natural_query": "List all products of Bond-Hawkins ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Bond-Hawkins' ORDER BY rating ASC", + "company": { + "name": "Bond-Hawkins", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "answer", + "category": "show", + "price": 158.93, + "stock_quantity": 405 + }, + "customer": { + "name": "Robert Alexander", + "age": 63, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Vaughn Inc", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "culture", + "category": "night", + "price": 627.88, + "stock_quantity": 568 + }, + "customer": { + "name": "Christopher Ruiz", + "age": 58, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Lynch-Cooper", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "understand", + "category": "risk", + "price": 865.29, + "stock_quantity": 971 + }, + "customer": { + "name": "Allison Sherman", + "age": 46, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Curry-Fuller", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "but", + "category": "arm", + "price": 610.34, + "stock_quantity": 620 + }, + "customer": { + "name": "Kelsey Parsons", + "age": 58, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Day Ltd", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "often", + "category": "marriage", + "price": 217.62, + "stock_quantity": 137 + }, + "customer": { + "name": "James Keller", + "age": 56, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Herrera, Baker and Peck", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "so", + "category": "itself", + "price": 329.83, + "stock_quantity": 25 + }, + "customer": { + "name": "Elizabeth Lee", + "age": 52, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Michael Inc", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "land", + "category": "deep", + "price": 143.26, + "stock_quantity": 768 + }, + "customer": { + "name": "Stephanie Randolph", + "age": 20, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Collins-Fisher", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "degree", + "category": "reveal", + "price": 204.53, + "stock_quantity": 144 + }, + "customer": { + "name": "William Jenkins", + "age": 59, + "country": "Aruba" + } + }, + { + "natural_query": "List all products of Hartman and Sons ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Hartman and Sons' ORDER BY stock_quantity ASC", + "company": { + "name": "Hartman and Sons", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "prove", + "category": "early", + "price": 886.86, + "stock_quantity": 359 + }, + "customer": { + "name": "Amber Reed", + "age": 21, + "country": "New Caledonia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Cooper PLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cooper PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cooper PLC", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "simple", + "category": "whole", + "price": 127.68, + "stock_quantity": 1000 + }, + "customer": { + "name": "Monica Jones", + "age": 33, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Perez, Thompson and Lee", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "cover", + "category": "party", + "price": 802.9, + "stock_quantity": 732 + }, + "customer": { + "name": "Reginald Reed", + "age": 80, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Mcguire, Brown and White", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "guy", + "category": "reveal", + "price": 145.01, + "stock_quantity": 237 + }, + "customer": { + "name": "Sarah Combs", + "age": 18, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "natural_query": "How many orders were placed for Delgado Inc between 2023-11-03 and 2024-07-05?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Delgado Inc' AND order_date BETWEEN '2023-11-03' AND '2024-07-05'", + "company": { + "name": "Delgado Inc", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "matter", + "category": "management", + "price": 24.34, + "stock_quantity": 361 + }, + "customer": { + "name": "Benjamin Campbell", + "age": 19, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Montgomery, Wong and Wilson", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "create", + "category": "report", + "price": 265.87, + "stock_quantity": 446 + }, + "customer": { + "name": "Julie Wagner", + "age": 43, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Ramos LLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "worry", + "category": "suddenly", + "price": 823.49, + "stock_quantity": 10 + }, + "customer": { + "name": "Jonathan Wilson", + "age": 37, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Gay-Hurley", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "reach", + "category": "rise", + "price": 804.68, + "stock_quantity": 196 + }, + "customer": { + "name": "Joseph Taylor", + "age": 46, + "country": "Isle of Man" + } + }, + { + "natural_query": "What are the top 3 products by sales for Perez Ltd last quarter?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Perez Ltd' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3", + "company": { + "name": "Perez Ltd", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "share", + "category": "society", + "price": 293.59, + "stock_quantity": 807 + }, + "customer": { + "name": "Benjamin White", + "age": 73, + "country": "Tuvalu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson, Drake and Martinez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson, Drake and Martinez", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "discuss", + "category": "around", + "price": 839.82, + "stock_quantity": 788 + }, + "customer": { + "name": "Steven Booth", + "age": 29, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Willis-Hudson", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "hair", + "category": "suddenly", + "price": 546.63, + "stock_quantity": 155 + }, + "customer": { + "name": "Andrew Navarro", + "age": 55, + "country": "Isle of Man" + } + }, + { + "natural_query": "How many orders were placed for Haas-Smith between 2024-08-05 and 2024-08-18?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Haas-Smith' AND order_date BETWEEN '2024-08-05' AND '2024-08-18'", + "company": { + "name": "Haas-Smith", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "improve", + "category": "just", + "price": 307.08, + "stock_quantity": 284 + }, + "customer": { + "name": "Colin Jackson", + "age": 69, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Orozco LLC", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "thing", + "category": "several", + "price": 632.31, + "stock_quantity": 107 + }, + "customer": { + "name": "Gilbert Arnold", + "age": 73, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Greene Ltd", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "seat", + "category": "sing", + "price": 813.05, + "stock_quantity": 418 + }, + "customer": { + "name": "Kelly Lopez", + "age": 66, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Robinson, Morrow and Smith", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "whatever", + "category": "can", + "price": 318.21, + "stock_quantity": 417 + }, + "customer": { + "name": "Kevin Cantu", + "age": 61, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Conway, Lamb and Berry", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "debate", + "category": "product", + "price": 829.44, + "stock_quantity": 961 + }, + "customer": { + "name": "Mark Wright DDS", + "age": 52, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Ortiz, Nelson and Medina", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "fill", + "category": "east", + "price": 155.57, + "stock_quantity": 193 + }, + "customer": { + "name": "Devon Potter", + "age": 67, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Warner Ltd", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "father", + "category": "quality", + "price": 124.61, + "stock_quantity": 632 + }, + "customer": { + "name": "Adrian Davis", + "age": 53, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Higgins-Roberts", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "that", + "category": "minute", + "price": 898.87, + "stock_quantity": 998 + }, + "customer": { + "name": "Veronica Martin", + "age": 42, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Rodriguez LLC", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "quite", + "category": "four", + "price": 501.0, + "stock_quantity": 941 + }, + "customer": { + "name": "Angela Hunt", + "age": 69, + "country": "Malta" + } + }, + { + "natural_query": "What is the maximum price of all products for Chang-Smith?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Chang-Smith'", + "company": { + "name": "Chang-Smith", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "in", + "category": "mind", + "price": 779.5, + "stock_quantity": 690 + }, + "customer": { + "name": "Marissa Haynes", + "age": 66, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller-Morris'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller-Morris", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "pass", + "category": "describe", + "price": 769.02, + "stock_quantity": 641 + }, + "customer": { + "name": "Benjamin Zimmerman", + "age": 27, + "country": "Vietnam" + } + }, + { + "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'", + "company": { + "name": "Cooper, Rodriguez and Jones", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "choose", + "category": "could", + "price": 863.88, + "stock_quantity": 550 + }, + "customer": { + "name": "Chelsea Lyons", + "age": 26, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Ramos Inc", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "read", + "category": "billion", + "price": 296.91, + "stock_quantity": 648 + }, + "customer": { + "name": "Marcus Ramos", + "age": 50, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Sampson-Owens", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "candidate", + "category": "generation", + "price": 685.99, + "stock_quantity": 673 + }, + "customer": { + "name": "Crystal Christensen", + "age": 26, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Mason and Sons", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "ground", + "category": "size", + "price": 888.73, + "stock_quantity": 436 + }, + "customer": { + "name": "Stacey Anderson", + "age": 26, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Keller, Johnson and Espinoza", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "together", + "category": "write", + "price": 881.94, + "stock_quantity": 873 + }, + "customer": { + "name": "Steve Ellis", + "age": 46, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Dean-Diaz", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "talk", + "category": "western", + "price": 271.73, + "stock_quantity": 690 + }, + "customer": { + "name": "Colleen Powell", + "age": 35, + "country": "Zambia" + } + }, + { + "natural_query": "What are the top 6 products by orders for Robertson-Edwards all time?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Robertson-Edwards' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6", + "company": { + "name": "Robertson-Edwards", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "account", + "category": "some", + "price": 247.35, + "stock_quantity": 654 + }, + "customer": { + "name": "Virginia Malone", + "age": 55, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Brady-Washington", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "media", + "category": "majority", + "price": 934.88, + "stock_quantity": 655 + }, + "customer": { + "name": "Matthew Fox", + "age": 48, + "country": "Andorra" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Wilson-Avery for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson-Avery'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson-Avery", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "professor", + "category": "indeed", + "price": 970.25, + "stock_quantity": 773 + }, + "customer": { + "name": "Kimberly Floyd", + "age": 74, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Chandler-Gay", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "indicate", + "category": "ten", + "price": 395.32, + "stock_quantity": 259 + }, + "customer": { + "name": "Austin Harris", + "age": 32, + "country": "Guam" + } + }, + { + "natural_query": "What are the top 6 products by orders for Jones, White and Salazar this year?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jones, White and Salazar' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6", + "company": { + "name": "Jones, White and Salazar", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "small", + "category": "meet", + "price": 484.28, + "stock_quantity": 870 + }, + "customer": { + "name": "Michael Compton", + "age": 23, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Davidson-Gray", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "blood", + "category": "deal", + "price": 375.43, + "stock_quantity": 802 + }, + "customer": { + "name": "Mike Carroll", + "age": 64, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Stephens-Clark", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "economic", + "category": "fast", + "price": 458.65, + "stock_quantity": 959 + }, + "customer": { + "name": "Juan Reid", + "age": 44, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Campbell and Sons", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "beyond", + "category": "myself", + "price": 780.74, + "stock_quantity": 535 + }, + "customer": { + "name": "Dr. David Bailey", + "age": 35, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Greene-Martin", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "raise", + "category": "unit", + "price": 83.21, + "stock_quantity": 605 + }, + "customer": { + "name": "James Jacobs", + "age": 42, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Meyers, Vasquez and Wells", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "million", + "category": "figure", + "price": 636.6, + "stock_quantity": 661 + }, + "customer": { + "name": "Julia Davis", + "age": 29, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Howell, Davis and Schaefer", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "television", + "category": "true", + "price": 772.92, + "stock_quantity": 995 + }, + "customer": { + "name": "Clifford James", + "age": 42, + "country": "Antigua and Barbuda" + } + }, + { + "natural_query": "Show me all products in the physical category with a price over $432.15.", + "sql_query": "SELECT * FROM products WHERE category = 'physical' AND price > 432.15", + "company": { + "name": "Pierce LLC", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "both", + "category": "physical", + "price": 432.15, + "stock_quantity": 245 + }, + "customer": { + "name": "Dawn Kim", + "age": 29, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Cook and Sons", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "sell", + "category": "region", + "price": 493.87, + "stock_quantity": 96 + }, + "customer": { + "name": "Kenneth Adams", + "age": 68, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Smith-Robertson", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "specific", + "category": "challenge", + "price": 905.22, + "stock_quantity": 316 + }, + "customer": { + "name": "Mark Cross", + "age": 61, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Melton, Martinez and Nguyen", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "change", + "category": "throughout", + "price": 58.94, + "stock_quantity": 477 + }, + "customer": { + "name": "Edwin Lee", + "age": 58, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Hernandez, Cox and Trujillo", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "president", + "category": "politics", + "price": 77.39, + "stock_quantity": 622 + }, + "customer": { + "name": "James Massey", + "age": 69, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Moore, Greene and Holmes", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "that", + "category": "box", + "price": 715.33, + "stock_quantity": 997 + }, + "customer": { + "name": "Mallory Terrell", + "age": 58, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Brown PLC", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "his", + "category": "audience", + "price": 805.73, + "stock_quantity": 160 + }, + "customer": { + "name": "Nathan Lindsey Jr.", + "age": 44, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Berg-Hall", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "fund", + "category": "example", + "price": 278.95, + "stock_quantity": 322 + }, + "customer": { + "name": "James Jimenez", + "age": 67, + "country": "Guyana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Beasley-Harper'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Beasley-Harper", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "someone", + "category": "economy", + "price": 912.52, + "stock_quantity": 846 + }, + "customer": { + "name": "Patrick Powell", + "age": 54, + "country": "Reunion" + } + }, + { + "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'", + "company": { + "name": "Gray-Ramos", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "collection", + "category": "fly", + "price": 293.7, + "stock_quantity": 950 + }, + "customer": { + "name": "Amanda Miller", + "age": 42, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Woods-Morgan", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "time", + "category": "himself", + "price": 517.11, + "stock_quantity": 584 + }, + "customer": { + "name": "Leah Sullivan", + "age": 30, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Moran, Harris and Quinn", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "affect", + "category": "thing", + "price": 127.67, + "stock_quantity": 146 + }, + "customer": { + "name": "Katherine Salazar", + "age": 65, + "country": "Botswana" + } + }, + { + "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'", + "company": { + "name": "Johnson, Adams and White", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "purpose", + "category": "themselves", + "price": 723.16, + "stock_quantity": 181 + }, + "customer": { + "name": "Timothy Weber", + "age": 30, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Ferguson, Morales and Cardenas", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "quickly", + "category": "car", + "price": 127.35, + "stock_quantity": 471 + }, + "customer": { + "name": "Angel English", + "age": 60, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Patel and Sons", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "knowledge", + "category": "cut", + "price": 243.73, + "stock_quantity": 130 + }, + "customer": { + "name": "David Marquez", + "age": 24, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Barnett-Thompson", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "dinner", + "category": "brother", + "price": 675.24, + "stock_quantity": 273 + }, + "customer": { + "name": "Christopher Brown", + "age": 30, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Solis, Cisneros and Becker", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "past", + "category": "create", + "price": 781.42, + "stock_quantity": 958 + }, + "customer": { + "name": "Lauren Anderson DDS", + "age": 35, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Terry, Nelson and Gomez", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "recently", + "category": "once", + "price": 148.21, + "stock_quantity": 611 + }, + "customer": { + "name": "Dominic Griffin", + "age": 70, + "country": "Central African Republic" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in House-Kramer for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'House-Kramer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "House-Kramer", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "such", + "category": "smile", + "price": 473.37, + "stock_quantity": 251 + }, + "customer": { + "name": "Jon Sanchez", + "age": 36, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Franklin-Robinson", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "somebody", + "category": "share", + "price": 743.74, + "stock_quantity": 950 + }, + "customer": { + "name": "Michelle Herman", + "age": 65, + "country": "Uruguay" + } + }, + { + "natural_query": "What are the top 6 products by orders for Jackson Inc last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Jackson Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 6", + "company": { + "name": "Jackson Inc", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "wall", + "category": "choose", + "price": 425.18, + "stock_quantity": 254 + }, + "customer": { + "name": "Brian Walker", + "age": 65, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Beltran Ltd", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "future", + "category": "physical", + "price": 842.58, + "stock_quantity": 898 + }, + "customer": { + "name": "Karen Clark", + "age": 35, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Cain Ltd", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "wear", + "category": "across", + "price": 795.82, + "stock_quantity": 752 + }, + "customer": { + "name": "Brandon Myers", + "age": 24, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Bailey-Gordon", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "allow", + "category": "hundred", + "price": 520.72, + "stock_quantity": 988 + }, + "customer": { + "name": "Elizabeth Clark", + "age": 31, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Weaver-Hill", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "today", + "category": "decide", + "price": 812.02, + "stock_quantity": 118 + }, + "customer": { + "name": "Veronica Ford", + "age": 20, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Hale-Myers", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "director", + "category": "him", + "price": 974.78, + "stock_quantity": 686 + }, + "customer": { + "name": "Sydney Lopez", + "age": 72, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Tran, Campos and Marshall", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "will", + "category": "minute", + "price": 958.44, + "stock_quantity": 59 + }, + "customer": { + "name": "Maria Weiss", + "age": 64, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Thompson, Sutton and Brown", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "develop", + "category": "his", + "price": 760.73, + "stock_quantity": 520 + }, + "customer": { + "name": "Benjamin Allen", + "age": 60, + "country": "Mayotte" + } + }, + { + "natural_query": "What are the top 4 products by sales for Dalton, Sawyer and Burton this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dalton, Sawyer and Burton' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4", + "company": { + "name": "Dalton, Sawyer and Burton", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "even", + "category": "stage", + "price": 608.25, + "stock_quantity": 620 + }, + "customer": { + "name": "Richard Spencer", + "age": 28, + "country": "Somalia" + } + }, + { + "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'", + "company": { + "name": "Moore-Hooper", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "skin", + "category": "deal", + "price": 641.5, + "stock_quantity": 120 + }, + "customer": { + "name": "Sean Schwartz", + "age": 50, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Li, Terry and Farmer", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "social", + "category": "now", + "price": 823.86, + "stock_quantity": 783 + }, + "customer": { + "name": "Jason Wright", + "age": 74, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Baker-Smith", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "now", + "category": "world", + "price": 365.41, + "stock_quantity": 671 + }, + "customer": { + "name": "Jordan Moore", + "age": 68, + "country": "Saint Lucia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Graham, Savage and Williams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Graham, Savage and Williams", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "positive", + "category": "step", + "price": 607.2, + "stock_quantity": 213 + }, + "customer": { + "name": "Ryan Orr", + "age": 44, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Foster LLC", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "spend", + "category": "behavior", + "price": 752.37, + "stock_quantity": 239 + }, + "customer": { + "name": "Jerry Jackson", + "age": 36, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Thompson-Brown", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "economic", + "category": "popular", + "price": 707.85, + "stock_quantity": 973 + }, + "customer": { + "name": "Mario Goodwin", + "age": 20, + "country": "Venezuela" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'York, Perez and Hensley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "York, Perez and Hensley", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "find", + "category": "throughout", + "price": 328.16, + "stock_quantity": 66 + }, + "customer": { + "name": "Antonio Curry", + "age": 52, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Downs and Sons", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "office", + "category": "sign", + "price": 198.74, + "stock_quantity": 425 + }, + "customer": { + "name": "Ashley Simpson", + "age": 36, + "country": "Oman" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Doyle, Bolton and Lopez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Doyle, Bolton and Lopez", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "middle", + "category": "laugh", + "price": 414.97, + "stock_quantity": 512 + }, + "customer": { + "name": "Curtis Hunter", + "age": 23, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Jackson, Garcia and Sherman", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "food", + "category": "serve", + "price": 65.4, + "stock_quantity": 465 + }, + "customer": { + "name": "Ashley Patrick", + "age": 50, + "country": "Czech Republic" + } + }, + { + "natural_query": "Show me all products in the take category with a price over $967.86.", + "sql_query": "SELECT * FROM products WHERE category = 'take' AND price > 967.86", + "company": { + "name": "King-Ruiz", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "development", + "category": "take", + "price": 967.86, + "stock_quantity": 746 + }, + "customer": { + "name": "George Johnson", + "age": 20, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Cortez, Pierce and Hansen", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "challenge", + "category": "five", + "price": 281.12, + "stock_quantity": 950 + }, + "customer": { + "name": "John Meyer", + "age": 71, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcpherson, Brock and Drake'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcpherson, Brock and Drake", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "although", + "category": "allow", + "price": 901.09, + "stock_quantity": 127 + }, + "customer": { + "name": "Vanessa Riggs", + "age": 52, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Hall-Rowe", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "action", + "category": "star", + "price": 553.17, + "stock_quantity": 228 + }, + "customer": { + "name": "Nancy Bradley", + "age": 60, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Bryan, Conner and Martin", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "offer", + "category": "admit", + "price": 460.94, + "stock_quantity": 726 + }, + "customer": { + "name": "Nathan Tran", + "age": 20, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Jones-Smith", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "full", + "category": "probably", + "price": 278.11, + "stock_quantity": 947 + }, + "customer": { + "name": "Raymond Macdonald", + "age": 64, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Mcconnell, Hernandez and Cook", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "join", + "category": "professor", + "price": 614.54, + "stock_quantity": 358 + }, + "customer": { + "name": "Dustin Brown", + "age": 70, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Davis PLC", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "current", + "category": "reduce", + "price": 639.58, + "stock_quantity": 890 + }, + "customer": { + "name": "Diane Wagner", + "age": 31, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nguyen, Howard and Hanson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nguyen, Howard and Hanson", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "firm", + "category": "subject", + "price": 736.12, + "stock_quantity": 713 + }, + "customer": { + "name": "Brian Davies", + "age": 71, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Mills Ltd", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "measure", + "category": "operation", + "price": 112.05, + "stock_quantity": 251 + }, + "customer": { + "name": "Sara Lang", + "age": 40, + "country": "France" + } + }, + { + "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", + "company": { + "name": "White-Taylor", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "never", + "category": "inside", + "price": 825.63, + "stock_quantity": 693 + }, + "customer": { + "name": "Kirsten Allen", + "age": 72, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Craig and Sons", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "item", + "category": "at", + "price": 885.3, + "stock_quantity": 561 + }, + "customer": { + "name": "Amanda Dillon", + "age": 62, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Vance LLC", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "down", + "category": "material", + "price": 112.23, + "stock_quantity": 224 + }, + "customer": { + "name": "Kenneth Miller", + "age": 77, + "country": "France" + } + }, + { + "natural_query": "What is the total sales for each supplier in Olson Group?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Olson Group' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Olson Group", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "agent", + "category": "former", + "price": 410.33, + "stock_quantity": 727 + }, + "customer": { + "name": "Caleb Hanson", + "age": 50, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "May Inc", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "four", + "category": "mother", + "price": 938.4, + "stock_quantity": 903 + }, + "customer": { + "name": "Brian White", + "age": 35, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Morales, Fuentes and Howe", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "someone", + "category": "boy", + "price": 736.36, + "stock_quantity": 746 + }, + "customer": { + "name": "Brendan White", + "age": 60, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Rich-Petty", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "authority", + "category": "result", + "price": 628.65, + "stock_quantity": 777 + }, + "customer": { + "name": "David Salazar", + "age": 22, + "country": "Mayotte" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Casey-Gonzalez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Casey-Gonzalez", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "agent", + "category": "rise", + "price": 548.39, + "stock_quantity": 36 + }, + "customer": { + "name": "Heather Love", + "age": 63, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Jackson Group", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "organization", + "category": "wife", + "price": 712.72, + "stock_quantity": 16 + }, + "customer": { + "name": "Renee Johnson", + "age": 47, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Doyle Inc", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "describe", + "category": "will", + "price": 239.45, + "stock_quantity": 460 + }, + "customer": { + "name": "Jodi Porter", + "age": 25, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Scott PLC", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "life", + "category": "more", + "price": 150.98, + "stock_quantity": 125 + }, + "customer": { + "name": "Anthony Mccarthy", + "age": 47, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Miller Ltd", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "clear", + "category": "ten", + "price": 646.52, + "stock_quantity": 74 + }, + "customer": { + "name": "Michael Kim", + "age": 56, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Walter, Maddox and Smith", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "animal", + "category": "each", + "price": 884.04, + "stock_quantity": 180 + }, + "customer": { + "name": "Joseph Anderson", + "age": 72, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Henson, Prince and Hanson", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "laugh", + "category": "my", + "price": 103.25, + "stock_quantity": 732 + }, + "customer": { + "name": "Jason Bennett", + "age": 26, + "country": "Nicaragua" + } + }, + { + "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'", + "company": { + "name": "Nguyen Ltd", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "ready", + "category": "particular", + "price": 161.24, + "stock_quantity": 706 + }, + "customer": { + "name": "Margaret Gilbert", + "age": 40, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Campos, Duran and Williams", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "because", + "category": "mission", + "price": 794.33, + "stock_quantity": 41 + }, + "customer": { + "name": "Jennifer Romero", + "age": 26, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Davis, Tucker and Sullivan", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "today", + "category": "my", + "price": 998.31, + "stock_quantity": 824 + }, + "customer": { + "name": "Matthew Davila", + "age": 70, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Branch-Martin", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "religious", + "category": "dark", + "price": 471.28, + "stock_quantity": 785 + }, + "customer": { + "name": "Chloe Rodriguez", + "age": 29, + "country": "Mozambique" + } + }, + { + "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'", + "company": { + "name": "Young LLC", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "garden", + "category": "low", + "price": 394.19, + "stock_quantity": 664 + }, + "customer": { + "name": "Rebecca Martin", + "age": 56, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Sanchez PLC", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "actually", + "category": "meeting", + "price": 493.68, + "stock_quantity": 586 + }, + "customer": { + "name": "Kristina May", + "age": 28, + "country": "Vietnam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Doyle Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Doyle Ltd", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "hour", + "category": "use", + "price": 936.14, + "stock_quantity": 636 + }, + "customer": { + "name": "Andrea Adams", + "age": 42, + "country": "Chad" + } + }, + { + "natural_query": "Show me all products in the building category with a price over $595.08.", + "sql_query": "SELECT * FROM products WHERE category = 'building' AND price > 595.08", + "company": { + "name": "Berry, Lowery and Andrews", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "professional", + "category": "building", + "price": 595.08, + "stock_quantity": 77 + }, + "customer": { + "name": "Jennifer Nicholson", + "age": 48, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Soto, Miller and Macdonald", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "coach", + "category": "effort", + "price": 900.85, + "stock_quantity": 591 + }, + "customer": { + "name": "Molly Roberts", + "age": 36, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Cox, Nichols and Hanna", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "sign", + "category": "appear", + "price": 403.98, + "stock_quantity": 412 + }, + "customer": { + "name": "Heather Owen", + "age": 52, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Rivera and Sons", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "go", + "category": "book", + "price": 348.96, + "stock_quantity": 884 + }, + "customer": { + "name": "Tina Potter", + "age": 80, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Roach-Carpenter", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "loss", + "category": "model", + "price": 423.27, + "stock_quantity": 851 + }, + "customer": { + "name": "Matthew Gray", + "age": 36, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "natural_query": "Show me all products in the throughout category with a price over $504.37.", + "sql_query": "SELECT * FROM products WHERE category = 'throughout' AND price > 504.37", + "company": { + "name": "Johnson-Rose", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "little", + "category": "throughout", + "price": 504.37, + "stock_quantity": 377 + }, + "customer": { + "name": "Frank Fitzgerald", + "age": 60, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Lambert, Rodriguez and Spencer", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "well", + "category": "white", + "price": 693.62, + "stock_quantity": 576 + }, + "customer": { + "name": "David Valenzuela", + "age": 49, + "country": "United States Virgin Islands" + } + }, + { + "natural_query": "List all products of Garcia, Lawrence and Lozano ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Garcia, Lawrence and Lozano' ORDER BY stock_quantity DESC", + "company": { + "name": "Garcia, Lawrence and Lozano", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "face", + "category": "apply", + "price": 589.92, + "stock_quantity": 656 + }, + "customer": { + "name": "Luke Blair", + "age": 20, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Burgess PLC", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "interview", + "category": "dark", + "price": 316.79, + "stock_quantity": 473 + }, + "customer": { + "name": "Ashley Smith", + "age": 49, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Mcintosh-Williamson", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "operation", + "category": "alone", + "price": 913.03, + "stock_quantity": 657 + }, + "customer": { + "name": "Michael Weiss", + "age": 66, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Perry, Adams and Poole", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "kitchen", + "category": "leg", + "price": 152.24, + "stock_quantity": 856 + }, + "customer": { + "name": "Janet Ward", + "age": 36, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Woods, Mann and Ibarra", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "strategy", + "category": "participant", + "price": 127.54, + "stock_quantity": 447 + }, + "customer": { + "name": "Christine Wagner", + "age": 51, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Benson, Collins and Calhoun", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "side", + "category": "must", + "price": 693.4, + "stock_quantity": 739 + }, + "customer": { + "name": "Erik Rivera", + "age": 73, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Mcdowell-Fischer", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "above", + "category": "rate", + "price": 524.86, + "stock_quantity": 223 + }, + "customer": { + "name": "Dennis Smith", + "age": 18, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Webster-Warner", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "become", + "category": "bar", + "price": 789.32, + "stock_quantity": 364 + }, + "customer": { + "name": "Heather Colon", + "age": 70, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Crane, Robinson and Perry", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "pass", + "category": "walk", + "price": 720.5, + "stock_quantity": 999 + }, + "customer": { + "name": "Deanna Martin", + "age": 29, + "country": "Brazil" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hodge-Richards'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hodge-Richards", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "teacher", + "category": "right", + "price": 987.5, + "stock_quantity": 256 + }, + "customer": { + "name": "Michelle Davis", + "age": 64, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Davis PLC", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "building", + "category": "worry", + "price": 171.84, + "stock_quantity": 391 + }, + "customer": { + "name": "Stephanie Smith", + "age": 29, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Evans-Patton", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "smile", + "category": "color", + "price": 607.78, + "stock_quantity": 248 + }, + "customer": { + "name": "Ivan Watson", + "age": 47, + "country": "Zambia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson-Blackwell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson-Blackwell", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "trade", + "category": "measure", + "price": 953.42, + "stock_quantity": 378 + }, + "customer": { + "name": "Jill Hall", + "age": 21, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Munoz, Hernandez and Barrett", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "system", + "category": "well", + "price": 932.9, + "stock_quantity": 981 + }, + "customer": { + "name": "Arthur Silva", + "age": 57, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Garcia, Jackson and Thomas", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "similar", + "category": "treatment", + "price": 285.07, + "stock_quantity": 677 + }, + "customer": { + "name": "Brandon Wells", + "age": 33, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Wilson Inc", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "career", + "category": "model", + "price": 307.77, + "stock_quantity": 291 + }, + "customer": { + "name": "Vanessa Williams", + "age": 74, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Blair and Lee'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Blair and Lee", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "vote", + "category": "instead", + "price": 896.66, + "stock_quantity": 837 + }, + "customer": { + "name": "Todd Conner", + "age": 72, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Mcdaniel, Ramirez and Garcia", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "simple", + "category": "vote", + "price": 314.9, + "stock_quantity": 249 + }, + "customer": { + "name": "Cynthia Parker MD", + "age": 19, + "country": "Ethiopia" + } + }, + { + "natural_query": "How many orders were placed for Cook, Ramirez and Shaw between 2023-12-07 and 2024-02-18?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cook, Ramirez and Shaw' AND order_date BETWEEN '2023-12-07' AND '2024-02-18'", + "company": { + "name": "Cook, Ramirez and Shaw", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "fast", + "category": "voice", + "price": 270.24, + "stock_quantity": 530 + }, + "customer": { + "name": "John Parks", + "age": 59, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Tapia and Shaw", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "defense", + "category": "start", + "price": 438.94, + "stock_quantity": 744 + }, + "customer": { + "name": "Elijah Moses", + "age": 63, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Harper-Madden", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "building", + "category": "even", + "price": 715.1, + "stock_quantity": 277 + }, + "customer": { + "name": "Beth Weber", + "age": 45, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Moore, Ewing and Peters", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "husband", + "category": "young", + "price": 63.98, + "stock_quantity": 973 + }, + "customer": { + "name": "Brian Hayes", + "age": 20, + "country": "Greenland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Short-Gutierrez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Short-Gutierrez", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "become", + "category": "page", + "price": 475.66, + "stock_quantity": 714 + }, + "customer": { + "name": "Angel Golden", + "age": 33, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Mccarthy, Walker and Compton", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "unit", + "category": "campaign", + "price": 299.44, + "stock_quantity": 713 + }, + "customer": { + "name": "Mark Harris", + "age": 53, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Chavez-Owens", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "who", + "category": "medical", + "price": 16.11, + "stock_quantity": 348 + }, + "customer": { + "name": "Kayla Lam", + "age": 28, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Austin-Brewer", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "really", + "category": "wonder", + "price": 260.92, + "stock_quantity": 747 + }, + "customer": { + "name": "Brian David", + "age": 63, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Blair-Medina", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "choose", + "category": "instead", + "price": 586.86, + "stock_quantity": 789 + }, + "customer": { + "name": "Wendy Lopez", + "age": 32, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Hughes PLC", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "individual", + "category": "book", + "price": 474.92, + "stock_quantity": 482 + }, + "customer": { + "name": "Jason Hall", + "age": 38, + "country": "San Marino" + } + }, + { + "natural_query": "List all customers and their total order value for Moore Group.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Moore Group' GROUP BY c.customer_id", + "company": { + "name": "Moore Group", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "always", + "category": "area", + "price": 512.39, + "stock_quantity": 560 + }, + "customer": { + "name": "Jennifer Williams", + "age": 19, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "King, Thomas and Evans", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "than", + "category": "away", + "price": 181.72, + "stock_quantity": 261 + }, + "customer": { + "name": "Christina Burnett", + "age": 75, + "country": "New Caledonia" + } + }, + { + "natural_query": "How many orders were placed for Moore Ltd between 2024-07-29 and 2024-09-10?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore Ltd' AND order_date BETWEEN '2024-07-29' AND '2024-09-10'", + "company": { + "name": "Moore Ltd", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "activity", + "category": "conference", + "price": 616.45, + "stock_quantity": 431 + }, + "customer": { + "name": "Cathy Singh", + "age": 51, + "country": "Malta" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mitchell-Lopez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mitchell-Lopez", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "attention", + "category": "right", + "price": 282.15, + "stock_quantity": 490 + }, + "customer": { + "name": "Courtney Sanders", + "age": 50, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Payne-Snyder", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "consumer", + "category": "customer", + "price": 674.01, + "stock_quantity": 293 + }, + "customer": { + "name": "Gabriel Davies", + "age": 33, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Miller, Ford and Castillo", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "set", + "category": "eight", + "price": 510.49, + "stock_quantity": 69 + }, + "customer": { + "name": "Michelle Pearson", + "age": 47, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Townsend-Wood", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "before", + "category": "poor", + "price": 484.37, + "stock_quantity": 198 + }, + "customer": { + "name": "Joseph Browning", + "age": 51, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Snyder, Nelson and Graham", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "will", + "category": "risk", + "price": 944.74, + "stock_quantity": 860 + }, + "customer": { + "name": "Devon Torres", + "age": 37, + "country": "French Southern Territories" + } + }, + { + "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'", + "company": { + "name": "Santiago, Jones and Bradley", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "effort", + "category": "participant", + "price": 556.54, + "stock_quantity": 851 + }, + "customer": { + "name": "John Horton", + "age": 30, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Gardner Group", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "state", + "category": "garden", + "price": 242.54, + "stock_quantity": 0 + }, + "customer": { + "name": "Natasha Johnson", + "age": 32, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Lucas-Rodriguez", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "security", + "category": "else", + "price": 161.0, + "stock_quantity": 58 + }, + "customer": { + "name": "Michael Spencer", + "age": 55, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Grant-Rodriguez", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "other", + "category": "little", + "price": 765.72, + "stock_quantity": 314 + }, + "customer": { + "name": "Christopher Williams", + "age": 27, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Andrews, Evans and Powell", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "gas", + "category": "start", + "price": 958.69, + "stock_quantity": 961 + }, + "customer": { + "name": "Jay Watson", + "age": 60, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Castillo, Moore and Hall", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "continue", + "category": "beyond", + "price": 841.27, + "stock_quantity": 206 + }, + "customer": { + "name": "Ann Ramirez", + "age": 73, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Griffith Inc", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "relate", + "category": "say", + "price": 180.24, + "stock_quantity": 25 + }, + "customer": { + "name": "Erin Wallace", + "age": 22, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Lewis, Williams and Bowen", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "article", + "category": "cell", + "price": 865.32, + "stock_quantity": 604 + }, + "customer": { + "name": "Hayley Watson", + "age": 68, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Wilson-Hughes", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "or", + "category": "save", + "price": 261.36, + "stock_quantity": 552 + }, + "customer": { + "name": "Harry Dalton", + "age": 44, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Raymond, Porter and Hernandez", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "product", + "category": "political", + "price": 402.77, + "stock_quantity": 808 + }, + "customer": { + "name": "Mark Grant", + "age": 18, + "country": "Mauritania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Joseph-Edwards'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Joseph-Edwards", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "daughter", + "category": "again", + "price": 375.56, + "stock_quantity": 823 + }, + "customer": { + "name": "Robert Frank", + "age": 71, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Meyer, Huffman and Barber", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "statement", + "category": "so", + "price": 38.04, + "stock_quantity": 241 + }, + "customer": { + "name": "John Cole", + "age": 79, + "country": "Tanzania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis Group", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "this", + "category": "fill", + "price": 293.54, + "stock_quantity": 621 + }, + "customer": { + "name": "Paula Johnson", + "age": 44, + "country": "Senegal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Marquez-Craig'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Marquez-Craig", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "wife", + "category": "road", + "price": 787.49, + "stock_quantity": 251 + }, + "customer": { + "name": "Susan Dean", + "age": 58, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Villanueva, Salazar and Myers", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "lay", + "category": "against", + "price": 687.53, + "stock_quantity": 229 + }, + "customer": { + "name": "Holly Rose", + "age": 30, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Wright-Stokes", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "low", + "category": "return", + "price": 99.24, + "stock_quantity": 590 + }, + "customer": { + "name": "Brian Ward", + "age": 68, + "country": "Latvia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chan-Cole'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chan-Cole", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "represent", + "category": "gas", + "price": 754.34, + "stock_quantity": 888 + }, + "customer": { + "name": "Leah Brown", + "age": 41, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Pena LLC", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "value", + "category": "particular", + "price": 288.28, + "stock_quantity": 90 + }, + "customer": { + "name": "Brent Love", + "age": 37, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Hancock PLC", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "city", + "category": "feeling", + "price": 139.99, + "stock_quantity": 483 + }, + "customer": { + "name": "Wendy Smith", + "age": 23, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Hinton PLC", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "detail", + "category": "stand", + "price": 816.76, + "stock_quantity": 644 + }, + "customer": { + "name": "Jennifer Johnson", + "age": 29, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Porter, Lopez and Gates", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "bring", + "category": "thought", + "price": 350.15, + "stock_quantity": 696 + }, + "customer": { + "name": "Kari Rodriguez", + "age": 75, + "country": "Northern Mariana Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nguyen-Ramsey'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nguyen-Ramsey", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "somebody", + "category": "many", + "price": 382.2, + "stock_quantity": 986 + }, + "customer": { + "name": "Michelle White", + "age": 56, + "country": "Norfolk Island" + } + }, + { + "natural_query": "What are the top 3 products by customers for Johnson Inc last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Johnson Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3", + "company": { + "name": "Johnson Inc", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "forward", + "category": "century", + "price": 65.59, + "stock_quantity": 489 + }, + "customer": { + "name": "James Dougherty", + "age": 52, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Carpenter-Duncan", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "without", + "category": "lead", + "price": 950.12, + "stock_quantity": 361 + }, + "customer": { + "name": "Michael Clark", + "age": 57, + "country": "Kenya" + } + }, + { + "natural_query": "What are the top 7 products by sales for Chambers, Cruz and Moore this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Chambers, Cruz and Moore' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7", + "company": { + "name": "Chambers, Cruz and Moore", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "mission", + "category": "spring", + "price": 235.83, + "stock_quantity": 539 + }, + "customer": { + "name": "Glenn Chandler", + "age": 26, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Fox, Rivera and Decker", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "step", + "category": "food", + "price": 995.29, + "stock_quantity": 845 + }, + "customer": { + "name": "Timothy Stanley", + "age": 46, + "country": "Gambia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Romero Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Romero Ltd", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "usually", + "category": "blood", + "price": 418.17, + "stock_quantity": 214 + }, + "customer": { + "name": "Terry Cobb", + "age": 49, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Wang, Todd and Parker", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "many", + "category": "fear", + "price": 190.54, + "stock_quantity": 946 + }, + "customer": { + "name": "Tanya Wright", + "age": 42, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Delacruz, Walls and Ramirez", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "economic", + "category": "beat", + "price": 301.66, + "stock_quantity": 809 + }, + "customer": { + "name": "John Reynolds", + "age": 30, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Sanders-Rodriguez", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "stay", + "category": "although", + "price": 257.58, + "stock_quantity": 523 + }, + "customer": { + "name": "Joseph Hayes", + "age": 65, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Patrick-Patrick", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "many", + "category": "religious", + "price": 218.14, + "stock_quantity": 683 + }, + "customer": { + "name": "Cheryl Gilbert", + "age": 74, + "country": "Austria" + } + }, + { + "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'", + "company": { + "name": "Jones-Little", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "everybody", + "category": "few", + "price": 701.17, + "stock_quantity": 78 + }, + "customer": { + "name": "Ann Berry", + "age": 55, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Holloway-Pierce", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "general", + "category": "board", + "price": 242.03, + "stock_quantity": 131 + }, + "customer": { + "name": "Christine Davis", + "age": 55, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Nelson-Morgan", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "receive", + "category": "realize", + "price": 419.5, + "stock_quantity": 457 + }, + "customer": { + "name": "Adam Torres", + "age": 68, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Morrison-Wilson", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "executive", + "category": "fall", + "price": 960.75, + "stock_quantity": 264 + }, + "customer": { + "name": "James Barton", + "age": 60, + "country": "Bolivia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harrington, Barnes and Jackson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harrington, Barnes and Jackson", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "ahead", + "category": "program", + "price": 620.94, + "stock_quantity": 400 + }, + "customer": { + "name": "Jason Woodard", + "age": 51, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Harvey PLC", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "order", + "category": "get", + "price": 687.94, + "stock_quantity": 895 + }, + "customer": { + "name": "Mr. Samuel Moore", + "age": 61, + "country": "Netherlands Antilles" + } + }, + { + "natural_query": "What is the total sales for each category in Hubbard-Cook?", + "sql_query": "SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hubbard-Cook' GROUP BY category ORDER BY total_sales DESC", + "company": { + "name": "Hubbard-Cook", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "story", + "category": "number", + "price": 876.83, + "stock_quantity": 587 + }, + "customer": { + "name": "Mary Carroll", + "age": 62, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Hunt-Fisher", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "story", + "category": "performance", + "price": 522.35, + "stock_quantity": 486 + }, + "customer": { + "name": "Oscar Stout", + "age": 36, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Webster-Pierce", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "movement", + "category": "example", + "price": 354.74, + "stock_quantity": 655 + }, + "customer": { + "name": "Angela Herrera", + "age": 39, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Cole, Christensen and Gentry", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "particular", + "category": "reduce", + "price": 477.84, + "stock_quantity": 564 + }, + "customer": { + "name": "Gabriel Horton", + "age": 44, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Hardy, Smith and Robinson", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "treat", + "category": "above", + "price": 724.25, + "stock_quantity": 704 + }, + "customer": { + "name": "Sean Walker", + "age": 40, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Pollard Group", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "region", + "category": "time", + "price": 409.53, + "stock_quantity": 911 + }, + "customer": { + "name": "Kyle Campbell", + "age": 49, + "country": "Monaco" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ramirez and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ramirez and Sons", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "ahead", + "category": "bad", + "price": 339.8, + "stock_quantity": 800 + }, + "customer": { + "name": "Lisa King", + "age": 69, + "country": "Haiti" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moore-Day'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moore-Day", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "investment", + "category": "forward", + "price": 549.72, + "stock_quantity": 210 + }, + "customer": { + "name": "Jesus Griffin", + "age": 47, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Cohen, Baker and Clarke", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "officer", + "category": "crime", + "price": 20.24, + "stock_quantity": 341 + }, + "customer": { + "name": "Willie Carey", + "age": 46, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Ramos Inc", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "religious", + "category": "our", + "price": 636.92, + "stock_quantity": 169 + }, + "customer": { + "name": "Melvin Boone", + "age": 19, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Castro and Sons", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "on", + "category": "add", + "price": 241.44, + "stock_quantity": 88 + }, + "customer": { + "name": "Joshua Potter", + "age": 39, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Carter, Ponce and Smith", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "hour", + "category": "down", + "price": 236.65, + "stock_quantity": 107 + }, + "customer": { + "name": "Bradley Moon", + "age": 71, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Brewer-Allen", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "miss", + "category": "including", + "price": 553.41, + "stock_quantity": 513 + }, + "customer": { + "name": "Jared Lawrence", + "age": 40, + "country": "Malaysia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bennett, Russell and Duncan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bennett, Russell and Duncan", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "truth", + "category": "store", + "price": 168.49, + "stock_quantity": 542 + }, + "customer": { + "name": "Amber Lyons", + "age": 64, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Lara-Mueller", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "article", + "category": "talk", + "price": 713.0, + "stock_quantity": 370 + }, + "customer": { + "name": "Matthew Nguyen", + "age": 27, + "country": "Turkey" + } + }, + { + "natural_query": "What is the average quantity of all products for Espinoza PLC?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Espinoza PLC'", + "company": { + "name": "Espinoza PLC", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "around", + "category": "trial", + "price": 29.51, + "stock_quantity": 156 + }, + "customer": { + "name": "Kelly Lee", + "age": 58, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Woodward, Gordon and Martin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Woodward, Gordon and Martin", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "week", + "category": "look", + "price": 598.82, + "stock_quantity": 172 + }, + "customer": { + "name": "Matthew Steele", + "age": 51, + "country": "Bosnia and Herzegovina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rich, Smith and Ross'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rich, Smith and Ross", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "take", + "category": "fight", + "price": 18.78, + "stock_quantity": 348 + }, + "customer": { + "name": "Michelle Shaffer", + "age": 78, + "country": "Nauru" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Velasquez, Snyder and Jensen for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Velasquez, Snyder and Jensen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Velasquez, Snyder and Jensen", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "minute", + "category": "wrong", + "price": 134.09, + "stock_quantity": 141 + }, + "customer": { + "name": "Johnny Phelps", + "age": 41, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Tucker LLC", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "along", + "category": "institution", + "price": 837.05, + "stock_quantity": 118 + }, + "customer": { + "name": "Amanda Davis", + "age": 36, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Best-Jones", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "campaign", + "category": "night", + "price": 992.97, + "stock_quantity": 100 + }, + "customer": { + "name": "Brett Martinez", + "age": 26, + "country": "Bolivia" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Keller PLC?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Keller PLC'", + "company": { + "name": "Keller PLC", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "whose", + "category": "population", + "price": 396.6, + "stock_quantity": 211 + }, + "customer": { + "name": "Rachel Fleming", + "age": 21, + "country": "Greenland" + } + }, + { + "natural_query": "How many orders were placed for Moreno-White between 2023-12-31 and 2024-02-26?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moreno-White' AND order_date BETWEEN '2023-12-31' AND '2024-02-26'", + "company": { + "name": "Moreno-White", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "trial", + "category": "likely", + "price": 241.95, + "stock_quantity": 689 + }, + "customer": { + "name": "Mercedes Thompson", + "age": 45, + "country": "Saint Kitts and Nevis" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mendoza Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mendoza Group", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "mother", + "category": "attack", + "price": 648.02, + "stock_quantity": 293 + }, + "customer": { + "name": "William Green", + "age": 54, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Herrera, Farrell and Long", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "natural", + "category": "war", + "price": 101.5, + "stock_quantity": 120 + }, + "customer": { + "name": "Brandon Wu", + "age": 24, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Wolf LLC", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "pattern", + "category": "team", + "price": 881.09, + "stock_quantity": 206 + }, + "customer": { + "name": "Russell Anderson", + "age": 78, + "country": "Kiribati" + } + }, + { + "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'", + "company": { + "name": "Woods, Ortiz and Woods", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "shake", + "category": "sense", + "price": 408.83, + "stock_quantity": 39 + }, + "customer": { + "name": "Maria Gutierrez", + "age": 25, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Herring-Lambert", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "set", + "category": "crime", + "price": 126.24, + "stock_quantity": 740 + }, + "customer": { + "name": "Jonathan Martinez", + "age": 46, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Garrett LLC", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "reduce", + "category": "yeah", + "price": 821.12, + "stock_quantity": 56 + }, + "customer": { + "name": "Mark Hall", + "age": 56, + "country": "Honduras" + } + }, + { + "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'", + "company": { + "name": "Hernandez, Chan and Dodson", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "history", + "category": "where", + "price": 744.17, + "stock_quantity": 642 + }, + "customer": { + "name": "Anthony Barker", + "age": 65, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Martinez Ltd", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "news", + "category": "great", + "price": 368.35, + "stock_quantity": 760 + }, + "customer": { + "name": "Jordan Stephens", + "age": 77, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Carlson-Fitzpatrick", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "information", + "category": "raise", + "price": 248.19, + "stock_quantity": 784 + }, + "customer": { + "name": "Karen Meza", + "age": 45, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Hopkins, Casey and Martin", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "oil", + "category": "material", + "price": 770.59, + "stock_quantity": 526 + }, + "customer": { + "name": "Cindy Howard", + "age": 31, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Ross PLC", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "must", + "category": "understand", + "price": 15.49, + "stock_quantity": 834 + }, + "customer": { + "name": "Michael Petersen", + "age": 34, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Green-Vazquez", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "future", + "category": "old", + "price": 370.25, + "stock_quantity": 914 + }, + "customer": { + "name": "Gregg Lee", + "age": 47, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Anderson, Lawrence and Delgado", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "attention", + "category": "industry", + "price": 739.4, + "stock_quantity": 200 + }, + "customer": { + "name": "James Cunningham", + "age": 49, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Bradley Inc", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "quickly", + "category": "action", + "price": 903.23, + "stock_quantity": 412 + }, + "customer": { + "name": "Kyle Taylor", + "age": 35, + "country": "Indonesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller, Williams and Ruiz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller, Williams and Ruiz", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "international", + "category": "surface", + "price": 360.41, + "stock_quantity": 446 + }, + "customer": { + "name": "Bianca Stein", + "age": 28, + "country": "Guinea" + } + }, + { + "natural_query": "What are the top 7 products by revenue for Hayes, Miller and Gonzalez this month?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Hayes, Miller and Gonzalez' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7", + "company": { + "name": "Hayes, Miller and Gonzalez", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "operation", + "category": "computer", + "price": 581.14, + "stock_quantity": 419 + }, + "customer": { + "name": "Karen Richards", + "age": 59, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Wright PLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "wind", + "category": "born", + "price": 889.9, + "stock_quantity": 645 + }, + "customer": { + "name": "Xavier Harris", + "age": 31, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Diaz, Scott and Torres", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "job", + "category": "wonder", + "price": 686.14, + "stock_quantity": 585 + }, + "customer": { + "name": "Kelly Kelley", + "age": 48, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Johnson PLC", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "condition", + "category": "American", + "price": 341.6, + "stock_quantity": 888 + }, + "customer": { + "name": "Ruth Munoz", + "age": 30, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Sherman, Lee and Martinez", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "ground", + "category": "environmental", + "price": 271.87, + "stock_quantity": 914 + }, + "customer": { + "name": "Kayla Smith", + "age": 30, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Baker LLC", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "information", + "category": "reach", + "price": 767.82, + "stock_quantity": 476 + }, + "customer": { + "name": "Heather Stout", + "age": 79, + "country": "American Samoa" + } + }, + { + "natural_query": "What is the total rating of all products for Ramos, Peters and Wright?", + "sql_query": "SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Ramos, Peters and Wright'", + "company": { + "name": "Ramos, Peters and Wright", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "prepare", + "category": "put", + "price": 912.48, + "stock_quantity": 164 + }, + "customer": { + "name": "Patrick Gonzalez", + "age": 59, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Hill Inc", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "develop", + "category": "image", + "price": 823.13, + "stock_quantity": 295 + }, + "customer": { + "name": "Aaron Thomas", + "age": 27, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Phelps, Davis and Ellis", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "student", + "category": "talk", + "price": 162.79, + "stock_quantity": 311 + }, + "customer": { + "name": "Melanie Morris", + "age": 30, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "White, Watson and Medina", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "rate", + "category": "guess", + "price": 571.16, + "stock_quantity": 214 + }, + "customer": { + "name": "Patricia Howell", + "age": 34, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Goodwin-Thomas", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "power", + "category": "popular", + "price": 792.52, + "stock_quantity": 770 + }, + "customer": { + "name": "Melissa Davidson", + "age": 23, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Stafford, Mcdonald and Ray", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "skin", + "category": "risk", + "price": 577.6, + "stock_quantity": 390 + }, + "customer": { + "name": "Michael Allen", + "age": 42, + "country": "Monaco" + } + }, + { + "natural_query": "Show me all products in the occur category with a price over $745.97.", + "sql_query": "SELECT * FROM products WHERE category = 'occur' AND price > 745.97", + "company": { + "name": "Hayes-Bautista", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "scientist", + "category": "occur", + "price": 745.97, + "stock_quantity": 664 + }, + "customer": { + "name": "Johnny Sanders", + "age": 44, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Jones, Riggs and Ramirez", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "get", + "category": "former", + "price": 681.55, + "stock_quantity": 686 + }, + "customer": { + "name": "Michelle Vasquez MD", + "age": 30, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Walker-Murphy", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "rock", + "category": "impact", + "price": 114.01, + "stock_quantity": 520 + }, + "customer": { + "name": "Janice Hall", + "age": 31, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Ramirez Ltd", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "choice", + "category": "special", + "price": 162.68, + "stock_quantity": 867 + }, + "customer": { + "name": "Ashley Coleman", + "age": 44, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Ferguson, Smith and Brown", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "candidate", + "category": "policy", + "price": 199.85, + "stock_quantity": 705 + }, + "customer": { + "name": "Mark Saunders", + "age": 69, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Russell-Wilson", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "piece", + "category": "government", + "price": 979.88, + "stock_quantity": 57 + }, + "customer": { + "name": "Christina Johnson", + "age": 79, + "country": "Malaysia" + } + }, + { + "natural_query": "Show me all products in the both category with a price over $254.88.", + "sql_query": "SELECT * FROM products WHERE category = 'both' AND price > 254.88", + "company": { + "name": "Dyer, Oconnor and Fuentes", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "newspaper", + "category": "both", + "price": 254.88, + "stock_quantity": 22 + }, + "customer": { + "name": "Daniel Lee", + "age": 74, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Ramos-Cooper", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "example", + "category": "continue", + "price": 475.98, + "stock_quantity": 142 + }, + "customer": { + "name": "Christina Martin", + "age": 75, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Bradley, Parker and Schwartz", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "lawyer", + "category": "second", + "price": 347.64, + "stock_quantity": 533 + }, + "customer": { + "name": "Brian Wright", + "age": 77, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Davis-Padilla", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "already", + "category": "arm", + "price": 734.55, + "stock_quantity": 377 + }, + "customer": { + "name": "Ana Anderson", + "age": 77, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Ryan Group", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "dog", + "category": "resource", + "price": 719.7, + "stock_quantity": 865 + }, + "customer": { + "name": "Samantha Williams", + "age": 35, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Ingram, Barker and Perry", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "hope", + "category": "free", + "price": 528.38, + "stock_quantity": 698 + }, + "customer": { + "name": "Matthew Sosa", + "age": 33, + "country": "United States Virgin Islands" + } + }, + { + "natural_query": "How many orders were placed for Powell, Fowler and Barnes between 2024-05-07 and 2024-07-27?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Powell, Fowler and Barnes' AND order_date BETWEEN '2024-05-07' AND '2024-07-27'", + "company": { + "name": "Powell, Fowler and Barnes", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "alone", + "category": "agent", + "price": 245.01, + "stock_quantity": 550 + }, + "customer": { + "name": "Jasmine Keller", + "age": 63, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Hood-Bean", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "reveal", + "category": "language", + "price": 17.08, + "stock_quantity": 910 + }, + "customer": { + "name": "Tiffany Berry", + "age": 75, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Byrd PLC", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "interview", + "category": "enough", + "price": 890.02, + "stock_quantity": 701 + }, + "customer": { + "name": "Melissa Rogers", + "age": 74, + "country": "Czech Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Price, Owens and Nielsen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Price, Owens and Nielsen", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "yeah", + "category": "science", + "price": 314.98, + "stock_quantity": 99 + }, + "customer": { + "name": "Holly Acosta", + "age": 18, + "country": "Algeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Key, Wang and Herman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Key, Wang and Herman", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "lead", + "category": "statement", + "price": 314.16, + "stock_quantity": 323 + }, + "customer": { + "name": "Edward York", + "age": 55, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "eat", + "category": "drop", + "price": 663.96, + "stock_quantity": 553 + }, + "customer": { + "name": "Amy Wright", + "age": 35, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "hotel", + "category": "foreign", + "price": 570.41, + "stock_quantity": 724 + }, + "customer": { + "name": "Kenneth Sanchez", + "age": 74, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Stewart-Valdez", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "field", + "category": "daughter", + "price": 611.94, + "stock_quantity": 418 + }, + "customer": { + "name": "Micheal Medina", + "age": 23, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Patterson, Wong and Baker", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "expect", + "category": "might", + "price": 254.15, + "stock_quantity": 844 + }, + "customer": { + "name": "Deborah Jensen", + "age": 59, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Jackson, Cordova and Perez", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "bank", + "category": "card", + "price": 371.03, + "stock_quantity": 840 + }, + "customer": { + "name": "Heather Mcfarland", + "age": 58, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Marks, Clark and Hood", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "a", + "category": "yes", + "price": 64.01, + "stock_quantity": 348 + }, + "customer": { + "name": "Xavier Curry", + "age": 32, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Banks, Becker and Salas", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "truth", + "category": "west", + "price": 620.09, + "stock_quantity": 87 + }, + "customer": { + "name": "Elizabeth Thompson", + "age": 47, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Gordon-Schmidt", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "world", + "category": "against", + "price": 213.86, + "stock_quantity": 420 + }, + "customer": { + "name": "Samantha Figueroa", + "age": 28, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Bradford and Sons", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "scene", + "category": "garden", + "price": 399.64, + "stock_quantity": 684 + }, + "customer": { + "name": "Jonathan Murray", + "age": 45, + "country": "Yemen" + } + }, + { + "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'", + "company": { + "name": "Taylor-Dalton", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "social", + "category": "issue", + "price": 298.25, + "stock_quantity": 880 + }, + "customer": { + "name": "Kenneth Peterson", + "age": 34, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "natural_query": "Show me all products in the to category with a price over $220.4.", + "sql_query": "SELECT * FROM products WHERE category = 'to' AND price > 220.4", + "company": { + "name": "Christensen-Castaneda", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "manager", + "category": "to", + "price": 220.4, + "stock_quantity": 796 + }, + "customer": { + "name": "Sean Patterson", + "age": 67, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Rivera PLC", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "bag", + "category": "total", + "price": 363.44, + "stock_quantity": 893 + }, + "customer": { + "name": "Stephen Williams", + "age": 52, + "country": "Heard Island and McDonald Islands" + } + }, + { + "natural_query": "List all products of Murphy-Allen ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Murphy-Allen' ORDER BY price DESC", + "company": { + "name": "Murphy-Allen", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "sit", + "category": "truth", + "price": 759.53, + "stock_quantity": 407 + }, + "customer": { + "name": "Keith Kramer", + "age": 30, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Taylor-Love", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "again", + "category": "work", + "price": 73.6, + "stock_quantity": 48 + }, + "customer": { + "name": "Nicole Butler", + "age": 70, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Wood-Pearson", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "form", + "category": "tree", + "price": 50.73, + "stock_quantity": 188 + }, + "customer": { + "name": "Keith Ray", + "age": 46, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Ellis LLC", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "some", + "category": "kid", + "price": 617.96, + "stock_quantity": 740 + }, + "customer": { + "name": "Madeline Smith", + "age": 63, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Byrd-White", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "create", + "category": "manager", + "price": 397.62, + "stock_quantity": 872 + }, + "customer": { + "name": "Eric Dougherty", + "age": 45, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Conner, Arnold and Walker", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "life", + "category": "Democrat", + "price": 636.76, + "stock_quantity": 183 + }, + "customer": { + "name": "John Martin", + "age": 76, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Stafford, Gibson and Carter", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "note", + "category": "professional", + "price": 558.03, + "stock_quantity": 706 + }, + "customer": { + "name": "Joel Collins", + "age": 67, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Waller-Solis", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "body", + "category": "total", + "price": 513.37, + "stock_quantity": 120 + }, + "customer": { + "name": "James Mcdowell", + "age": 23, + "country": "Argentina" + } + }, + { + "natural_query": "List all customers and their total order value for Hamilton-Parker.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Hamilton-Parker' GROUP BY c.customer_id", + "company": { + "name": "Hamilton-Parker", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "real", + "category": "and", + "price": 143.79, + "stock_quantity": 128 + }, + "customer": { + "name": "Wendy Cook", + "age": 26, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Mora, Moody and Bryant", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "assume", + "category": "politics", + "price": 474.6, + "stock_quantity": 155 + }, + "customer": { + "name": "Rebecca Steele", + "age": 38, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Fox, Case and Nichols", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "throughout", + "category": "either", + "price": 23.41, + "stock_quantity": 593 + }, + "customer": { + "name": "Ashley Jensen", + "age": 33, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gill, Garza and Fields'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gill, Garza and Fields", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "least", + "category": "build", + "price": 667.95, + "stock_quantity": 568 + }, + "customer": { + "name": "Brandon Williams", + "age": 21, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Davis-Alexander", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "create", + "category": "too", + "price": 91.42, + "stock_quantity": 152 + }, + "customer": { + "name": "Amanda Allison", + "age": 38, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Flores, Guerrero and Morris", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "summer", + "category": "clear", + "price": 180.55, + "stock_quantity": 195 + }, + "customer": { + "name": "Morgan Payne", + "age": 38, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Travis and Sons", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "every", + "category": "professor", + "price": 598.1, + "stock_quantity": 0 + }, + "customer": { + "name": "Stanley Ferrell", + "age": 22, + "country": "Martinique" + } + }, + { + "natural_query": "What are the top 6 products by revenue for Dorsey, Martin and Richmond this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Dorsey, Martin and Richmond' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6", + "company": { + "name": "Dorsey, Martin and Richmond", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "hard", + "category": "serious", + "price": 690.66, + "stock_quantity": 152 + }, + "customer": { + "name": "Brandon Cox", + "age": 25, + "country": "Nigeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mccann, Rosario and Nicholson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mccann, Rosario and Nicholson", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "professional", + "category": "hit", + "price": 264.77, + "stock_quantity": 773 + }, + "customer": { + "name": "Courtney Decker", + "age": 49, + "country": "North Macedonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Browning, Young and Ross'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Browning, Young and Ross", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "movement", + "category": "film", + "price": 237.61, + "stock_quantity": 281 + }, + "customer": { + "name": "Stephen Brown", + "age": 18, + "country": "Mauritius" + } + }, + { + "natural_query": "Show me all products in the us category with a price over $953.47.", + "sql_query": "SELECT * FROM products WHERE category = 'us' AND price > 953.47", + "company": { + "name": "Nelson Inc", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "use", + "category": "us", + "price": 953.47, + "stock_quantity": 553 + }, + "customer": { + "name": "Joseph Hudson", + "age": 50, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Jackson PLC", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "beyond", + "category": "manager", + "price": 456.73, + "stock_quantity": 970 + }, + "customer": { + "name": "Erik Daniel", + "age": 19, + "country": "Botswana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Soto and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Soto and Sons", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "blood", + "category": "really", + "price": 282.99, + "stock_quantity": 457 + }, + "customer": { + "name": "Kelly Anderson", + "age": 77, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Hunter Group", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "opportunity", + "category": "remain", + "price": 414.21, + "stock_quantity": 726 + }, + "customer": { + "name": "Robert Wyatt", + "age": 44, + "country": "Panama" + } + }, + { + "natural_query": "How many orders were placed for Moody LLC between 2024-04-05 and 2024-08-28?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moody LLC' AND order_date BETWEEN '2024-04-05' AND '2024-08-28'", + "company": { + "name": "Moody LLC", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "family", + "category": "coach", + "price": 425.82, + "stock_quantity": 710 + }, + "customer": { + "name": "Tammy Rivers", + "age": 68, + "country": "Uzbekistan" + } + }, + { + "natural_query": "List all customers and their total order value for Patel Inc.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Patel Inc' GROUP BY c.customer_id", + "company": { + "name": "Patel Inc", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "return", + "category": "arrive", + "price": 571.84, + "stock_quantity": 64 + }, + "customer": { + "name": "Adriana Molina", + "age": 78, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Roberts Inc", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "particularly", + "category": "site", + "price": 545.21, + "stock_quantity": 783 + }, + "customer": { + "name": "Mr. Leonard Nelson DDS", + "age": 75, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Jones, Allen and Parsons", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "step", + "category": "first", + "price": 507.3, + "stock_quantity": 740 + }, + "customer": { + "name": "William Murphy", + "age": 54, + "country": "Bosnia and Herzegovina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Case-Rodriguez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Case-Rodriguez", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "book", + "category": "public", + "price": 405.92, + "stock_quantity": 65 + }, + "customer": { + "name": "Michelle Flores", + "age": 64, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Dean PLC", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "hope", + "category": "capital", + "price": 479.57, + "stock_quantity": 848 + }, + "customer": { + "name": "Benjamin Butler MD", + "age": 72, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Gibbs-Butler", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "everyone", + "category": "worry", + "price": 294.42, + "stock_quantity": 408 + }, + "customer": { + "name": "Alexandra Hamilton", + "age": 80, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Hall LLC", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "bar", + "category": "hour", + "price": 686.1, + "stock_quantity": 496 + }, + "customer": { + "name": "Kristy Myers", + "age": 63, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Johnson, Hayes and Rodriguez", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "strategy", + "category": "cell", + "price": 822.44, + "stock_quantity": 442 + }, + "customer": { + "name": "Veronica Harrell", + "age": 44, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Thomas-Wood", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "sense", + "category": "agreement", + "price": 630.67, + "stock_quantity": 417 + }, + "customer": { + "name": "Mr. Michael Gutierrez", + "age": 74, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Stewart, Nichols and Patrick", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "reflect", + "category": "off", + "price": 588.04, + "stock_quantity": 30 + }, + "customer": { + "name": "George Stuart", + "age": 76, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Torres-Wallace", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "policy", + "category": "realize", + "price": 253.08, + "stock_quantity": 172 + }, + "customer": { + "name": "Debbie Smith MD", + "age": 28, + "country": "Kiribati" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Duncan-Hamilton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Duncan-Hamilton", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "play", + "category": "tell", + "price": 826.94, + "stock_quantity": 427 + }, + "customer": { + "name": "Stephen Stevens", + "age": 50, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Freeman Ltd", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "purpose", + "category": "skill", + "price": 127.29, + "stock_quantity": 507 + }, + "customer": { + "name": "Todd Brown", + "age": 24, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Allen-Brown", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "fine", + "category": "senior", + "price": 27.19, + "stock_quantity": 346 + }, + "customer": { + "name": "Ashley Roy", + "age": 58, + "country": "New Zealand" + } + }, + { + "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'", + "company": { + "name": "Herrera-Saunders", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "tax", + "category": "size", + "price": 229.21, + "stock_quantity": 872 + }, + "customer": { + "name": "Michael Cox", + "age": 50, + "country": "Gambia" + } + }, + { + "natural_query": "Show me all products in the program category with a price over $145.96.", + "sql_query": "SELECT * FROM products WHERE category = 'program' AND price > 145.96", + "company": { + "name": "Allen Inc", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "much", + "category": "program", + "price": 145.96, + "stock_quantity": 819 + }, + "customer": { + "name": "Nathan Gilbert", + "age": 61, + "country": "Fiji" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ramos Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ramos Group", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "people", + "category": "foot", + "price": 463.32, + "stock_quantity": 604 + }, + "customer": { + "name": "Sarah Miller", + "age": 30, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Harrison PLC", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "man", + "category": "war", + "price": 164.88, + "stock_quantity": 178 + }, + "customer": { + "name": "Sarah Sanders", + "age": 53, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Romero, Kelly and Baird", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "leg", + "category": "join", + "price": 920.23, + "stock_quantity": 481 + }, + "customer": { + "name": "Zachary Lewis", + "age": 80, + "country": "Bahamas" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Downs-Martinez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Downs-Martinez", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "whether", + "category": "sense", + "price": 246.09, + "stock_quantity": 460 + }, + "customer": { + "name": "Michael Dickson", + "age": 23, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Dunn LLC", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "ground", + "category": "fish", + "price": 73.91, + "stock_quantity": 379 + }, + "customer": { + "name": "John Rodriguez", + "age": 52, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Armstrong, Rodriguez and Perkins", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "contain", + "category": "station", + "price": 844.61, + "stock_quantity": 218 + }, + "customer": { + "name": "Laura Johnson", + "age": 55, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Thomas and Howell", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "wear", + "category": "pay", + "price": 905.06, + "stock_quantity": 957 + }, + "customer": { + "name": "Alyssa Hamilton", + "age": 54, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Gibbs PLC", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "those", + "category": "head", + "price": 121.86, + "stock_quantity": 240 + }, + "customer": { + "name": "Tommy Dudley", + "age": 49, + "country": "Reunion" + } + }, + { + "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'", + "company": { + "name": "Nichols Group", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "single", + "category": "above", + "price": 748.54, + "stock_quantity": 880 + }, + "customer": { + "name": "Ronald Pham", + "age": 30, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Reyes, Garcia and Weaver", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "everything", + "category": "senior", + "price": 108.89, + "stock_quantity": 939 + }, + "customer": { + "name": "Linda Castaneda", + "age": 37, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Davis-Brown", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "next", + "category": "wonder", + "price": 676.85, + "stock_quantity": 168 + }, + "customer": { + "name": "Kristy Callahan", + "age": 24, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Jones LLC", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "design", + "category": "bit", + "price": 257.67, + "stock_quantity": 100 + }, + "customer": { + "name": "Kelli Bartlett", + "age": 53, + "country": "Mayotte" + } + }, + { + "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'", + "company": { + "name": "Charles, Chapman and Mckee", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "career", + "category": "game", + "price": 823.95, + "stock_quantity": 943 + }, + "customer": { + "name": "Keith Carter", + "age": 63, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Hill, Williams and Serrano", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "mother", + "category": "official", + "price": 469.01, + "stock_quantity": 977 + }, + "customer": { + "name": "Susan Scott", + "age": 56, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Hill LLC", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "stop", + "category": "quickly", + "price": 910.52, + "stock_quantity": 698 + }, + "customer": { + "name": "Renee Stone", + "age": 59, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Byrd PLC", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "thank", + "category": "certainly", + "price": 10.38, + "stock_quantity": 276 + }, + "customer": { + "name": "Stephanie Benitez", + "age": 32, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Porter PLC", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "easy", + "category": "run", + "price": 146.65, + "stock_quantity": 216 + }, + "customer": { + "name": "Stephanie Ryan", + "age": 47, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Brooks-Kelly", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "forget", + "category": "father", + "price": 300.88, + "stock_quantity": 212 + }, + "customer": { + "name": "Jeffrey Mack", + "age": 64, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Green-Jones", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "risk", + "category": "pull", + "price": 159.05, + "stock_quantity": 485 + }, + "customer": { + "name": "Julia Sanchez", + "age": 34, + "country": "Myanmar" + } + }, + { + "natural_query": "List all customers and their total order value for Sloan, Moore and Espinoza.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Sloan, Moore and Espinoza' GROUP BY c.customer_id", + "company": { + "name": "Sloan, Moore and Espinoza", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "maintain", + "category": "Mr", + "price": 121.51, + "stock_quantity": 804 + }, + "customer": { + "name": "Casey Cole", + "age": 47, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Rice PLC", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "able", + "category": "include", + "price": 816.41, + "stock_quantity": 901 + }, + "customer": { + "name": "Sarah Bauer", + "age": 64, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Rogers-Martinez", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "let", + "category": "here", + "price": 926.35, + "stock_quantity": 938 + }, + "customer": { + "name": "Frank Anderson", + "age": 79, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Buckley, Shields and Sullivan", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "industry", + "category": "perform", + "price": 34.1, + "stock_quantity": 190 + }, + "customer": { + "name": "Bryan Snyder", + "age": 62, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Perry Ltd", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "customer", + "category": "thank", + "price": 851.62, + "stock_quantity": 962 + }, + "customer": { + "name": "Kayla Hall", + "age": 31, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Roman-Jones", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "from", + "category": "southern", + "price": 638.7, + "stock_quantity": 338 + }, + "customer": { + "name": "Denise Campbell", + "age": 62, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Anderson, Keller and Stewart", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "speak", + "category": "program", + "price": 977.91, + "stock_quantity": 97 + }, + "customer": { + "name": "Phillip Short", + "age": 20, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Marshall-Larsen", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "suggest", + "category": "card", + "price": 612.79, + "stock_quantity": 259 + }, + "customer": { + "name": "Maria Mcmahon", + "age": 19, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Cruz-Smith", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "fact", + "category": "together", + "price": 579.22, + "stock_quantity": 121 + }, + "customer": { + "name": "Michelle Sullivan", + "age": 78, + "country": "Belarus" + } + }, + { + "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'", + "company": { + "name": "Sullivan-Owens", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "major", + "category": "us", + "price": 974.1, + "stock_quantity": 325 + }, + "customer": { + "name": "Dr. Ashley Wilkins", + "age": 55, + "country": "Kenya" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rhodes-Turner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rhodes-Turner", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "clear", + "category": "onto", + "price": 69.23, + "stock_quantity": 705 + }, + "customer": { + "name": "Megan Calhoun", + "age": 65, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Perry-Strong", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "evidence", + "category": "final", + "price": 452.54, + "stock_quantity": 181 + }, + "customer": { + "name": "Katherine Stevens", + "age": 77, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Salinas, Hodges and Jones", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "parent", + "category": "draw", + "price": 768.72, + "stock_quantity": 785 + }, + "customer": { + "name": "Erika Reid", + "age": 27, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Rubio and Sons", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "coach", + "category": "indeed", + "price": 216.16, + "stock_quantity": 255 + }, + "customer": { + "name": "Robert Gibbs", + "age": 20, + "country": "Tajikistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Montgomery, Hall and Pugh'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Montgomery, Hall and Pugh", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "nothing", + "category": "bar", + "price": 151.54, + "stock_quantity": 522 + }, + "customer": { + "name": "Evan Perez", + "age": 40, + "country": "Bosnia and Herzegovina" + } + }, + { + "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'", + "company": { + "name": "Williams-Fuentes", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "situation", + "category": "enough", + "price": 689.94, + "stock_quantity": 348 + }, + "customer": { + "name": "Matthew Jones", + "age": 68, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Mccullough-Olson", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "in", + "category": "join", + "price": 442.63, + "stock_quantity": 208 + }, + "customer": { + "name": "Kelly Silva", + "age": 26, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Williams, Myers and Tran", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "group", + "category": "arm", + "price": 488.8, + "stock_quantity": 895 + }, + "customer": { + "name": "Jennifer Barron", + "age": 67, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Porter, Shepherd and Navarro", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "kitchen", + "category": "short", + "price": 996.36, + "stock_quantity": 373 + }, + "customer": { + "name": "Matthew Shields", + "age": 40, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Chapman-Santos", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "notice", + "category": "south", + "price": 149.69, + "stock_quantity": 437 + }, + "customer": { + "name": "Lauren Martin", + "age": 23, + "country": "Angola" + } + }, + { + "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'", + "company": { + "name": "Lambert PLC", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "indeed", + "category": "wait", + "price": 281.6, + "stock_quantity": 911 + }, + "customer": { + "name": "Howard Garcia", + "age": 71, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Hendrix-Scott", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "member", + "category": "one", + "price": 788.47, + "stock_quantity": 688 + }, + "customer": { + "name": "Frank Pruitt", + "age": 60, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Graham Ltd", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "inside", + "category": "by", + "price": 690.43, + "stock_quantity": 745 + }, + "customer": { + "name": "Michele Silva", + "age": 48, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Collins Ltd", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "include", + "category": "score", + "price": 576.65, + "stock_quantity": 161 + }, + "customer": { + "name": "Melvin Nelson", + "age": 77, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Schultz LLC", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "raise", + "category": "specific", + "price": 879.02, + "stock_quantity": 843 + }, + "customer": { + "name": "Mary Roman", + "age": 53, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "King-Cooper", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "everybody", + "category": "anyone", + "price": 119.65, + "stock_quantity": 7 + }, + "customer": { + "name": "Matthew Gates", + "age": 55, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Goodwin-Austin", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "forward", + "category": "home", + "price": 388.43, + "stock_quantity": 717 + }, + "customer": { + "name": "Katherine Choi", + "age": 65, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "seem", + "category": "exist", + "price": 841.05, + "stock_quantity": 85 + }, + "customer": { + "name": "Patricia Quinn", + "age": 53, + "country": "United Arab Emirates" + } + }, + { + "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'", + "company": { + "name": "Cisneros-Young", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "between", + "category": "movie", + "price": 616.78, + "stock_quantity": 855 + }, + "customer": { + "name": "Vanessa Hopkins", + "age": 55, + "country": "Solomon Islands" + } + }, + { + "natural_query": "What is the maximum rating of all products for Davis, Owens and Baker?", + "sql_query": "SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Davis, Owens and Baker'", + "company": { + "name": "Davis, Owens and Baker", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "us", + "category": "inside", + "price": 859.12, + "stock_quantity": 503 + }, + "customer": { + "name": "James Miller", + "age": 64, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Taylor PLC", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "director", + "category": "explain", + "price": 385.08, + "stock_quantity": 594 + }, + "customer": { + "name": "Caroline Ramirez", + "age": 21, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Vargas, Flores and Sutton", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "player", + "category": "individual", + "price": 223.46, + "stock_quantity": 913 + }, + "customer": { + "name": "Cassandra Thomas", + "age": 58, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Harrison and Sons", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "whom", + "category": "activity", + "price": 862.12, + "stock_quantity": 373 + }, + "customer": { + "name": "Jorge Garcia", + "age": 49, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Williams-Dunn", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "song", + "category": "president", + "price": 125.69, + "stock_quantity": 94 + }, + "customer": { + "name": "Michele Stein", + "age": 70, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Carlson and Sons", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "such", + "category": "personal", + "price": 622.36, + "stock_quantity": 183 + }, + "customer": { + "name": "Melissa Morris", + "age": 60, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "King, Lowe and Townsend", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "financial", + "category": "anything", + "price": 209.09, + "stock_quantity": 783 + }, + "customer": { + "name": "Carrie Collins", + "age": 23, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Mendoza, Jones and Sherman", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "space", + "category": "off", + "price": 145.77, + "stock_quantity": 551 + }, + "customer": { + "name": "Robert Collins", + "age": 72, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Blackwell Group", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "final", + "category": "great", + "price": 137.28, + "stock_quantity": 798 + }, + "customer": { + "name": "Eileen Perez", + "age": 60, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Wade Inc", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "method", + "category": "old", + "price": 317.22, + "stock_quantity": 702 + }, + "customer": { + "name": "Lisa Gallegos", + "age": 55, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Craig Ltd", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "still", + "category": "sign", + "price": 94.72, + "stock_quantity": 700 + }, + "customer": { + "name": "Greg Quinn", + "age": 59, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Vincent, Summers and Wilson", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "listen", + "category": "two", + "price": 913.25, + "stock_quantity": 826 + }, + "customer": { + "name": "Brittany Lucas", + "age": 18, + "country": "United States of America" + } + }, + { + "natural_query": "List all customers and their total order value for Owens-Washington.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Owens-Washington' GROUP BY c.customer_id", + "company": { + "name": "Owens-Washington", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "now", + "category": "key", + "price": 785.7, + "stock_quantity": 685 + }, + "customer": { + "name": "Kayla Campbell", + "age": 62, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Taylor-Garcia", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "weight", + "category": "operation", + "price": 499.36, + "stock_quantity": 813 + }, + "customer": { + "name": "Misty Simpson", + "age": 54, + "country": "Turkmenistan" + } + }, + { + "natural_query": "What is the total sales for each category in Kirk-Bryant?", + "sql_query": "SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Kirk-Bryant' GROUP BY category ORDER BY total_sales DESC", + "company": { + "name": "Kirk-Bryant", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "know", + "category": "small", + "price": 307.03, + "stock_quantity": 422 + }, + "customer": { + "name": "Raymond Molina", + "age": 35, + "country": "Equatorial Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lewis Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lewis Group", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "ball", + "category": "single", + "price": 964.03, + "stock_quantity": 367 + }, + "customer": { + "name": "Luis Jennings", + "age": 48, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Lopez Ltd", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "choice", + "category": "bank", + "price": 245.25, + "stock_quantity": 766 + }, + "customer": { + "name": "Jessica Hamilton", + "age": 68, + "country": "Uzbekistan" + } + }, + { + "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'", + "company": { + "name": "Hamilton, Horn and Brown", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "power", + "category": "ground", + "price": 27.0, + "stock_quantity": 305 + }, + "customer": { + "name": "Lori Harper", + "age": 61, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Stanley PLC", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "say", + "category": "American", + "price": 498.3, + "stock_quantity": 210 + }, + "customer": { + "name": "Elizabeth Peters", + "age": 43, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Robinson Inc", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "later", + "category": "happen", + "price": 462.63, + "stock_quantity": 523 + }, + "customer": { + "name": "Richard Campbell", + "age": 23, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Nelson Group", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "effort", + "category": "true", + "price": 258.38, + "stock_quantity": 464 + }, + "customer": { + "name": "Elizabeth Potts", + "age": 42, + "country": "Macao" + } + }, + { + "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'", + "company": { + "name": "Webb-Bell", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "time", + "category": "service", + "price": 217.99, + "stock_quantity": 639 + }, + "customer": { + "name": "Anthony Ford", + "age": 32, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Armstrong, Martin and Fields", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "all", + "category": "bill", + "price": 262.2, + "stock_quantity": 588 + }, + "customer": { + "name": "John Carpenter", + "age": 36, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Bates-Jones", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "develop", + "category": "care", + "price": 983.02, + "stock_quantity": 86 + }, + "customer": { + "name": "Daniel Chavez", + "age": 75, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Campbell-King", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "method", + "category": "soon", + "price": 56.76, + "stock_quantity": 584 + }, + "customer": { + "name": "Mr. Kevin Vargas DDS", + "age": 18, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Garrison, Shepherd and Rodriguez", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "mother", + "category": "attention", + "price": 527.72, + "stock_quantity": 76 + }, + "customer": { + "name": "David Kelly", + "age": 18, + "country": "Sierra Leone" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hurst-Paul'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hurst-Paul", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "food", + "category": "bar", + "price": 116.66, + "stock_quantity": 536 + }, + "customer": { + "name": "Brian Jones", + "age": 31, + "country": "Namibia" + } + }, + { + "natural_query": "List all products of Adams, Curry and Turner ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Adams, Curry and Turner' ORDER BY price DESC", + "company": { + "name": "Adams, Curry and Turner", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "those", + "category": "wrong", + "price": 908.19, + "stock_quantity": 203 + }, + "customer": { + "name": "Michael Lowe", + "age": 64, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Mccoy-Cooper", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "degree", + "category": "light", + "price": 647.63, + "stock_quantity": 686 + }, + "customer": { + "name": "April Martin", + "age": 35, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Bray-Harper", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "its", + "category": "now", + "price": 319.05, + "stock_quantity": 335 + }, + "customer": { + "name": "Melissa Nixon", + "age": 52, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Long Group", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "recognize", + "category": "area", + "price": 877.62, + "stock_quantity": 900 + }, + "customer": { + "name": "Mark Johnson", + "age": 35, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Davis, Johnson and Rivas", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "past", + "category": "include", + "price": 72.87, + "stock_quantity": 319 + }, + "customer": { + "name": "Danny Rocha", + "age": 18, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Edwards-Malone", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "president", + "category": "later", + "price": 299.04, + "stock_quantity": 136 + }, + "customer": { + "name": "Cody Ruiz", + "age": 40, + "country": "Ireland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carter PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carter PLC", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "lead", + "category": "child", + "price": 525.26, + "stock_quantity": 694 + }, + "customer": { + "name": "Alexis Thomas", + "age": 68, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Harrison LLC", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "back", + "category": "attorney", + "price": 260.02, + "stock_quantity": 801 + }, + "customer": { + "name": "Stephen Foster", + "age": 64, + "country": "Greece" + } + }, + { + "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'", + "company": { + "name": "Gomez, Allen and Jackson", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "design", + "category": "risk", + "price": 43.72, + "stock_quantity": 583 + }, + "customer": { + "name": "Charles Knight", + "age": 36, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Sanchez, Robertson and Prince", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "matter", + "category": "professor", + "price": 664.26, + "stock_quantity": 177 + }, + "customer": { + "name": "Ronald Duncan", + "age": 47, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Hicks PLC", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "Mr", + "category": "like", + "price": 63.9, + "stock_quantity": 726 + }, + "customer": { + "name": "Michael Duncan", + "age": 31, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Swanson Ltd", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "our", + "category": "close", + "price": 787.95, + "stock_quantity": 252 + }, + "customer": { + "name": "Daniel Sandoval", + "age": 52, + "country": "United States of America" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Poole Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Poole Inc", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "theory", + "category": "college", + "price": 466.28, + "stock_quantity": 864 + }, + "customer": { + "name": "Lisa Frazier", + "age": 49, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Shelton, Forbes and Garcia", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "partner", + "category": "national", + "price": 193.92, + "stock_quantity": 786 + }, + "customer": { + "name": "Richard Clark", + "age": 68, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Lewis-Joseph", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "both", + "category": "degree", + "price": 307.27, + "stock_quantity": 645 + }, + "customer": { + "name": "Jill Blackwell", + "age": 70, + "country": "Hungary" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gonzales and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gonzales and Sons", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "perhaps", + "category": "citizen", + "price": 949.0, + "stock_quantity": 864 + }, + "customer": { + "name": "Francisco Braun", + "age": 36, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Hill LLC", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "go", + "category": "laugh", + "price": 193.02, + "stock_quantity": 465 + }, + "customer": { + "name": "Kevin Mercer", + "age": 78, + "country": "Suriname" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harris, Schneider and Tucker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harris, Schneider and Tucker", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "president", + "category": "strong", + "price": 368.44, + "stock_quantity": 47 + }, + "customer": { + "name": "Stacey Hayden", + "age": 52, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Ortiz-Silva", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "four", + "category": "happy", + "price": 100.47, + "stock_quantity": 988 + }, + "customer": { + "name": "Ashley Moore", + "age": 23, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Huber, Maxwell and Bates", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "provide", + "category": "bar", + "price": 153.62, + "stock_quantity": 983 + }, + "customer": { + "name": "Jamie Bond", + "age": 71, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Jones, Harris and Webb", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "financial", + "category": "worker", + "price": 884.35, + "stock_quantity": 826 + }, + "customer": { + "name": "Matthew Schmitt", + "age": 29, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Myers-Garcia", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "each", + "category": "and", + "price": 31.18, + "stock_quantity": 402 + }, + "customer": { + "name": "Rhonda Rios", + "age": 40, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Morgan, Garrett and Gray", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "ten", + "category": "body", + "price": 916.53, + "stock_quantity": 414 + }, + "customer": { + "name": "Nicholas Watson", + "age": 60, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Hughes-Figueroa", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "describe", + "category": "southern", + "price": 142.73, + "stock_quantity": 957 + }, + "customer": { + "name": "Sarah Vasquez", + "age": 34, + "country": "Iraq" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Richards-Porter for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Richards-Porter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Richards-Porter", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "knowledge", + "category": "top", + "price": 122.41, + "stock_quantity": 796 + }, + "customer": { + "name": "Kathleen Martin", + "age": 56, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Perez, Mclean and Simon", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "face", + "category": "quality", + "price": 507.4, + "stock_quantity": 804 + }, + "customer": { + "name": "Vincent Mcneil", + "age": 68, + "country": "Martinique" + } + }, + { + "natural_query": "How many orders were placed for Hancock Inc between 2024-01-28 and 2024-06-16?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hancock Inc' AND order_date BETWEEN '2024-01-28' AND '2024-06-16'", + "company": { + "name": "Hancock Inc", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "a", + "category": "speech", + "price": 521.32, + "stock_quantity": 621 + }, + "customer": { + "name": "Eric Villarreal", + "age": 38, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Reeves and Sons", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "goal", + "category": "owner", + "price": 548.23, + "stock_quantity": 154 + }, + "customer": { + "name": "Jonathan Green", + "age": 71, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Flowers Ltd", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "term", + "category": "point", + "price": 725.83, + "stock_quantity": 923 + }, + "customer": { + "name": "Mrs. Jennifer Montgomery", + "age": 76, + "country": "Sweden" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reese Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reese Ltd", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "bring", + "category": "them", + "price": 72.18, + "stock_quantity": 399 + }, + "customer": { + "name": "Jimmy George", + "age": 23, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Munoz-Berger", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "tell", + "category": "strong", + "price": 178.45, + "stock_quantity": 183 + }, + "customer": { + "name": "Carrie Larson", + "age": 43, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Pierce, Roth and Jefferson", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "event", + "category": "pass", + "price": 116.55, + "stock_quantity": 745 + }, + "customer": { + "name": "Betty Mills", + "age": 47, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "George, Mann and Soto", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "technology", + "category": "this", + "price": 166.27, + "stock_quantity": 477 + }, + "customer": { + "name": "Stacey White", + "age": 26, + "country": "Cuba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Curtis Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Curtis Ltd", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "send", + "category": "month", + "price": 814.24, + "stock_quantity": 292 + }, + "customer": { + "name": "Adrienne Chapman", + "age": 37, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Hill-Olson", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "beautiful", + "category": "before", + "price": 967.0, + "stock_quantity": 206 + }, + "customer": { + "name": "Julie Reed", + "age": 29, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Hamilton-Dennis", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "record", + "category": "husband", + "price": 644.71, + "stock_quantity": 804 + }, + "customer": { + "name": "Douglas Knapp", + "age": 72, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Boyle and Sons", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "protect", + "category": "inside", + "price": 708.95, + "stock_quantity": 922 + }, + "customer": { + "name": "Leonard Williams", + "age": 64, + "country": "Romania" + } + }, + { + "natural_query": "List all customers and their total order value for Jones-Johnston.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Jones-Johnston' GROUP BY c.customer_id", + "company": { + "name": "Jones-Johnston", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "center", + "category": "affect", + "price": 221.18, + "stock_quantity": 700 + }, + "customer": { + "name": "Toni Gonzales", + "age": 35, + "country": "Venezuela" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones-Dawson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones-Dawson", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "message", + "category": "push", + "price": 821.66, + "stock_quantity": 168 + }, + "customer": { + "name": "Lisa Giles", + "age": 52, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Kelley, Perkins and Andrews", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "up", + "category": "direction", + "price": 922.53, + "stock_quantity": 465 + }, + "customer": { + "name": "Summer Hogan", + "age": 19, + "country": "Hungary" + } + }, + { + "natural_query": "List all products of Mcgee, Richards and Escobar ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Mcgee, Richards and Escobar' ORDER BY rating DESC", + "company": { + "name": "Mcgee, Richards and Escobar", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "case", + "category": "PM", + "price": 415.56, + "stock_quantity": 599 + }, + "customer": { + "name": "Kevin Wood", + "age": 69, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Obrien-Patterson", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "item", + "category": "wind", + "price": 647.36, + "stock_quantity": 630 + }, + "customer": { + "name": "Monica Martin", + "age": 75, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Coleman-Chavez", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "value", + "category": "people", + "price": 557.86, + "stock_quantity": 591 + }, + "customer": { + "name": "Emily Richard", + "age": 38, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green, Flores and Olson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green, Flores and Olson", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "significant", + "category": "statement", + "price": 68.65, + "stock_quantity": 677 + }, + "customer": { + "name": "Thomas Lee", + "age": 44, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Franklin Group", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "our", + "category": "cup", + "price": 315.05, + "stock_quantity": 559 + }, + "customer": { + "name": "Thomas Farley", + "age": 33, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Smith, Prince and Gomez", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "unit", + "category": "rather", + "price": 310.39, + "stock_quantity": 340 + }, + "customer": { + "name": "Zachary Donaldson", + "age": 64, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Torres-Bell", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "base", + "category": "energy", + "price": 792.14, + "stock_quantity": 533 + }, + "customer": { + "name": "David Parker", + "age": 63, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Welch LLC", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "change", + "category": "few", + "price": 452.3, + "stock_quantity": 504 + }, + "customer": { + "name": "Matthew Myers", + "age": 46, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Barnett-Owens", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "message", + "category": "hotel", + "price": 75.08, + "stock_quantity": 867 + }, + "customer": { + "name": "Adrian White", + "age": 70, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "King, Jackson and Griffin", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "might", + "category": "chair", + "price": 974.8, + "stock_quantity": 400 + }, + "customer": { + "name": "Rebecca Mcdaniel", + "age": 41, + "country": "Australia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dean-Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dean-Jones", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "citizen", + "category": "think", + "price": 79.14, + "stock_quantity": 366 + }, + "customer": { + "name": "Jill Guerrero", + "age": 64, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Norris and Sons", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "offer", + "category": "commercial", + "price": 580.06, + "stock_quantity": 990 + }, + "customer": { + "name": "Cassandra Wells", + "age": 37, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Santana-Brown", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "make", + "category": "second", + "price": 318.33, + "stock_quantity": 863 + }, + "customer": { + "name": "Aaron Solis", + "age": 34, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Alvarado, Taylor and Butler", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "weight", + "category": "old", + "price": 152.16, + "stock_quantity": 757 + }, + "customer": { + "name": "Andrew Thomas", + "age": 76, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Torres-Hawkins", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "federal", + "category": "teacher", + "price": 846.32, + "stock_quantity": 896 + }, + "customer": { + "name": "Stephanie Barrett", + "age": 38, + "country": "Albania" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Walters-Ryan for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Walters-Ryan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Walters-Ryan", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "reason", + "category": "early", + "price": 312.51, + "stock_quantity": 944 + }, + "customer": { + "name": "Carlos Farmer", + "age": 33, + "country": "Ecuador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Duncan-Dean'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Duncan-Dean", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "artist", + "category": "because", + "price": 995.97, + "stock_quantity": 341 + }, + "customer": { + "name": "Matthew Collins", + "age": 18, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Nichols-Watson", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "benefit", + "category": "remain", + "price": 656.11, + "stock_quantity": 679 + }, + "customer": { + "name": "Tina Gallagher", + "age": 32, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Hunt, Mitchell and Burton", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "can", + "category": "end", + "price": 871.41, + "stock_quantity": 66 + }, + "customer": { + "name": "Amanda Lee", + "age": 39, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bender-Porter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bender-Porter", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "bank", + "category": "scene", + "price": 827.05, + "stock_quantity": 485 + }, + "customer": { + "name": "Dana Smith", + "age": 19, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Morgan-Jones", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "key", + "category": "wind", + "price": 223.43, + "stock_quantity": 675 + }, + "customer": { + "name": "Melissa Sosa", + "age": 25, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Acosta Group", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "believe", + "category": "national", + "price": 95.06, + "stock_quantity": 295 + }, + "customer": { + "name": "Ashley Jones", + "age": 74, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Cisneros, Sosa and Wagner", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "last", + "category": "science", + "price": 416.45, + "stock_quantity": 141 + }, + "customer": { + "name": "Andrew Willis", + "age": 79, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Soto, Conner and Nguyen", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "writer", + "category": "event", + "price": 395.23, + "stock_quantity": 254 + }, + "customer": { + "name": "Michelle Harrison", + "age": 31, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Mathis-Becker", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "along", + "category": "fine", + "price": 861.09, + "stock_quantity": 416 + }, + "customer": { + "name": "Robert Barnes", + "age": 65, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Turner, Allen and Oliver", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "practice", + "category": "source", + "price": 765.08, + "stock_quantity": 546 + }, + "customer": { + "name": "Cynthia Jones", + "age": 68, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Mitchell-Smith", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "onto", + "category": "manager", + "price": 264.78, + "stock_quantity": 817 + }, + "customer": { + "name": "Angela Phillips", + "age": 74, + "country": "French Guiana" + } + }, + { + "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'", + "company": { + "name": "Huffman-Hickman", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "expert", + "category": "hand", + "price": 472.58, + "stock_quantity": 574 + }, + "customer": { + "name": "Briana Delacruz", + "age": 44, + "country": "Iraq" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Valdez-Chambers'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Valdez-Chambers", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "check", + "category": "coach", + "price": 741.59, + "stock_quantity": 827 + }, + "customer": { + "name": "Angela Rice", + "age": 41, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Jensen, Hartman and Strong", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "relationship", + "category": "plant", + "price": 927.23, + "stock_quantity": 574 + }, + "customer": { + "name": "Miranda Myers", + "age": 24, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Kelley-Hernandez", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "would", + "category": "success", + "price": 452.96, + "stock_quantity": 577 + }, + "customer": { + "name": "Carla Perry", + "age": 31, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Hinton and Sons", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "simply", + "category": "exist", + "price": 277.91, + "stock_quantity": 557 + }, + "customer": { + "name": "James Parker", + "age": 30, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Richardson", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "sure", + "category": "allow", + "price": 589.76, + "stock_quantity": 948 + }, + "customer": { + "name": "Jeffrey Owens", + "age": 32, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Medina-Barnes", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "analysis", + "category": "radio", + "price": 314.0, + "stock_quantity": 909 + }, + "customer": { + "name": "Jerry Lynch", + "age": 45, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Clark-Gonzalez", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "staff", + "category": "dinner", + "price": 167.08, + "stock_quantity": 998 + }, + "customer": { + "name": "Robert Patel", + "age": 30, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller Ltd", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "step", + "category": "son", + "price": 156.79, + "stock_quantity": 910 + }, + "customer": { + "name": "Michael Williams", + "age": 73, + "country": "Korea" + } + }, + { + "natural_query": "What is the average price of all products for Murillo Group?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Murillo Group'", + "company": { + "name": "Murillo Group", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "single", + "category": "very", + "price": 602.34, + "stock_quantity": 445 + }, + "customer": { + "name": "Patricia Drake", + "age": 80, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Oneal-Murray", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "sister", + "category": "factor", + "price": 265.18, + "stock_quantity": 180 + }, + "customer": { + "name": "Colleen Perez DVM", + "age": 21, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Ruiz and Sons", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "high", + "category": "hair", + "price": 774.83, + "stock_quantity": 930 + }, + "customer": { + "name": "Michele Schneider", + "age": 80, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Smith-Young", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "generation", + "category": "turn", + "price": 734.87, + "stock_quantity": 303 + }, + "customer": { + "name": "Jenny Brown", + "age": 78, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Marsh PLC", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "tree", + "category": "mouth", + "price": 646.75, + "stock_quantity": 234 + }, + "customer": { + "name": "Carol Shepard", + "age": 79, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Stevens Group", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "really", + "category": "certain", + "price": 642.12, + "stock_quantity": 29 + }, + "customer": { + "name": "Grace Cook", + "age": 30, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Stewart, Mcfarland and Williams", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "increase", + "category": "front", + "price": 432.33, + "stock_quantity": 580 + }, + "customer": { + "name": "Joshua Medina", + "age": 68, + "country": "Tonga" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cross, Norman and Rojas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cross, Norman and Rojas", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "against", + "category": "according", + "price": 468.15, + "stock_quantity": 504 + }, + "customer": { + "name": "Joan Flores", + "age": 36, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Morris and Sons", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "left", + "category": "may", + "price": 711.51, + "stock_quantity": 425 + }, + "customer": { + "name": "Matthew Rodgers", + "age": 80, + "country": "Bulgaria" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Lynch-Stuart for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lynch-Stuart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lynch-Stuart", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "often", + "category": "peace", + "price": 536.51, + "stock_quantity": 11 + }, + "customer": { + "name": "Anthony Ward", + "age": 59, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Brown, Garcia and West", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "tell", + "category": "born", + "price": 204.29, + "stock_quantity": 774 + }, + "customer": { + "name": "Sarah Gregory DVM", + "age": 41, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Baker, Price and Norris", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "reduce", + "category": "agreement", + "price": 998.51, + "stock_quantity": 624 + }, + "customer": { + "name": "Jonathan Matthews", + "age": 37, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Boyd, Mitchell and Potter", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "product", + "category": "hair", + "price": 699.54, + "stock_quantity": 601 + }, + "customer": { + "name": "James Smith", + "age": 62, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Hale PLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "fish", + "category": "stay", + "price": 484.39, + "stock_quantity": 365 + }, + "customer": { + "name": "Jennifer Mccormick", + "age": 51, + "country": "Congo" + } + }, + { + "natural_query": "What is the minimum rating of all products for Bailey-Smith?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bailey-Smith'", + "company": { + "name": "Bailey-Smith", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "dog", + "category": "grow", + "price": 56.4, + "stock_quantity": 402 + }, + "customer": { + "name": "Tara Roberts", + "age": 65, + "country": "Turks and Caicos Islands" + } + }, + { + "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'", + "company": { + "name": "Williams PLC", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "nature", + "category": "list", + "price": 997.69, + "stock_quantity": 757 + }, + "customer": { + "name": "Tammy Hardy", + "age": 63, + "country": "Kuwait" + } + }, + { + "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'", + "company": { + "name": "Black and Sons", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "early", + "category": "outside", + "price": 682.4, + "stock_quantity": 490 + }, + "customer": { + "name": "Jeremy Martin", + "age": 79, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Reed, Martin and Berry", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "brother", + "category": "protect", + "price": 553.13, + "stock_quantity": 134 + }, + "customer": { + "name": "Faith Nguyen", + "age": 32, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Hamilton-Romero", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "meeting", + "category": "country", + "price": 22.25, + "stock_quantity": 528 + }, + "customer": { + "name": "Dakota Pierce", + "age": 64, + "country": "Seychelles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Anderson, Cummings and Koch'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Anderson, Cummings and Koch", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "deep", + "category": "admit", + "price": 692.52, + "stock_quantity": 958 + }, + "customer": { + "name": "Austin Jennings", + "age": 51, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Gonzales, Willis and Carter", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "rich", + "category": "represent", + "price": 491.38, + "stock_quantity": 801 + }, + "customer": { + "name": "Samuel Martin", + "age": 77, + "country": "Mexico" + } + }, + { + "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'", + "company": { + "name": "Wright, Erickson and Bass", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "century", + "category": "woman", + "price": 940.72, + "stock_quantity": 982 + }, + "customer": { + "name": "Meghan Brown", + "age": 54, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Sanchez, Smith and Russell", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "perhaps", + "category": "team", + "price": 186.21, + "stock_quantity": 75 + }, + "customer": { + "name": "Tony Jones", + "age": 70, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Livingston and Sons", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "woman", + "category": "detail", + "price": 605.5, + "stock_quantity": 372 + }, + "customer": { + "name": "Donna Mccoy", + "age": 56, + "country": "Cyprus" + } + }, + { + "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'", + "company": { + "name": "Mckay, Hernandez and Wolfe", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "partner", + "category": "tend", + "price": 72.97, + "stock_quantity": 642 + }, + "customer": { + "name": "Robert Hogan", + "age": 56, + "country": "Macao" + } + }, + { + "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'", + "company": { + "name": "Bailey Inc", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "develop", + "category": "officer", + "price": 959.41, + "stock_quantity": 499 + }, + "customer": { + "name": "Isaac Turner", + "age": 21, + "country": "Taiwan" + } + }, + { + "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'", + "company": { + "name": "Michael-Estes", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "million", + "category": "season", + "price": 472.45, + "stock_quantity": 125 + }, + "customer": { + "name": "Robin Gallegos", + "age": 38, + "country": "Mexico" + } + }, + { + "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'", + "company": { + "name": "Williams-Knight", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "then", + "category": "commercial", + "price": 353.12, + "stock_quantity": 223 + }, + "customer": { + "name": "Chad Holden", + "age": 73, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Wolfe-Hensley", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "push", + "category": "impact", + "price": 699.03, + "stock_quantity": 8 + }, + "customer": { + "name": "Maria Henry", + "age": 69, + "country": "Nauru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pacheco-Barry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pacheco-Barry", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "allow", + "category": "spend", + "price": 333.58, + "stock_quantity": 681 + }, + "customer": { + "name": "Erika Wilson", + "age": 28, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "King Inc", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "always", + "category": "race", + "price": 614.52, + "stock_quantity": 808 + }, + "customer": { + "name": "Jacob Smith", + "age": 46, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Logan, Martinez and Reid", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "office", + "category": "group", + "price": 956.94, + "stock_quantity": 131 + }, + "customer": { + "name": "Connor Baker", + "age": 23, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Torres-Lane", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "step", + "category": "nature", + "price": 604.06, + "stock_quantity": 496 + }, + "customer": { + "name": "John Brown", + "age": 57, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Montoya-Gonzalez", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "goal", + "category": "perhaps", + "price": 458.95, + "stock_quantity": 268 + }, + "customer": { + "name": "Kayla Williams", + "age": 76, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Rangel, Henry and Smith", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "product", + "category": "become", + "price": 111.81, + "stock_quantity": 949 + }, + "customer": { + "name": "Valerie Mcintyre", + "age": 24, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Lewis LLC", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "piece", + "category": "dark", + "price": 805.79, + "stock_quantity": 129 + }, + "customer": { + "name": "Thomas Abbott", + "age": 71, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Palmer, Mccoy and Walker", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "eat", + "category": "price", + "price": 827.5, + "stock_quantity": 744 + }, + "customer": { + "name": "Dylan Walsh", + "age": 24, + "country": "Jamaica" + } + }, + { + "natural_query": "What is the total profit for each supplier in Ross, Greene and Hernandez?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ross, Greene and Hernandez' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Ross, Greene and Hernandez", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "relationship", + "category": "arm", + "price": 703.46, + "stock_quantity": 461 + }, + "customer": { + "name": "Dr. Kayla Wilson", + "age": 69, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Jones, Horton and Meadows", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "recognize", + "category": "public", + "price": 837.13, + "stock_quantity": 801 + }, + "customer": { + "name": "Madeline Smith", + "age": 46, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Robertson Inc", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "they", + "category": "individual", + "price": 540.57, + "stock_quantity": 486 + }, + "customer": { + "name": "Nancy Turner", + "age": 19, + "country": "Uruguay" + } + }, + { + "natural_query": "What is the total quantity for each category in Blevins and Sons?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Blevins and Sons' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Blevins and Sons", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "save", + "category": "throughout", + "price": 594.86, + "stock_quantity": 532 + }, + "customer": { + "name": "Richard Murphy", + "age": 62, + "country": "Iran" + } + }, + { + "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'", + "company": { + "name": "Bush-Reyes", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "indeed", + "category": "half", + "price": 889.66, + "stock_quantity": 514 + }, + "customer": { + "name": "Kenneth Cox", + "age": 51, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Burke LLC", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "modern", + "category": "business", + "price": 994.85, + "stock_quantity": 922 + }, + "customer": { + "name": "Jason Rogers", + "age": 60, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Krause PLC", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "box", + "category": "option", + "price": 44.46, + "stock_quantity": 213 + }, + "customer": { + "name": "Michael Poole", + "age": 75, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Smith-Flowers", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "local", + "category": "drop", + "price": 201.02, + "stock_quantity": 557 + }, + "customer": { + "name": "Rhonda Fritz DDS", + "age": 80, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Sullivan, Williams and Carpenter", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "with", + "category": "always", + "price": 268.77, + "stock_quantity": 208 + }, + "customer": { + "name": "Anthony Carroll", + "age": 75, + "country": "Christmas Island" + } + }, + { + "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'", + "company": { + "name": "Thompson, Bennett and Mason", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "particularly", + "category": "what", + "price": 367.84, + "stock_quantity": 837 + }, + "customer": { + "name": "Linda Weiss", + "age": 75, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Miles PLC", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "include", + "category": "put", + "price": 889.63, + "stock_quantity": 766 + }, + "customer": { + "name": "Jamie Higgins", + "age": 38, + "country": "Chile" + } + }, + { + "natural_query": "What are the top 10 products by sales for Martinez and Sons last quarter?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Martinez and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10", + "company": { + "name": "Martinez and Sons", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "century", + "category": "call", + "price": 509.56, + "stock_quantity": 824 + }, + "customer": { + "name": "Phillip Nunez", + "age": 56, + "country": "Northern Mariana Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sandoval, George and Price'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sandoval, George and Price", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "then", + "category": "soldier", + "price": 282.56, + "stock_quantity": 295 + }, + "customer": { + "name": "Michael Miller", + "age": 70, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Burke PLC", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "himself", + "category": "level", + "price": 713.72, + "stock_quantity": 202 + }, + "customer": { + "name": "Debra Ferguson", + "age": 36, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Graham Group", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "event", + "category": "son", + "price": 525.41, + "stock_quantity": 323 + }, + "customer": { + "name": "Gary Warner", + "age": 18, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Mcdonald-Miller", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "suffer", + "category": "ball", + "price": 919.07, + "stock_quantity": 38 + }, + "customer": { + "name": "Christopher Turner", + "age": 22, + "country": "Taiwan" + } + }, + { + "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'", + "company": { + "name": "Ball PLC", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "newspaper", + "category": "no", + "price": 705.05, + "stock_quantity": 878 + }, + "customer": { + "name": "Victor Acosta", + "age": 40, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Santana-Mccarty", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "over", + "category": "today", + "price": 60.58, + "stock_quantity": 618 + }, + "customer": { + "name": "Jessica Peters", + "age": 54, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Gray, Moore and Jimenez", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "stand", + "category": "really", + "price": 402.01, + "stock_quantity": 529 + }, + "customer": { + "name": "Kristin Collins", + "age": 23, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Blair, Hull and Allen", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "sell", + "category": "treatment", + "price": 987.89, + "stock_quantity": 382 + }, + "customer": { + "name": "Elizabeth Lee", + "age": 50, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Holmes, Lewis and Delgado", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "final", + "category": "expert", + "price": 815.67, + "stock_quantity": 86 + }, + "customer": { + "name": "Dr. Brittany Floyd", + "age": 19, + "country": "Ireland" + } + }, + { + "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'", + "company": { + "name": "Cooper, Pacheco and Coleman", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "activity", + "category": "indicate", + "price": 929.24, + "stock_quantity": 935 + }, + "customer": { + "name": "Tina Robbins", + "age": 38, + "country": "United Arab Emirates" + } + }, + { + "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'", + "company": { + "name": "Lawson and Sons", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "support", + "category": "four", + "price": 633.21, + "stock_quantity": 320 + }, + "customer": { + "name": "Mary Brown", + "age": 72, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Curtis and Sons", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "Democrat", + "category": "through", + "price": 948.49, + "stock_quantity": 216 + }, + "customer": { + "name": "Lisa Erickson", + "age": 79, + "country": "Singapore" + } + }, + { + "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'", + "company": { + "name": "Shannon-Gregory", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "stuff", + "category": "wait", + "price": 856.64, + "stock_quantity": 481 + }, + "customer": { + "name": "Cameron White", + "age": 29, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Davis LLC", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "name", + "category": "business", + "price": 287.99, + "stock_quantity": 814 + }, + "customer": { + "name": "Erik Campbell", + "age": 70, + "country": "Saint Lucia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown LLC", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "rather", + "category": "worry", + "price": 35.34, + "stock_quantity": 493 + }, + "customer": { + "name": "Don Holland", + "age": 68, + "country": "American Samoa" + } + }, + { + "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'", + "company": { + "name": "Edwards Inc", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "society", + "category": "boy", + "price": 343.74, + "stock_quantity": 919 + }, + "customer": { + "name": "Jeffery Miller", + "age": 74, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Jones PLC", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "section", + "category": "challenge", + "price": 767.22, + "stock_quantity": 418 + }, + "customer": { + "name": "Mr. David Miller", + "age": 30, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Walters Inc", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "ok", + "category": "form", + "price": 398.31, + "stock_quantity": 47 + }, + "customer": { + "name": "Veronica Ramos", + "age": 31, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Benson Group", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "man", + "category": "size", + "price": 623.63, + "stock_quantity": 160 + }, + "customer": { + "name": "Kimberly Allen", + "age": 27, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Conner LLC", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "traditional", + "category": "dream", + "price": 801.6, + "stock_quantity": 170 + }, + "customer": { + "name": "Matthew Carlson", + "age": 21, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Armstrong-Lewis", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "from", + "category": "reach", + "price": 633.6, + "stock_quantity": 695 + }, + "customer": { + "name": "Terri Hernandez", + "age": 36, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Marquez, Bishop and Jackson", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "store", + "category": "author", + "price": 677.44, + "stock_quantity": 325 + }, + "customer": { + "name": "Amy Wagner", + "age": 56, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Davis Ltd", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "out", + "category": "brother", + "price": 199.42, + "stock_quantity": 574 + }, + "customer": { + "name": "Connor Sharp", + "age": 59, + "country": "Japan" + } + }, + { + "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'", + "company": { + "name": "Chavez, Schultz and Vaughn", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "space", + "category": "art", + "price": 739.45, + "stock_quantity": 755 + }, + "customer": { + "name": "Allison Parks DVM", + "age": 28, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Martinez-Cantu", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "occur", + "category": "never", + "price": 265.78, + "stock_quantity": 526 + }, + "customer": { + "name": "Mrs. Teresa White", + "age": 51, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Moore PLC", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "heavy", + "category": "necessary", + "price": 987.99, + "stock_quantity": 438 + }, + "customer": { + "name": "Lori Johnston", + "age": 53, + "country": "Norway" + } + }, + { + "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'", + "company": { + "name": "Roberts-Hernandez", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "help", + "category": "least", + "price": 640.05, + "stock_quantity": 840 + }, + "customer": { + "name": "Larry Weeks", + "age": 37, + "country": "Western Sahara" + } + }, + { + "natural_query": "List all customers and their total order value for Guerra, Rangel and Harper.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Guerra, Rangel and Harper' GROUP BY c.customer_id", + "company": { + "name": "Guerra, Rangel and Harper", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "compare", + "category": "little", + "price": 380.47, + "stock_quantity": 628 + }, + "customer": { + "name": "Gabriela Johnson", + "age": 67, + "country": "Indonesia" + } + }, + { + "natural_query": "What is the minimum quantity of all products for Johnson LLC?", + "sql_query": "SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Johnson LLC'", + "company": { + "name": "Johnson LLC", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "think", + "category": "use", + "price": 186.53, + "stock_quantity": 535 + }, + "customer": { + "name": "Michelle Strong", + "age": 54, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Mills, Martinez and Graham", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "along", + "category": "give", + "price": 105.54, + "stock_quantity": 889 + }, + "customer": { + "name": "Richard Crawford", + "age": 50, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Mckinney PLC", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "population", + "category": "history", + "price": 529.71, + "stock_quantity": 759 + }, + "customer": { + "name": "Tami James", + "age": 59, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Acosta Group", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "table", + "category": "dinner", + "price": 888.1, + "stock_quantity": 50 + }, + "customer": { + "name": "Anthony Moore", + "age": 73, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Ingram Inc", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "whose", + "category": "occur", + "price": 685.16, + "stock_quantity": 859 + }, + "customer": { + "name": "John Ward", + "age": 78, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Mann, Jones and Brooks", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "recognize", + "category": "writer", + "price": 457.96, + "stock_quantity": 368 + }, + "customer": { + "name": "Tracy Wilson", + "age": 38, + "country": "Wallis and Futuna" + } + }, + { + "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'", + "company": { + "name": "Smith-Cabrera", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "themselves", + "category": "daughter", + "price": 102.29, + "stock_quantity": 928 + }, + "customer": { + "name": "Ricardo Sanders", + "age": 79, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Weber, Alvarado and Frederick", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "project", + "category": "figure", + "price": 129.07, + "stock_quantity": 412 + }, + "customer": { + "name": "Lisa Lopez", + "age": 38, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Snow-Wilson", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "imagine", + "category": "result", + "price": 655.51, + "stock_quantity": 410 + }, + "customer": { + "name": "Dana Collins", + "age": 38, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Allen and Sons", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "white", + "category": "respond", + "price": 95.89, + "stock_quantity": 920 + }, + "customer": { + "name": "Jonathan Cook", + "age": 19, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Price, Garcia and Gonzalez", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "class", + "category": "large", + "price": 559.28, + "stock_quantity": 148 + }, + "customer": { + "name": "Terri Olson", + "age": 48, + "country": "Kiribati" + } + }, + { + "natural_query": "List all products of Romero-Kemp ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Romero-Kemp' ORDER BY stock_quantity ASC", + "company": { + "name": "Romero-Kemp", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "talk", + "category": "science", + "price": 290.67, + "stock_quantity": 813 + }, + "customer": { + "name": "Brandon Wise", + "age": 64, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Ferguson, Osborne and Bailey", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "sport", + "category": "gun", + "price": 95.58, + "stock_quantity": 292 + }, + "customer": { + "name": "Tricia Sharp", + "age": 60, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Gregory Inc", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "beautiful", + "category": "exactly", + "price": 263.71, + "stock_quantity": 190 + }, + "customer": { + "name": "Richard Hughes", + "age": 54, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Foley-Gutierrez", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "goal", + "category": "market", + "price": 748.57, + "stock_quantity": 561 + }, + "customer": { + "name": "Andrew Smith", + "age": 74, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Warren-Sullivan", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "respond", + "category": "mind", + "price": 763.39, + "stock_quantity": 296 + }, + "customer": { + "name": "Gerald Irwin", + "age": 56, + "country": "Liechtenstein" + } + }, + { + "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'", + "company": { + "name": "Cunningham-Black", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "two", + "category": "store", + "price": 615.53, + "stock_quantity": 951 + }, + "customer": { + "name": "Patricia Williams", + "age": 63, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Morrow, Wyatt and Lee", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "door", + "category": "security", + "price": 953.39, + "stock_quantity": 664 + }, + "customer": { + "name": "Shelby Mckee", + "age": 21, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Chandler, Edwards and Burgess", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "product", + "category": "position", + "price": 843.02, + "stock_quantity": 503 + }, + "customer": { + "name": "Douglas Wells", + "age": 55, + "country": "Hong Kong" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'White PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "White PLC", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "garden", + "category": "debate", + "price": 541.59, + "stock_quantity": 11 + }, + "customer": { + "name": "Jaime Harrison", + "age": 63, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "natural_query": "Show me all products in the game category with a price over $400.89.", + "sql_query": "SELECT * FROM products WHERE category = 'game' AND price > 400.89", + "company": { + "name": "King, Goodwin and Scott", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "television", + "category": "game", + "price": 400.89, + "stock_quantity": 68 + }, + "customer": { + "name": "Alexandra Nguyen", + "age": 19, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Hester Ltd", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "movie", + "category": "artist", + "price": 875.57, + "stock_quantity": 969 + }, + "customer": { + "name": "Kathleen Richard", + "age": 21, + "country": "Iceland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lang, Curtis and Levine'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lang, Curtis and Levine", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "individual", + "category": "mission", + "price": 608.87, + "stock_quantity": 245 + }, + "customer": { + "name": "Stacey Owens", + "age": 50, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Leonard-Martin", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "hit", + "category": "product", + "price": 696.43, + "stock_quantity": 743 + }, + "customer": { + "name": "Julia Evans", + "age": 75, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Ramsey-Jones", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "through", + "category": "happy", + "price": 30.32, + "stock_quantity": 459 + }, + "customer": { + "name": "Mark Guzman", + "age": 50, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Perkins PLC", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "card", + "category": "woman", + "price": 309.69, + "stock_quantity": 99 + }, + "customer": { + "name": "Reginald Murray", + "age": 44, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Brown PLC", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "fight", + "category": "course", + "price": 139.48, + "stock_quantity": 959 + }, + "customer": { + "name": "Jorge Bradley", + "age": 65, + "country": "Mauritius" + } + }, + { + "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'", + "company": { + "name": "Tucker, Anderson and Scott", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "summer", + "category": "stuff", + "price": 517.04, + "stock_quantity": 851 + }, + "customer": { + "name": "Madeline Jenkins", + "age": 46, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Clarke, White and Adams", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "how", + "category": "per", + "price": 716.1, + "stock_quantity": 847 + }, + "customer": { + "name": "Jason Hansen", + "age": 30, + "country": "Mozambique" + } + }, + { + "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'", + "company": { + "name": "Anderson, Navarro and Banks", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "keep", + "category": "question", + "price": 470.1, + "stock_quantity": 212 + }, + "customer": { + "name": "Logan Phillips", + "age": 80, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Greene, Pace and Blanchard", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "visit", + "category": "only", + "price": 465.53, + "stock_quantity": 225 + }, + "customer": { + "name": "Brandon Brown", + "age": 51, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Weaver-Smith", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "though", + "category": "thus", + "price": 778.94, + "stock_quantity": 120 + }, + "customer": { + "name": "Jacqueline Carr", + "age": 77, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Armstrong and Sons", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "easy", + "category": "heavy", + "price": 621.18, + "stock_quantity": 963 + }, + "customer": { + "name": "Kim Beasley", + "age": 77, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Gray-Pena", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "operation", + "category": "girl", + "price": 219.14, + "stock_quantity": 152 + }, + "customer": { + "name": "Jessica Meza", + "age": 52, + "country": "India" + } + }, + { + "natural_query": "How many orders were placed for Phelps-Reynolds between 2023-11-01 and 2024-03-05?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Phelps-Reynolds' AND order_date BETWEEN '2023-11-01' AND '2024-03-05'", + "company": { + "name": "Phelps-Reynolds", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "very", + "category": "respond", + "price": 653.72, + "stock_quantity": 177 + }, + "customer": { + "name": "Joseph Hurley", + "age": 33, + "country": "Bolivia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lee-Bailey'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lee-Bailey", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "group", + "category": "truth", + "price": 931.16, + "stock_quantity": 623 + }, + "customer": { + "name": "Debbie King", + "age": 79, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Harrison, Mitchell and Barrera", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "specific", + "category": "today", + "price": 214.13, + "stock_quantity": 938 + }, + "customer": { + "name": "Jaime Henderson", + "age": 70, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Holland and Sons", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "like", + "category": "voice", + "price": 149.02, + "stock_quantity": 787 + }, + "customer": { + "name": "Jeremiah Watkins", + "age": 28, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Lara and Sons", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "upon", + "category": "actually", + "price": 906.36, + "stock_quantity": 83 + }, + "customer": { + "name": "Gregory Scott", + "age": 19, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Woodward, Smith and Garcia", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "despite", + "category": "somebody", + "price": 318.8, + "stock_quantity": 847 + }, + "customer": { + "name": "Morgan Hernandez", + "age": 23, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Decker Group", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "research", + "category": "list", + "price": 13.59, + "stock_quantity": 478 + }, + "customer": { + "name": "Jared Brewer DDS", + "age": 36, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Cummings LLC", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "alone", + "category": "tax", + "price": 608.37, + "stock_quantity": 749 + }, + "customer": { + "name": "Evelyn Lutz", + "age": 26, + "country": "Sao Tome and Principe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gomez Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gomez Group", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "admit", + "category": "key", + "price": 788.62, + "stock_quantity": 549 + }, + "customer": { + "name": "Valerie Larson", + "age": 51, + "country": "Papua New Guinea" + } + }, + { + "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'", + "company": { + "name": "Torres, Delacruz and Alexander", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "water", + "category": "use", + "price": 823.69, + "stock_quantity": 747 + }, + "customer": { + "name": "Kevin Ellis", + "age": 76, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Goodman Inc", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "executive", + "category": "Mr", + "price": 247.97, + "stock_quantity": 546 + }, + "customer": { + "name": "Michael Gomez", + "age": 70, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Hughes and Sons", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "modern", + "category": "especially", + "price": 808.43, + "stock_quantity": 418 + }, + "customer": { + "name": "Hector Taylor", + "age": 78, + "country": "Mayotte" + } + }, + { + "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'", + "company": { + "name": "Rios, Mitchell and Harris", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "music", + "category": "probably", + "price": 624.47, + "stock_quantity": 282 + }, + "customer": { + "name": "Matthew Day", + "age": 28, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Alvarez LLC", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "boy", + "category": "eight", + "price": 920.07, + "stock_quantity": 793 + }, + "customer": { + "name": "Stephen Powell", + "age": 57, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Reese-Riley", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "myself", + "category": "shake", + "price": 999.06, + "stock_quantity": 44 + }, + "customer": { + "name": "Lynn Gallagher", + "age": 42, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Kerr PLC", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "writer", + "category": "teach", + "price": 531.23, + "stock_quantity": 845 + }, + "customer": { + "name": "Todd Davis", + "age": 24, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Brown, Humphrey and Gaines", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "data", + "category": "see", + "price": 442.33, + "stock_quantity": 431 + }, + "customer": { + "name": "Jennifer Rodriguez", + "age": 75, + "country": "Korea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Phelps, Smith and Mcmahon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Phelps, Smith and Mcmahon", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "leg", + "category": "town", + "price": 270.5, + "stock_quantity": 870 + }, + "customer": { + "name": "Jeffrey Holland PhD", + "age": 26, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Pierce-Brady", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "break", + "category": "return", + "price": 556.17, + "stock_quantity": 498 + }, + "customer": { + "name": "Gene Brooks", + "age": 60, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Wilson-Wright", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "speak", + "category": "off", + "price": 188.13, + "stock_quantity": 811 + }, + "customer": { + "name": "Douglas Williams", + "age": 31, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Ortiz PLC", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "another", + "category": "listen", + "price": 426.93, + "stock_quantity": 275 + }, + "customer": { + "name": "Michael Mcgee", + "age": 34, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Johnson, James and Bailey", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "question", + "category": "lead", + "price": 451.67, + "stock_quantity": 258 + }, + "customer": { + "name": "Bruce King", + "age": 79, + "country": "Tajikistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Powers Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Powers Group", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "sure", + "category": "sometimes", + "price": 525.02, + "stock_quantity": 466 + }, + "customer": { + "name": "Jimmy Mcdaniel", + "age": 30, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Phelps Ltd", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "identify", + "category": "happen", + "price": 87.96, + "stock_quantity": 393 + }, + "customer": { + "name": "Thomas Kelly", + "age": 39, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Valentine, Quinn and Wilson", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "peace", + "category": "major", + "price": 779.33, + "stock_quantity": 878 + }, + "customer": { + "name": "Ricky Bryant III", + "age": 50, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Green-Oliver", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "call", + "category": "add", + "price": 551.68, + "stock_quantity": 138 + }, + "customer": { + "name": "Lorraine Duffy", + "age": 42, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Sims-Johnson", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "hotel", + "category": "control", + "price": 646.88, + "stock_quantity": 684 + }, + "customer": { + "name": "Joshua Bell", + "age": 72, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Ramos LLC", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "well", + "category": "push", + "price": 975.92, + "stock_quantity": 319 + }, + "customer": { + "name": "Michael Soto MD", + "age": 41, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Young Inc", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "far", + "category": "she", + "price": 566.49, + "stock_quantity": 306 + }, + "customer": { + "name": "Rebecca Woods", + "age": 56, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Brown-Martinez", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "mother", + "category": "carry", + "price": 346.67, + "stock_quantity": 184 + }, + "customer": { + "name": "Nicholas Mcmillan", + "age": 36, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Robinson-Hansen", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "prevent", + "category": "couple", + "price": 992.18, + "stock_quantity": 852 + }, + "customer": { + "name": "Tiffany Thomas", + "age": 29, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Lynch, Gardner and Morgan", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "garden", + "category": "fast", + "price": 807.78, + "stock_quantity": 320 + }, + "customer": { + "name": "Madison Barr", + "age": 66, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Mcdonald, Martinez and Chen", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "end", + "category": "front", + "price": 274.05, + "stock_quantity": 23 + }, + "customer": { + "name": "Cheryl Galvan", + "age": 51, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "James, Thomas and Barrett", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "pull", + "category": "exist", + "price": 68.99, + "stock_quantity": 78 + }, + "customer": { + "name": "Nicholas Hughes", + "age": 27, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Castro Ltd", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "arm", + "category": "break", + "price": 202.56, + "stock_quantity": 723 + }, + "customer": { + "name": "Jason Hardy", + "age": 55, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Hicks, Andrade and Norton", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "check", + "category": "subject", + "price": 277.12, + "stock_quantity": 669 + }, + "customer": { + "name": "Katie Smith", + "age": 57, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Watson, Jackson and Martin", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "memory", + "category": "area", + "price": 823.46, + "stock_quantity": 211 + }, + "customer": { + "name": "Gabrielle Roberts", + "age": 69, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Horton Group", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "discuss", + "category": "prepare", + "price": 139.62, + "stock_quantity": 523 + }, + "customer": { + "name": "Gary Banks", + "age": 19, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Sanchez Inc", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "national", + "category": "turn", + "price": 621.64, + "stock_quantity": 956 + }, + "customer": { + "name": "Christopher Ford", + "age": 29, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Wallace-Cook", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "baby", + "category": "page", + "price": 951.57, + "stock_quantity": 341 + }, + "customer": { + "name": "Julie Miller", + "age": 72, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Wilson-Mitchell", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "wide", + "category": "total", + "price": 77.43, + "stock_quantity": 257 + }, + "customer": { + "name": "Sandra Duke", + "age": 45, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Blanchard Ltd", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "station", + "category": "image", + "price": 957.34, + "stock_quantity": 74 + }, + "customer": { + "name": "Martha Reid", + "age": 41, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Perez and Sons", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "theory", + "category": "away", + "price": 255.18, + "stock_quantity": 320 + }, + "customer": { + "name": "Derek Miller", + "age": 58, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Espinoza Group", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "trade", + "category": "ten", + "price": 572.42, + "stock_quantity": 893 + }, + "customer": { + "name": "Anna Baker", + "age": 73, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Miller, Moon and Griffin", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "why", + "category": "case", + "price": 635.79, + "stock_quantity": 106 + }, + "customer": { + "name": "Gregory Price", + "age": 59, + "country": "Faroe Islands" + } + }, + { + "natural_query": "List all products of Morse Ltd ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Morse Ltd' ORDER BY rating ASC", + "company": { + "name": "Morse Ltd", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "hope", + "category": "religious", + "price": 768.16, + "stock_quantity": 106 + }, + "customer": { + "name": "Nicholas Garner", + "age": 54, + "country": "Tokelau" + } + }, + { + "natural_query": "How many orders were placed for Martin LLC between 2024-09-06 and 2024-09-08?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin LLC' AND order_date BETWEEN '2024-09-06' AND '2024-09-08'", + "company": { + "name": "Martin LLC", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "hair", + "category": "religious", + "price": 313.62, + "stock_quantity": 939 + }, + "customer": { + "name": "Jennifer French", + "age": 30, + "country": "United States Minor Outlying Islands" + } + }, + { + "natural_query": "What is the total profit for each supplier in Herman-Ford?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Herman-Ford' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Herman-Ford", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "bag", + "category": "artist", + "price": 264.46, + "stock_quantity": 833 + }, + "customer": { + "name": "Kristie Allen", + "age": 43, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Rowe Group", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "miss", + "category": "different", + "price": 317.84, + "stock_quantity": 532 + }, + "customer": { + "name": "Debbie Walsh", + "age": 74, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Garrett, Herman and Bradshaw", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "material", + "category": "again", + "price": 715.93, + "stock_quantity": 251 + }, + "customer": { + "name": "Alexander Fowler", + "age": 24, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Daniels, Edwards and Wells", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "politics", + "category": "million", + "price": 814.61, + "stock_quantity": 972 + }, + "customer": { + "name": "Carolyn Johnson", + "age": 69, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Simpson-York", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "loss", + "category": "development", + "price": 714.13, + "stock_quantity": 634 + }, + "customer": { + "name": "Joseph Stevens", + "age": 19, + "country": "Argentina" + } + }, + { + "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'", + "company": { + "name": "Mendez and Sons", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "consider", + "category": "million", + "price": 96.32, + "stock_quantity": 800 + }, + "customer": { + "name": "Hannah Ruiz", + "age": 35, + "country": "Puerto Rico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garza Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garza Inc", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "cause", + "category": "discover", + "price": 945.93, + "stock_quantity": 892 + }, + "customer": { + "name": "Deborah Gomez", + "age": 48, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Zamora-Peterson", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "learn", + "category": "effort", + "price": 248.27, + "stock_quantity": 64 + }, + "customer": { + "name": "Katherine Randall", + "age": 47, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Lucas, Torres and Taylor", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "art", + "category": "write", + "price": 195.86, + "stock_quantity": 522 + }, + "customer": { + "name": "Heather Hardin", + "age": 33, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Green Group", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "hear", + "category": "try", + "price": 382.55, + "stock_quantity": 920 + }, + "customer": { + "name": "Heather Herrera", + "age": 77, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Saunders, Potter and Mueller", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "available", + "category": "table", + "price": 408.67, + "stock_quantity": 534 + }, + "customer": { + "name": "Karen Carney", + "age": 18, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Johnson Ltd", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "large", + "category": "low", + "price": 735.7, + "stock_quantity": 112 + }, + "customer": { + "name": "Cory Collins", + "age": 42, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Moore, Reed and Hanna", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "choose", + "category": "Republican", + "price": 718.59, + "stock_quantity": 769 + }, + "customer": { + "name": "Barbara Dean", + "age": 48, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Martinez, Holmes and Dennis", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "myself", + "category": "among", + "price": 246.9, + "stock_quantity": 579 + }, + "customer": { + "name": "Sarah Schmidt", + "age": 72, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Montgomery, Mckay and Brooks", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "character", + "category": "other", + "price": 940.99, + "stock_quantity": 323 + }, + "customer": { + "name": "Chad Bullock", + "age": 64, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Carson Ltd", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "state", + "category": "region", + "price": 294.51, + "stock_quantity": 461 + }, + "customer": { + "name": "Rebecca Jenkins", + "age": 56, + "country": "Germany" + } + }, + { + "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'", + "company": { + "name": "Bell-Cunningham", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "important", + "category": "use", + "price": 121.64, + "stock_quantity": 679 + }, + "customer": { + "name": "Alexis Barnes", + "age": 35, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Glover, Vang and Beard", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "father", + "category": "south", + "price": 328.75, + "stock_quantity": 27 + }, + "customer": { + "name": "Bryan Taylor", + "age": 18, + "country": "Saint Kitts and Nevis" + } + }, + { + "natural_query": "What is the total price of all products for Griffin-Owens?", + "sql_query": "SELECT TOTAL(price) as result FROM products WHERE company_name = 'Griffin-Owens'", + "company": { + "name": "Griffin-Owens", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "sea", + "category": "easy", + "price": 147.43, + "stock_quantity": 390 + }, + "customer": { + "name": "Joshua Smith", + "age": 54, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Jackson Group", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "buy", + "category": "nothing", + "price": 173.22, + "stock_quantity": 290 + }, + "customer": { + "name": "Gregory Klein", + "age": 20, + "country": "Greece" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez, Curry and Blankenship'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez, Curry and Blankenship", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "today", + "category": "maintain", + "price": 176.82, + "stock_quantity": 987 + }, + "customer": { + "name": "James Thompson", + "age": 22, + "country": "Burundi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stuart, Pineda and Rodriguez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stuart, Pineda and Rodriguez", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "budget", + "category": "education", + "price": 822.52, + "stock_quantity": 698 + }, + "customer": { + "name": "Katherine Farrell", + "age": 52, + "country": "Uzbekistan" + } + }, + { + "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'", + "company": { + "name": "Brandt Ltd", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "hold", + "category": "table", + "price": 340.21, + "stock_quantity": 655 + }, + "customer": { + "name": "Michelle Jones", + "age": 30, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Bennett and Sons", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "rather", + "category": "actually", + "price": 299.54, + "stock_quantity": 470 + }, + "customer": { + "name": "Scott Brown", + "age": 76, + "country": "Afghanistan" + } + }, + { + "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'", + "company": { + "name": "Coleman, Lee and James", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "during", + "category": "wonder", + "price": 899.65, + "stock_quantity": 361 + }, + "customer": { + "name": "Brittany Foster", + "age": 26, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Horn, Roman and Martinez", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "language", + "category": "building", + "price": 784.55, + "stock_quantity": 559 + }, + "customer": { + "name": "Melissa Gutierrez", + "age": 69, + "country": "Albania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moreno, Rivera and Brock'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moreno, Rivera and Brock", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "prevent", + "category": "final", + "price": 88.44, + "stock_quantity": 697 + }, + "customer": { + "name": "Robert Castillo", + "age": 63, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Hernandez, Dennis and Graham", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "seek", + "category": "although", + "price": 269.65, + "stock_quantity": 896 + }, + "customer": { + "name": "Taylor Perez", + "age": 29, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Diaz, Wilson and Wong", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "million", + "category": "career", + "price": 744.99, + "stock_quantity": 4 + }, + "customer": { + "name": "Mitchell Barker", + "age": 30, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Gallagher PLC", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "respond", + "category": "yeah", + "price": 244.6, + "stock_quantity": 649 + }, + "customer": { + "name": "Kathryn Acosta", + "age": 34, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Martin PLC", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "save", + "category": "camera", + "price": 138.34, + "stock_quantity": 927 + }, + "customer": { + "name": "James Cook", + "age": 65, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Thompson PLC", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "act", + "category": "help", + "price": 635.86, + "stock_quantity": 595 + }, + "customer": { + "name": "John Rice", + "age": 73, + "country": "Uganda" + } + }, + { + "natural_query": "What is the minimum quantity of all products for Jenkins Inc?", + "sql_query": "SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Jenkins Inc'", + "company": { + "name": "Jenkins Inc", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "provide", + "category": "conference", + "price": 50.97, + "stock_quantity": 682 + }, + "customer": { + "name": "Shannon Perry", + "age": 80, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Dillon, Fuentes and Black", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "design", + "category": "whose", + "price": 77.27, + "stock_quantity": 775 + }, + "customer": { + "name": "Carla Peterson", + "age": 19, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Lewis PLC", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "theory", + "category": "worry", + "price": 20.31, + "stock_quantity": 693 + }, + "customer": { + "name": "Amy Shaw", + "age": 23, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Jimenez-Bass", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "subject", + "category": "know", + "price": 595.88, + "stock_quantity": 390 + }, + "customer": { + "name": "Stacy Garcia", + "age": 23, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Lewis-White", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "brother", + "category": "event", + "price": 258.22, + "stock_quantity": 603 + }, + "customer": { + "name": "Jason Hobbs", + "age": 27, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Hunter Inc", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "new", + "category": "specific", + "price": 492.26, + "stock_quantity": 929 + }, + "customer": { + "name": "Hannah Ortiz", + "age": 19, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Roberts-Richardson", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "senior", + "category": "green", + "price": 271.75, + "stock_quantity": 145 + }, + "customer": { + "name": "Shannon Estrada", + "age": 54, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Wilson-Alvarado", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "heavy", + "category": "list", + "price": 32.97, + "stock_quantity": 960 + }, + "customer": { + "name": "Andrea Hunt", + "age": 34, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Williams, Mcguire and Mcdaniel", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "meet", + "category": "but", + "price": 795.97, + "stock_quantity": 549 + }, + "customer": { + "name": "Robert Mccarthy", + "age": 18, + "country": "Romania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hunter, Sanchez and Boyd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hunter, Sanchez and Boyd", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "huge", + "category": "window", + "price": 537.16, + "stock_quantity": 51 + }, + "customer": { + "name": "William Jones", + "age": 65, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Orr, Zavala and Colon", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "door", + "category": "event", + "price": 441.39, + "stock_quantity": 879 + }, + "customer": { + "name": "Renee Burke", + "age": 61, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Banks, Martin and Williams", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "receive", + "category": "near", + "price": 95.97, + "stock_quantity": 742 + }, + "customer": { + "name": "Wayne Solomon", + "age": 18, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Meyer, Arnold and Garcia", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "matter", + "category": "something", + "price": 316.35, + "stock_quantity": 867 + }, + "customer": { + "name": "Shannon Henderson", + "age": 49, + "country": "Portugal" + } + }, + { + "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'", + "company": { + "name": "Hayes, Pittman and Browning", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "probably", + "category": "particularly", + "price": 924.17, + "stock_quantity": 320 + }, + "customer": { + "name": "Molly Rhodes", + "age": 23, + "country": "Lao People's Democratic Republic" + } + }, + { + "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'", + "company": { + "name": "Sullivan-Hunter", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "suffer", + "category": "affect", + "price": 221.2, + "stock_quantity": 842 + }, + "customer": { + "name": "Stephen Soto", + "age": 46, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Cohen Group", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "media", + "category": "concern", + "price": 288.64, + "stock_quantity": 996 + }, + "customer": { + "name": "Shaun Rocha", + "age": 22, + "country": "Reunion" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fox-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fox-Anderson", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "major", + "category": "like", + "price": 120.49, + "stock_quantity": 49 + }, + "customer": { + "name": "Jack Morris", + "age": 35, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Wilson, Schultz and Mitchell", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "Republican", + "category": "consider", + "price": 625.11, + "stock_quantity": 864 + }, + "customer": { + "name": "Jessica Juarez", + "age": 77, + "country": "Panama" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Freeman-Barber'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Freeman-Barber", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "TV", + "category": "since", + "price": 582.96, + "stock_quantity": 334 + }, + "customer": { + "name": "Lisa Kelly", + "age": 42, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Sexton, Perry and Gibson", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "concern", + "category": "court", + "price": 696.26, + "stock_quantity": 314 + }, + "customer": { + "name": "Deborah Tran", + "age": 28, + "country": "French Polynesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carey-Aguilar'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carey-Aguilar", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "father", + "category": "avoid", + "price": 812.5, + "stock_quantity": 297 + }, + "customer": { + "name": "Daniel Gentry", + "age": 18, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "King-Perez", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "affect", + "category": "save", + "price": 757.84, + "stock_quantity": 140 + }, + "customer": { + "name": "Christopher Lee", + "age": 69, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Johnson-Schroeder", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "range", + "category": "agency", + "price": 413.7, + "stock_quantity": 954 + }, + "customer": { + "name": "Ryan Sutton", + "age": 56, + "country": "Russian Federation" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor LLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "sister", + "category": "yes", + "price": 649.84, + "stock_quantity": 291 + }, + "customer": { + "name": "Nicole Sanchez", + "age": 40, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Morales Group", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "wind", + "category": "economic", + "price": 168.26, + "stock_quantity": 247 + }, + "customer": { + "name": "Renee Warren", + "age": 30, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Ramirez, Padilla and Foster", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "medical", + "category": "court", + "price": 123.84, + "stock_quantity": 799 + }, + "customer": { + "name": "Melinda Smith", + "age": 59, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Castillo-Hartman", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "site", + "category": "agent", + "price": 886.58, + "stock_quantity": 731 + }, + "customer": { + "name": "Megan Ellis", + "age": 63, + "country": "Aruba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Maxwell-Sullivan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Maxwell-Sullivan", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "require", + "category": "land", + "price": 180.05, + "stock_quantity": 957 + }, + "customer": { + "name": "Matthew Wright", + "age": 58, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Olson-Collins", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "many", + "category": "environment", + "price": 789.94, + "stock_quantity": 136 + }, + "customer": { + "name": "Carly Porter", + "age": 49, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Waller, Chapman and Owens", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "clear", + "category": "worry", + "price": 602.43, + "stock_quantity": 691 + }, + "customer": { + "name": "Alexander Martinez", + "age": 25, + "country": "Cocos (Keeling) Islands" + } + }, + { + "natural_query": "What is the total sales for each supplier in Owens-Morgan?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Owens-Morgan' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Owens-Morgan", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "price", + "category": "bed", + "price": 487.05, + "stock_quantity": 926 + }, + "customer": { + "name": "Dana Thomas", + "age": 65, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Franklin-Peck", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "impact", + "category": "officer", + "price": 279.41, + "stock_quantity": 356 + }, + "customer": { + "name": "Michael Powers", + "age": 32, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Murray-Myers", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "expert", + "category": "example", + "price": 401.11, + "stock_quantity": 760 + }, + "customer": { + "name": "Joseph Jackson", + "age": 20, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Petersen and Sons", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "himself", + "category": "condition", + "price": 494.87, + "stock_quantity": 105 + }, + "customer": { + "name": "Emily Jones DDS", + "age": 38, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Huff, Meyers and Jackson", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "PM", + "category": "key", + "price": 44.89, + "stock_quantity": 530 + }, + "customer": { + "name": "Chad Ball", + "age": 79, + "country": "Thailand" + } + }, + { + "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'", + "company": { + "name": "Flores LLC", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "effect", + "category": "effect", + "price": 241.57, + "stock_quantity": 836 + }, + "customer": { + "name": "Cynthia Rodriguez", + "age": 49, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Weber, Reed and Martin", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "take", + "category": "bank", + "price": 360.84, + "stock_quantity": 504 + }, + "customer": { + "name": "Shannon James", + "age": 20, + "country": "Bosnia and Herzegovina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Avery Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Avery Group", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "professional", + "category": "give", + "price": 772.93, + "stock_quantity": 176 + }, + "customer": { + "name": "Robert Soto", + "age": 19, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Kent, Duncan and Jones", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "country", + "category": "care", + "price": 889.58, + "stock_quantity": 672 + }, + "customer": { + "name": "Richard Howell", + "age": 68, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Andrews and Sons", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "career", + "category": "high", + "price": 165.49, + "stock_quantity": 772 + }, + "customer": { + "name": "Melissa Acosta", + "age": 57, + "country": "Montserrat" + } + }, + { + "natural_query": "List all products of Mendez Ltd ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Mendez Ltd' ORDER BY stock_quantity DESC", + "company": { + "name": "Mendez Ltd", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "nearly", + "category": "table", + "price": 61.53, + "stock_quantity": 809 + }, + "customer": { + "name": "Susan Foster", + "age": 32, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Powell Group", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "sign", + "category": "at", + "price": 592.16, + "stock_quantity": 687 + }, + "customer": { + "name": "Brandy Dalton", + "age": 26, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Myers Group", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "method", + "category": "push", + "price": 318.12, + "stock_quantity": 278 + }, + "customer": { + "name": "Barry Nicholson", + "age": 78, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Love-Foster", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "test", + "category": "report", + "price": 200.6, + "stock_quantity": 523 + }, + "customer": { + "name": "Lisa Ray", + "age": 54, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Terrell-Thompson", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "all", + "category": "somebody", + "price": 644.68, + "stock_quantity": 461 + }, + "customer": { + "name": "William Brooks", + "age": 42, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Johnson-Blackburn", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "nor", + "category": "paper", + "price": 45.89, + "stock_quantity": 520 + }, + "customer": { + "name": "Brandi Smith", + "age": 80, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Taylor, Martinez and Davis", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "coach", + "category": "PM", + "price": 53.55, + "stock_quantity": 391 + }, + "customer": { + "name": "Kathryn Robinson", + "age": 53, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Barron and Sons", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "choose", + "category": "score", + "price": 919.47, + "stock_quantity": 712 + }, + "customer": { + "name": "Jennifer Graham", + "age": 24, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Velazquez, Roberts and Parker", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "bring", + "category": "several", + "price": 512.47, + "stock_quantity": 104 + }, + "customer": { + "name": "Ariel Johnson", + "age": 27, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Parks-Willis", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "current", + "category": "than", + "price": 664.96, + "stock_quantity": 192 + }, + "customer": { + "name": "Kevin Love", + "age": 35, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Kelley, Barron and Craig", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "friend", + "category": "finally", + "price": 44.16, + "stock_quantity": 81 + }, + "customer": { + "name": "Brett Chaney", + "age": 67, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Curry, Rodriguez and Baker", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "draw", + "category": "wife", + "price": 712.57, + "stock_quantity": 301 + }, + "customer": { + "name": "Mary Farmer", + "age": 43, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Coffey-Torres", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "under", + "category": "clear", + "price": 199.56, + "stock_quantity": 132 + }, + "customer": { + "name": "Thomas Garcia", + "age": 54, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Montgomery, Cook and Perez", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "middle", + "category": "woman", + "price": 598.98, + "stock_quantity": 962 + }, + "customer": { + "name": "Marcus Brown", + "age": 79, + "country": "New Caledonia" + } + }, + { + "natural_query": "Show me all products in the star category with a price over $345.29.", + "sql_query": "SELECT * FROM products WHERE category = 'star' AND price > 345.29", + "company": { + "name": "Nguyen, Mendoza and Watson", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "increase", + "category": "star", + "price": 345.29, + "stock_quantity": 690 + }, + "customer": { + "name": "Sharon Clark", + "age": 63, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Adams Ltd", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "wrong", + "category": "eye", + "price": 826.92, + "stock_quantity": 580 + }, + "customer": { + "name": "James Howard", + "age": 57, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Vega Inc", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "discuss", + "category": "since", + "price": 559.04, + "stock_quantity": 874 + }, + "customer": { + "name": "Robert Wilson", + "age": 24, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Alexander-Jackson", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "include", + "category": "walk", + "price": 145.82, + "stock_quantity": 815 + }, + "customer": { + "name": "Krystal Holt", + "age": 70, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Phillips Ltd", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "any", + "category": "property", + "price": 998.95, + "stock_quantity": 89 + }, + "customer": { + "name": "Jennifer Love", + "age": 33, + "country": "Denmark" + } + }, + { + "natural_query": "What are the top 5 products by revenue for Christensen-Galloway all time?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Christensen-Galloway' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5", + "company": { + "name": "Christensen-Galloway", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "thus", + "category": "large", + "price": 875.99, + "stock_quantity": 955 + }, + "customer": { + "name": "Jared Gonzalez", + "age": 50, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Brown PLC", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "clearly", + "category": "force", + "price": 286.05, + "stock_quantity": 750 + }, + "customer": { + "name": "Richard Johnson", + "age": 39, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Mcdonald, Byrd and Thompson", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "compare", + "category": "risk", + "price": 827.9, + "stock_quantity": 522 + }, + "customer": { + "name": "Teresa Hobbs", + "age": 32, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Duncan-Lewis", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "discussion", + "category": "player", + "price": 169.88, + "stock_quantity": 586 + }, + "customer": { + "name": "Justin Roman", + "age": 68, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Chavez, Vasquez and Hampton", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "every", + "category": "take", + "price": 189.51, + "stock_quantity": 302 + }, + "customer": { + "name": "David Reese", + "age": 37, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Thompson-Harris", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "than", + "category": "sport", + "price": 770.52, + "stock_quantity": 347 + }, + "customer": { + "name": "Kathryn Mack", + "age": 26, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Rios-Perez", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "spring", + "category": "employee", + "price": 587.83, + "stock_quantity": 493 + }, + "customer": { + "name": "Amy Campbell", + "age": 68, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Johnson, Christian and Ryan", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "writer", + "category": "family", + "price": 203.69, + "stock_quantity": 346 + }, + "customer": { + "name": "Brenda Hill", + "age": 30, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Castillo, Campbell and Brown", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "whatever", + "category": "meet", + "price": 432.89, + "stock_quantity": 930 + }, + "customer": { + "name": "Alexis Foster", + "age": 52, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Morrison Ltd", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "across", + "category": "agent", + "price": 912.45, + "stock_quantity": 492 + }, + "customer": { + "name": "Brandy Reynolds", + "age": 68, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Frazier-Hamilton", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "someone", + "category": "yard", + "price": 504.55, + "stock_quantity": 576 + }, + "customer": { + "name": "Zachary Butler", + "age": 41, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Bass, Flowers and Green", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "office", + "category": "above", + "price": 530.13, + "stock_quantity": 693 + }, + "customer": { + "name": "Alexander Walker", + "age": 70, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Robertson and Sons", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "wish", + "category": "result", + "price": 94.85, + "stock_quantity": 965 + }, + "customer": { + "name": "Ashley Castillo", + "age": 19, + "country": "Samoa" + } + }, + { + "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'", + "company": { + "name": "Barton, Gibson and Berry", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "region", + "category": "song", + "price": 922.85, + "stock_quantity": 88 + }, + "customer": { + "name": "Anne Hamilton", + "age": 26, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Johnson-Kaiser", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "themselves", + "category": "growth", + "price": 295.56, + "stock_quantity": 663 + }, + "customer": { + "name": "Melinda Saunders", + "age": 52, + "country": "Mayotte" + } + }, + { + "natural_query": "Show me all products in the clearly category with a price over $95.42.", + "sql_query": "SELECT * FROM products WHERE category = 'clearly' AND price > 95.42", + "company": { + "name": "Brandt, Morales and Carr", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "condition", + "category": "clearly", + "price": 95.42, + "stock_quantity": 916 + }, + "customer": { + "name": "Donald Ballard", + "age": 27, + "country": "New Caledonia" + } + }, + { + "natural_query": "What is the total price of all products for Calhoun PLC?", + "sql_query": "SELECT TOTAL(price) as result FROM products WHERE company_name = 'Calhoun PLC'", + "company": { + "name": "Calhoun PLC", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "story", + "category": "yes", + "price": 161.85, + "stock_quantity": 903 + }, + "customer": { + "name": "Beth Olson", + "age": 53, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Shaffer Ltd", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "itself", + "category": "nation", + "price": 950.0, + "stock_quantity": 744 + }, + "customer": { + "name": "Paula Black", + "age": 57, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Durham-Reed", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "similar", + "category": "worker", + "price": 212.66, + "stock_quantity": 388 + }, + "customer": { + "name": "Emily Carter", + "age": 66, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Wilson, Harding and Jones", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "their", + "category": "forward", + "price": 961.14, + "stock_quantity": 864 + }, + "customer": { + "name": "Brenda Williams", + "age": 25, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Wilson-Serrano", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "option", + "category": "strong", + "price": 646.19, + "stock_quantity": 873 + }, + "customer": { + "name": "Elizabeth Cannon", + "age": 25, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Casey-Boyd", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "government", + "category": "new", + "price": 394.51, + "stock_quantity": 687 + }, + "customer": { + "name": "Kathleen Stanley", + "age": 67, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Grant PLC", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "beat", + "category": "continue", + "price": 899.56, + "stock_quantity": 954 + }, + "customer": { + "name": "Benjamin Baker", + "age": 35, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Fischer and Sons", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "capital", + "category": "study", + "price": 209.04, + "stock_quantity": 688 + }, + "customer": { + "name": "Carolyn Bailey", + "age": 22, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Blair-Kent", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "including", + "category": "manager", + "price": 928.68, + "stock_quantity": 278 + }, + "customer": { + "name": "James Lyons", + "age": 72, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Garrison-Kramer", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "way", + "category": "shake", + "price": 463.48, + "stock_quantity": 618 + }, + "customer": { + "name": "Joshua Barber", + "age": 48, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Thompson-Ramirez", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "tell", + "category": "guess", + "price": 914.69, + "stock_quantity": 346 + }, + "customer": { + "name": "Tina Patrick", + "age": 30, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Peterson, Watson and Thompson", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "change", + "category": "school", + "price": 711.98, + "stock_quantity": 823 + }, + "customer": { + "name": "Tyler Burns", + "age": 67, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Brown-Chen", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "same", + "category": "machine", + "price": 88.74, + "stock_quantity": 167 + }, + "customer": { + "name": "Jacqueline Chavez", + "age": 52, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Adkins, Meza and Greene", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "toward", + "category": "as", + "price": 700.25, + "stock_quantity": 673 + }, + "customer": { + "name": "Lauren Welch", + "age": 38, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Wilcox, Wilson and Smith", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "consumer", + "category": "color", + "price": 276.68, + "stock_quantity": 437 + }, + "customer": { + "name": "Suzanne Ortiz", + "age": 75, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Greene and Sons", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "few", + "category": "race", + "price": 915.46, + "stock_quantity": 211 + }, + "customer": { + "name": "Miss Mary Silva DDS", + "age": 30, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Mason, Adams and Lawrence", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "party", + "category": "may", + "price": 72.12, + "stock_quantity": 392 + }, + "customer": { + "name": "Kristen Ramirez", + "age": 71, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Garza LLC", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "apply", + "category": "picture", + "price": 388.32, + "stock_quantity": 1000 + }, + "customer": { + "name": "Barbara Allen", + "age": 45, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Burton-Thornton", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "beautiful", + "category": "either", + "price": 604.69, + "stock_quantity": 532 + }, + "customer": { + "name": "Raymond Reynolds", + "age": 19, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Martin, Sandoval and Wilson", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "blood", + "category": "decade", + "price": 832.94, + "stock_quantity": 734 + }, + "customer": { + "name": "Terry Smith", + "age": 33, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Small-Smith", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "majority", + "category": "record", + "price": 931.7, + "stock_quantity": 404 + }, + "customer": { + "name": "Wendy Thomas", + "age": 80, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Gaines Inc", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "story", + "category": "list", + "price": 300.82, + "stock_quantity": 893 + }, + "customer": { + "name": "Robert Martin", + "age": 70, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Cannon, Mckenzie and Welch", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "young", + "category": "walk", + "price": 988.69, + "stock_quantity": 510 + }, + "customer": { + "name": "Sylvia Norris", + "age": 23, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Alvarez Group", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "involve", + "category": "nation", + "price": 611.81, + "stock_quantity": 128 + }, + "customer": { + "name": "Joshua Jarvis", + "age": 39, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Wagner-Ramirez", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "threat", + "category": "on", + "price": 699.09, + "stock_quantity": 177 + }, + "customer": { + "name": "Jordan Espinoza", + "age": 65, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Garza, Henry and Kelly", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "discussion", + "category": "step", + "price": 525.05, + "stock_quantity": 666 + }, + "customer": { + "name": "Juan Torres", + "age": 52, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Greer Ltd", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "ready", + "category": "show", + "price": 316.84, + "stock_quantity": 874 + }, + "customer": { + "name": "Blake Kelly", + "age": 20, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Swanson, Payne and Green", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "small", + "category": "television", + "price": 377.74, + "stock_quantity": 655 + }, + "customer": { + "name": "Alan Jackson", + "age": 70, + "country": "Senegal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frost, Garcia and Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frost, Garcia and Jones", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "cold", + "category": "gun", + "price": 912.48, + "stock_quantity": 486 + }, + "customer": { + "name": "Daniel Anderson", + "age": 74, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Kaiser, Richards and Mcgrath", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "likely", + "category": "will", + "price": 508.11, + "stock_quantity": 801 + }, + "customer": { + "name": "Sandra Cobb", + "age": 78, + "country": "British Virgin Islands" + } + }, + { + "natural_query": "What is the minimum price of all products for Anderson Group?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Anderson Group'", + "company": { + "name": "Anderson Group", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "understand", + "category": "soldier", + "price": 806.13, + "stock_quantity": 765 + }, + "customer": { + "name": "Carlos Patterson", + "age": 41, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Jackson, Fox and Harvey", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "nothing", + "category": "fine", + "price": 39.33, + "stock_quantity": 204 + }, + "customer": { + "name": "Nichole Hartman", + "age": 51, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Fitzgerald Inc", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "wind", + "category": "later", + "price": 514.91, + "stock_quantity": 782 + }, + "customer": { + "name": "Jeffrey Taylor PhD", + "age": 30, + "country": "Samoa" + } + }, + { + "natural_query": "What is the total profit for each country in Brown-Davis?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Brown-Davis' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Brown-Davis", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "age", + "category": "could", + "price": 178.35, + "stock_quantity": 225 + }, + "customer": { + "name": "Kathleen Orozco", + "age": 78, + "country": "Canada" + } + }, + { + "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'", + "company": { + "name": "Hall, Richardson and Lee", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "two", + "category": "international", + "price": 88.98, + "stock_quantity": 323 + }, + "customer": { + "name": "Shannon Rodriguez", + "age": 26, + "country": "Guatemala" + } + }, + { + "natural_query": "What is the total profit for each category in Butler-Daniels?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Butler-Daniels' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Butler-Daniels", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "score", + "category": "across", + "price": 186.55, + "stock_quantity": 214 + }, + "customer": { + "name": "Donna Parsons", + "age": 57, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Waller, Gutierrez and Baker", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "kind", + "category": "hair", + "price": 471.1, + "stock_quantity": 954 + }, + "customer": { + "name": "Karen Chaney", + "age": 65, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Serrano-Davis", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "six", + "category": "position", + "price": 441.57, + "stock_quantity": 288 + }, + "customer": { + "name": "Robert Patterson", + "age": 31, + "country": "Azerbaijan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Potter Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Potter Group", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "traditional", + "category": "feeling", + "price": 241.56, + "stock_quantity": 946 + }, + "customer": { + "name": "Jose Mueller", + "age": 22, + "country": "Honduras" + } + }, + { + "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'", + "company": { + "name": "Simpson Group", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "although", + "category": "next", + "price": 71.07, + "stock_quantity": 856 + }, + "customer": { + "name": "Christopher Smith", + "age": 26, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Kaiser, Martin and Garcia", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "color", + "category": "thousand", + "price": 511.76, + "stock_quantity": 128 + }, + "customer": { + "name": "Christopher Garcia", + "age": 34, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Burke and Sons", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "television", + "category": "cost", + "price": 687.96, + "stock_quantity": 799 + }, + "customer": { + "name": "Christina Novak", + "age": 79, + "country": "Palestinian Territory" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cooper, Hodge and Terry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cooper, Hodge and Terry", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "ok", + "category": "official", + "price": 363.63, + "stock_quantity": 199 + }, + "customer": { + "name": "Eric Vasquez", + "age": 21, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Graves and Sons", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "recent", + "category": "staff", + "price": 508.89, + "stock_quantity": 142 + }, + "customer": { + "name": "Adam Brown", + "age": 40, + "country": "Mongolia" + } + }, + { + "natural_query": "Show me all products in the account category with a price over $334.92.", + "sql_query": "SELECT * FROM products WHERE category = 'account' AND price > 334.92", + "company": { + "name": "Brooks-Brown", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "decade", + "category": "account", + "price": 334.92, + "stock_quantity": 155 + }, + "customer": { + "name": "Danielle Krueger", + "age": 76, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Weaver LLC", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "several", + "category": "human", + "price": 495.08, + "stock_quantity": 796 + }, + "customer": { + "name": "Marcus Oliver", + "age": 33, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Golden, Clark and Hernandez", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "she", + "category": "plan", + "price": 826.55, + "stock_quantity": 427 + }, + "customer": { + "name": "David Chandler", + "age": 57, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Cole-White", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "reveal", + "category": "close", + "price": 585.36, + "stock_quantity": 508 + }, + "customer": { + "name": "Sandra Young", + "age": 50, + "country": "Anguilla" + } + }, + { + "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'", + "company": { + "name": "Obrien PLC", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "general", + "category": "anything", + "price": 624.46, + "stock_quantity": 998 + }, + "customer": { + "name": "James Walker", + "age": 64, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Thomas, Williams and Powell", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "prepare", + "category": "west", + "price": 86.15, + "stock_quantity": 500 + }, + "customer": { + "name": "Carol Lewis", + "age": 38, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Ballard and Sons", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "third", + "category": "decision", + "price": 871.79, + "stock_quantity": 429 + }, + "customer": { + "name": "Kenneth Lopez", + "age": 62, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Anderson-Wheeler", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "character", + "category": "senior", + "price": 984.36, + "stock_quantity": 147 + }, + "customer": { + "name": "Matthew Berry", + "age": 79, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Avila-Downs", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "generation", + "category": "thing", + "price": 599.35, + "stock_quantity": 44 + }, + "customer": { + "name": "Benjamin Hendrix", + "age": 65, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Parrish PLC", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "keep", + "category": "yourself", + "price": 254.41, + "stock_quantity": 765 + }, + "customer": { + "name": "Katherine Harris", + "age": 27, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Nixon-Munoz", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "example", + "category": "specific", + "price": 225.61, + "stock_quantity": 182 + }, + "customer": { + "name": "Allison Smith", + "age": 46, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Caldwell Ltd", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "him", + "category": "claim", + "price": 281.72, + "stock_quantity": 492 + }, + "customer": { + "name": "Jennifer Castro", + "age": 71, + "country": "Colombia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Guzman Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Guzman Ltd", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "matter", + "category": "prove", + "price": 969.19, + "stock_quantity": 694 + }, + "customer": { + "name": "James Roberts", + "age": 22, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Thompson-Ramirez", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "whom", + "category": "too", + "price": 646.35, + "stock_quantity": 519 + }, + "customer": { + "name": "Elizabeth Miller", + "age": 37, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Johnson Ltd", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "end", + "category": "ask", + "price": 825.94, + "stock_quantity": 272 + }, + "customer": { + "name": "Eddie Bishop", + "age": 56, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Wilson-Williams", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "campaign", + "category": "send", + "price": 856.05, + "stock_quantity": 63 + }, + "customer": { + "name": "Brandon Shepherd", + "age": 44, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Roy, Gonzalez and Frederick", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "mission", + "category": "foreign", + "price": 979.48, + "stock_quantity": 740 + }, + "customer": { + "name": "Lisa Reed", + "age": 74, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Anderson Inc", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "realize", + "category": "its", + "price": 458.81, + "stock_quantity": 991 + }, + "customer": { + "name": "Tara Taylor", + "age": 26, + "country": "Pakistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chambers, Palmer and Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chambers, Palmer and Anderson", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "fine", + "category": "pass", + "price": 709.74, + "stock_quantity": 377 + }, + "customer": { + "name": "Jeanette Maldonado", + "age": 70, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Waters, Arroyo and Douglas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Waters, Arroyo and Douglas", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "side", + "category": "medical", + "price": 993.9, + "stock_quantity": 577 + }, + "customer": { + "name": "Aaron Lawson", + "age": 57, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Jones Group", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "goal", + "category": "financial", + "price": 569.48, + "stock_quantity": 376 + }, + "customer": { + "name": "Jason Nelson", + "age": 64, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Jones-Atkinson", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "just", + "category": "pull", + "price": 158.35, + "stock_quantity": 318 + }, + "customer": { + "name": "Lynn Cook", + "age": 79, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Adkins-Phillips", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "win", + "category": "somebody", + "price": 573.15, + "stock_quantity": 137 + }, + "customer": { + "name": "Whitney Thompson", + "age": 19, + "country": "Lao People's Democratic Republic" + } + }, + { + "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'", + "company": { + "name": "Ruiz-Hood", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "budget", + "category": "military", + "price": 398.36, + "stock_quantity": 315 + }, + "customer": { + "name": "Keith Flores", + "age": 26, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Cannon, Anderson and Rodriguez", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "whom", + "category": "night", + "price": 421.74, + "stock_quantity": 828 + }, + "customer": { + "name": "Angel Tran", + "age": 29, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Duffy PLC", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "team", + "category": "fill", + "price": 236.32, + "stock_quantity": 32 + }, + "customer": { + "name": "Jeffrey Smith", + "age": 55, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Williams-Robinson", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "resource", + "category": "name", + "price": 377.73, + "stock_quantity": 237 + }, + "customer": { + "name": "Wesley Wright", + "age": 45, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Bennett-Lewis", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "already", + "category": "nothing", + "price": 779.42, + "stock_quantity": 597 + }, + "customer": { + "name": "Rebecca Clark", + "age": 34, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Alvarez, Anderson and Shaw", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "realize", + "category": "process", + "price": 77.39, + "stock_quantity": 592 + }, + "customer": { + "name": "Lindsay Lee", + "age": 55, + "country": "Timor-Leste" + } + }, + { + "natural_query": "List all customers and their total order value for Montes, Jenkins and Marquez.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Montes, Jenkins and Marquez' GROUP BY c.customer_id", + "company": { + "name": "Montes, Jenkins and Marquez", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "knowledge", + "category": "candidate", + "price": 161.4, + "stock_quantity": 559 + }, + "customer": { + "name": "Patrick Ewing", + "age": 70, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Hansen-Morgan", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "up", + "category": "early", + "price": 412.51, + "stock_quantity": 272 + }, + "customer": { + "name": "Jessica Rich", + "age": 42, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Hurst-Hernandez", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "appear", + "category": "head", + "price": 535.91, + "stock_quantity": 34 + }, + "customer": { + "name": "Michael Blevins", + "age": 27, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Robinson and Sons", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "rate", + "category": "sell", + "price": 333.71, + "stock_quantity": 843 + }, + "customer": { + "name": "Amanda Hernandez", + "age": 30, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Williams-Macias", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "back", + "category": "maintain", + "price": 898.06, + "stock_quantity": 668 + }, + "customer": { + "name": "Carrie Johnson", + "age": 76, + "country": "Afghanistan" + } + }, + { + "natural_query": "How many orders were placed for Pineda-Morris between 2024-08-19 and 2024-09-14?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Pineda-Morris' AND order_date BETWEEN '2024-08-19' AND '2024-09-14'", + "company": { + "name": "Pineda-Morris", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "mouth", + "category": "his", + "price": 878.14, + "stock_quantity": 93 + }, + "customer": { + "name": "Lisa Jones", + "age": 19, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Gamble, Sutton and Black", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "indicate", + "category": "fear", + "price": 814.39, + "stock_quantity": 501 + }, + "customer": { + "name": "Hunter Smith", + "age": 53, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Taylor, Gonzalez and Harper", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "coach", + "category": "test", + "price": 129.67, + "stock_quantity": 541 + }, + "customer": { + "name": "Dr. Heather Martin MD", + "age": 73, + "country": "Turks and Caicos Islands" + } + }, + { + "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'", + "company": { + "name": "Campos, Werner and Allen", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "area", + "category": "test", + "price": 303.86, + "stock_quantity": 906 + }, + "customer": { + "name": "Aimee Morales", + "age": 70, + "country": "Vanuatu" + } + }, + { + "natural_query": "How many orders were placed for Perez LLC between 2024-07-25 and 2024-09-09?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Perez LLC' AND order_date BETWEEN '2024-07-25' AND '2024-09-09'", + "company": { + "name": "Perez LLC", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "site", + "category": "thousand", + "price": 63.04, + "stock_quantity": 94 + }, + "customer": { + "name": "John Palmer", + "age": 18, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Price Ltd", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "thought", + "category": "add", + "price": 541.89, + "stock_quantity": 511 + }, + "customer": { + "name": "Megan Arroyo", + "age": 35, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roberts, Andrews and Wilson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roberts, Andrews and Wilson", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "cold", + "category": "its", + "price": 730.4, + "stock_quantity": 642 + }, + "customer": { + "name": "Jason Powell", + "age": 65, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Jones Group", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "hair", + "category": "often", + "price": 644.23, + "stock_quantity": 376 + }, + "customer": { + "name": "Maria Lambert DVM", + "age": 56, + "country": "Panama" + } + }, + { + "natural_query": "List all products of Powers-Mason ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Powers-Mason' ORDER BY rating ASC", + "company": { + "name": "Powers-Mason", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "employee", + "category": "pretty", + "price": 17.54, + "stock_quantity": 997 + }, + "customer": { + "name": "Melissa Miller", + "age": 71, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Crawford Inc", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "everything", + "category": "range", + "price": 187.15, + "stock_quantity": 747 + }, + "customer": { + "name": "Kristi Fleming", + "age": 18, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Schmidt, Frank and Hansen", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "consider", + "category": "language", + "price": 918.81, + "stock_quantity": 851 + }, + "customer": { + "name": "Natalie Hernandez", + "age": 49, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lewis-Hoffman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lewis-Hoffman", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "across", + "category": "oil", + "price": 144.32, + "stock_quantity": 586 + }, + "customer": { + "name": "Nancy Cox", + "age": 76, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Woodward-Freeman", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "candidate", + "category": "start", + "price": 444.67, + "stock_quantity": 954 + }, + "customer": { + "name": "Debra Jones", + "age": 42, + "country": "Palau" + } + }, + { + "natural_query": "What are the top 7 products by revenue for Carter, Houston and Humphrey last quarter?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Carter, Houston and Humphrey' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7", + "company": { + "name": "Carter, Houston and Humphrey", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "order", + "category": "identify", + "price": 59.17, + "stock_quantity": 295 + }, + "customer": { + "name": "Randall King", + "age": 22, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Nunez, Mcintyre and Taylor", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "us", + "category": "range", + "price": 755.67, + "stock_quantity": 915 + }, + "customer": { + "name": "Kent Martinez", + "age": 71, + "country": "Netherlands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Parsons Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Parsons Ltd", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "clear", + "category": "against", + "price": 501.21, + "stock_quantity": 194 + }, + "customer": { + "name": "Patricia Robinson", + "age": 58, + "country": "Gabon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kirk-Vega'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kirk-Vega", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "senior", + "category": "property", + "price": 141.34, + "stock_quantity": 50 + }, + "customer": { + "name": "Edward Decker", + "age": 53, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Lane LLC", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "call", + "category": "such", + "price": 432.22, + "stock_quantity": 534 + }, + "customer": { + "name": "Mark Johnson", + "age": 76, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Bryant-Bell", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "successful", + "category": "pattern", + "price": 132.64, + "stock_quantity": 454 + }, + "customer": { + "name": "Ryan Chaney", + "age": 27, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Padilla, Butler and Coleman", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "national", + "category": "somebody", + "price": 417.61, + "stock_quantity": 22 + }, + "customer": { + "name": "Alejandro Fernandez", + "age": 38, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Lopez, Anderson and Macias", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "itself", + "category": "much", + "price": 735.47, + "stock_quantity": 16 + }, + "customer": { + "name": "Amber Smith", + "age": 24, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gates Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gates Group", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "gas", + "category": "card", + "price": 508.37, + "stock_quantity": 848 + }, + "customer": { + "name": "Michael Peters", + "age": 41, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Oneal-Ford", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "fall", + "category": "especially", + "price": 546.44, + "stock_quantity": 420 + }, + "customer": { + "name": "Chelsey Stevens", + "age": 36, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Holloway Ltd", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "better", + "category": "different", + "price": 771.12, + "stock_quantity": 821 + }, + "customer": { + "name": "Melissa Dominguez", + "age": 62, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Hernandez Ltd", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "north", + "category": "will", + "price": 123.65, + "stock_quantity": 543 + }, + "customer": { + "name": "Martha Barnett", + "age": 36, + "country": "Anguilla" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Neal-Horne'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Neal-Horne", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "evening", + "category": "which", + "price": 487.39, + "stock_quantity": 914 + }, + "customer": { + "name": "Charles Taylor", + "age": 39, + "country": "Equatorial Guinea" + } + }, + { + "natural_query": "Show me all products in the natural category with a price over $688.82.", + "sql_query": "SELECT * FROM products WHERE category = 'natural' AND price > 688.82", + "company": { + "name": "Evans-Ortiz", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "thus", + "category": "natural", + "price": 688.82, + "stock_quantity": 161 + }, + "customer": { + "name": "Cynthia Jacobs", + "age": 18, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Jones Ltd", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "tonight", + "category": "simple", + "price": 834.64, + "stock_quantity": 958 + }, + "customer": { + "name": "Elizabeth Smith", + "age": 60, + "country": "Mauritius" + } + }, + { + "natural_query": "Show me all products in the green category with a price over $814.62.", + "sql_query": "SELECT * FROM products WHERE category = 'green' AND price > 814.62", + "company": { + "name": "Burton and Sons", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "rise", + "category": "green", + "price": 814.62, + "stock_quantity": 550 + }, + "customer": { + "name": "Lindsay Martin", + "age": 63, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Hardin Group", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "newspaper", + "category": "citizen", + "price": 98.37, + "stock_quantity": 427 + }, + "customer": { + "name": "Craig Medina", + "age": 57, + "country": "Spain" + } + }, + { + "natural_query": "What are the top 9 products by revenue for Mcmillan, Freeman and Doyle last quarter?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mcmillan, Freeman and Doyle' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9", + "company": { + "name": "Mcmillan, Freeman and Doyle", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "address", + "category": "describe", + "price": 291.7, + "stock_quantity": 567 + }, + "customer": { + "name": "Donald Salazar", + "age": 62, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Riley, Ford and Weaver", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "social", + "category": "drug", + "price": 987.55, + "stock_quantity": 827 + }, + "customer": { + "name": "Stuart Mendez", + "age": 76, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Armstrong, Wilson and Thomas", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "debate", + "category": "beat", + "price": 610.06, + "stock_quantity": 560 + }, + "customer": { + "name": "Jason Carr", + "age": 64, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Smith, Blair and Fuentes", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "history", + "category": "smile", + "price": 644.6, + "stock_quantity": 386 + }, + "customer": { + "name": "Angel Mcdonald", + "age": 57, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Ayers, Snyder and Hunt", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "sing", + "category": "huge", + "price": 207.26, + "stock_quantity": 735 + }, + "customer": { + "name": "Jennifer Dodson", + "age": 68, + "country": "Guinea" + } + }, + { + "natural_query": "List all customers and their total order value for Smith-Chapman.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Smith-Chapman' GROUP BY c.customer_id", + "company": { + "name": "Smith-Chapman", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "spend", + "category": "least", + "price": 267.29, + "stock_quantity": 479 + }, + "customer": { + "name": "Gabriel Owen", + "age": 18, + "country": "Solomon Islands" + } + }, + { + "natural_query": "What are the top 4 products by customers for Miles-Miller last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Miles-Miller' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4", + "company": { + "name": "Miles-Miller", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "response", + "category": "than", + "price": 636.0, + "stock_quantity": 708 + }, + "customer": { + "name": "Corey Hanson", + "age": 24, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Black, Reyes and Fox", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "next", + "category": "hot", + "price": 178.55, + "stock_quantity": 356 + }, + "customer": { + "name": "Whitney Martin", + "age": 34, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Kent, Perez and Payne", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "lot", + "category": "save", + "price": 107.71, + "stock_quantity": 523 + }, + "customer": { + "name": "James Conner", + "age": 36, + "country": "Norfolk Island" + } + }, + { + "natural_query": "What are the top 7 products by customers for Watson LLC this month?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Watson LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7", + "company": { + "name": "Watson LLC", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "successful", + "category": "by", + "price": 556.24, + "stock_quantity": 321 + }, + "customer": { + "name": "Gregory Gonzales", + "age": 56, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Rodriguez-Henderson", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "event", + "category": "house", + "price": 811.84, + "stock_quantity": 291 + }, + "customer": { + "name": "Joe Wells", + "age": 68, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Velazquez, Jackson and Watson", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "type", + "category": "box", + "price": 638.44, + "stock_quantity": 890 + }, + "customer": { + "name": "Larry Knapp Jr.", + "age": 60, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Jennings PLC", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "stuff", + "category": "home", + "price": 962.49, + "stock_quantity": 688 + }, + "customer": { + "name": "Linda Hanson", + "age": 52, + "country": "Argentina" + } + }, + { + "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'", + "company": { + "name": "Reynolds, Mosley and Reid", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "difference", + "category": "ago", + "price": 680.07, + "stock_quantity": 481 + }, + "customer": { + "name": "Joshua Brown", + "age": 70, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Mueller Inc", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "education", + "category": "girl", + "price": 367.73, + "stock_quantity": 427 + }, + "customer": { + "name": "Jonathan Rogers", + "age": 45, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Ashley LLC", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "reveal", + "category": "answer", + "price": 941.93, + "stock_quantity": 490 + }, + "customer": { + "name": "Erica Hernandez", + "age": 80, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Thomas, Berger and Mejia", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "study", + "category": "station", + "price": 485.46, + "stock_quantity": 266 + }, + "customer": { + "name": "Adam Smith", + "age": 47, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Ibarra-Pugh", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "carry", + "category": "center", + "price": 263.68, + "stock_quantity": 335 + }, + "customer": { + "name": "James Watson", + "age": 45, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Moore Inc", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "stop", + "category": "rock", + "price": 701.25, + "stock_quantity": 796 + }, + "customer": { + "name": "Matthew Gomez", + "age": 25, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Alvarez Group", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "voice", + "category": "with", + "price": 737.92, + "stock_quantity": 432 + }, + "customer": { + "name": "Melanie Todd", + "age": 29, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Smith, Gallegos and Berg", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "economy", + "category": "sort", + "price": 625.76, + "stock_quantity": 103 + }, + "customer": { + "name": "Bobby Villanueva", + "age": 57, + "country": "Romania" + } + }, + { + "natural_query": "List all products of Rodgers Group ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Rodgers Group' ORDER BY stock_quantity ASC", + "company": { + "name": "Rodgers Group", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "unit", + "category": "decade", + "price": 77.06, + "stock_quantity": 616 + }, + "customer": { + "name": "Miranda Bird", + "age": 58, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Fernandez, Ortiz and Schmidt", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "law", + "category": "case", + "price": 136.16, + "stock_quantity": 577 + }, + "customer": { + "name": "Samuel Chambers", + "age": 75, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Kent, Jones and Gill", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "training", + "category": "from", + "price": 889.24, + "stock_quantity": 663 + }, + "customer": { + "name": "Shawn Guerrero", + "age": 30, + "country": "United Arab Emirates" + } + }, + { + "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'", + "company": { + "name": "Miller-Hughes", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "tend", + "category": "democratic", + "price": 971.48, + "stock_quantity": 767 + }, + "customer": { + "name": "Lauren Underwood", + "age": 34, + "country": "Saint Martin" + } + }, + { + "natural_query": "List all products of Fuller Group ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Fuller Group' ORDER BY price ASC", + "company": { + "name": "Fuller Group", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "artist", + "category": "PM", + "price": 559.61, + "stock_quantity": 454 + }, + "customer": { + "name": "Jessica Martinez", + "age": 36, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Barnes-Martin", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "individual", + "category": "song", + "price": 73.78, + "stock_quantity": 371 + }, + "customer": { + "name": "Christian Brock", + "age": 54, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "Reed LLC", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "collection", + "category": "well", + "price": 968.42, + "stock_quantity": 531 + }, + "customer": { + "name": "Carol Barrera", + "age": 75, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Rose-Allen", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "our", + "category": "network", + "price": 708.32, + "stock_quantity": 532 + }, + "customer": { + "name": "Steven Medina", + "age": 50, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "James, Espinoza and Green", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "dark", + "category": "chair", + "price": 92.85, + "stock_quantity": 25 + }, + "customer": { + "name": "Philip Walton", + "age": 58, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Middleton-Hancock", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "pattern", + "category": "worker", + "price": 15.13, + "stock_quantity": 145 + }, + "customer": { + "name": "Jonathan Ramirez", + "age": 24, + "country": "French Southern Territories" + } + }, + { + "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'", + "company": { + "name": "Robinson, Myers and Garcia", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "PM", + "category": "arm", + "price": 168.73, + "stock_quantity": 975 + }, + "customer": { + "name": "David Mitchell", + "age": 25, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Walker Group", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "election", + "category": "read", + "price": 27.41, + "stock_quantity": 292 + }, + "customer": { + "name": "Debbie Ramirez", + "age": 30, + "country": "Cape Verde" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bell, Heath and Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bell, Heath and Campbell", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "relate", + "category": "would", + "price": 878.97, + "stock_quantity": 189 + }, + "customer": { + "name": "John Cameron", + "age": 34, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Adams, Jackson and Rhodes", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "system", + "category": "light", + "price": 251.06, + "stock_quantity": 553 + }, + "customer": { + "name": "Mallory Watson", + "age": 80, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Garcia-Parker", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "their", + "category": "yet", + "price": 674.08, + "stock_quantity": 388 + }, + "customer": { + "name": "Jeff Harris", + "age": 74, + "country": "Bulgaria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown-Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown-Jones", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "improve", + "category": "year", + "price": 597.58, + "stock_quantity": 88 + }, + "customer": { + "name": "Walter Jones", + "age": 60, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Cox, Gonzalez and Bass", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "again", + "category": "quite", + "price": 808.22, + "stock_quantity": 622 + }, + "customer": { + "name": "James Scott", + "age": 44, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Gardner, Chavez and Zimmerman", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "letter", + "category": "if", + "price": 946.31, + "stock_quantity": 873 + }, + "customer": { + "name": "Ashley Barnes", + "age": 40, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Walker-Henderson", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "sense", + "category": "hear", + "price": 981.85, + "stock_quantity": 663 + }, + "customer": { + "name": "Scott Munoz", + "age": 52, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Valdez, Hodges and Singleton", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "now", + "category": "itself", + "price": 237.06, + "stock_quantity": 24 + }, + "customer": { + "name": "Juan Reed", + "age": 44, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Smith-Berry", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "sometimes", + "category": "just", + "price": 851.74, + "stock_quantity": 201 + }, + "customer": { + "name": "Brandon Henderson", + "age": 71, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Orozco-Butler", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "bad", + "category": "argue", + "price": 66.41, + "stock_quantity": 981 + }, + "customer": { + "name": "Christopher Medina", + "age": 60, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Smith, Sullivan and Rodgers", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "realize", + "category": "coach", + "price": 394.98, + "stock_quantity": 980 + }, + "customer": { + "name": "Gavin Suarez", + "age": 64, + "country": "Bahrain" + } + }, + { + "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'", + "company": { + "name": "Ramirez LLC", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "less", + "category": "course", + "price": 856.44, + "stock_quantity": 622 + }, + "customer": { + "name": "Heather Ingram", + "age": 55, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Black, Bush and Smith", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "force", + "category": "close", + "price": 181.77, + "stock_quantity": 70 + }, + "customer": { + "name": "Deborah Ramirez", + "age": 29, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Graham Ltd", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "see", + "category": "determine", + "price": 156.3, + "stock_quantity": 837 + }, + "customer": { + "name": "Mark Mendez", + "age": 56, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Moran LLC", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "six", + "category": "also", + "price": 181.9, + "stock_quantity": 21 + }, + "customer": { + "name": "Tammy Perry", + "age": 66, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Walsh-Ross", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "imagine", + "category": "story", + "price": 346.1, + "stock_quantity": 227 + }, + "customer": { + "name": "Carlos Baker", + "age": 54, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Jenkins-Nunez", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "study", + "category": "interview", + "price": 721.94, + "stock_quantity": 913 + }, + "customer": { + "name": "Carmen Warren", + "age": 61, + "country": "Liechtenstein" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cook, Brown and Jackson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cook, Brown and Jackson", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "fall", + "category": "southern", + "price": 519.64, + "stock_quantity": 251 + }, + "customer": { + "name": "Michael Henry", + "age": 19, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Ayala-Hubbard", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "performance", + "category": "long", + "price": 475.09, + "stock_quantity": 954 + }, + "customer": { + "name": "Alisha Thompson", + "age": 51, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Davis-Haney", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "yeah", + "category": "store", + "price": 242.95, + "stock_quantity": 402 + }, + "customer": { + "name": "Courtney Wang", + "age": 62, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Harris-Roth", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "short", + "category": "opportunity", + "price": 831.38, + "stock_quantity": 946 + }, + "customer": { + "name": "Sandra Anderson", + "age": 68, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Bradley Ltd", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "performance", + "category": "accept", + "price": 543.86, + "stock_quantity": 462 + }, + "customer": { + "name": "Patrick Diaz", + "age": 27, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Shah, Wright and Garcia", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "cultural", + "category": "pay", + "price": 768.58, + "stock_quantity": 409 + }, + "customer": { + "name": "Jesse Griffith", + "age": 42, + "country": "Kuwait" + } + }, + { + "natural_query": "What are the top 8 products by customers for Duncan Ltd all time?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Duncan Ltd' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8", + "company": { + "name": "Duncan Ltd", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "lead", + "category": "skin", + "price": 260.41, + "stock_quantity": 348 + }, + "customer": { + "name": "Andrea Silva", + "age": 65, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Diaz, Cox and Jones", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "near", + "category": "feeling", + "price": 92.15, + "stock_quantity": 639 + }, + "customer": { + "name": "Erika Hunter", + "age": 43, + "country": "Lithuania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rowe Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rowe Group", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "surface", + "category": "weight", + "price": 161.6, + "stock_quantity": 206 + }, + "customer": { + "name": "Nicholas Martinez", + "age": 54, + "country": "Poland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wood Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wood Group", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "yard", + "category": "economic", + "price": 80.92, + "stock_quantity": 922 + }, + "customer": { + "name": "James Anderson", + "age": 60, + "country": "China" + } + }, + { + "natural_query": "How many orders were placed for Bauer Inc between 2024-04-01 and 2024-06-23?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bauer Inc' AND order_date BETWEEN '2024-04-01' AND '2024-06-23'", + "company": { + "name": "Bauer Inc", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "natural", + "category": "organization", + "price": 835.98, + "stock_quantity": 649 + }, + "customer": { + "name": "Michael Lucas", + "age": 43, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Hinton, Paul and Brown", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "until", + "category": "reduce", + "price": 174.0, + "stock_quantity": 296 + }, + "customer": { + "name": "John Pratt", + "age": 61, + "country": "Denmark" + } + }, + { + "natural_query": "What is the total profit for each category in Patterson PLC?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Patterson PLC' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Patterson PLC", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "live", + "category": "soldier", + "price": 178.72, + "stock_quantity": 745 + }, + "customer": { + "name": "Sheila Johnston", + "age": 77, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Porter-Lane", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "base", + "category": "pick", + "price": 178.13, + "stock_quantity": 375 + }, + "customer": { + "name": "Roberto Norris", + "age": 25, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Anderson-Riley", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "place", + "category": "treat", + "price": 167.04, + "stock_quantity": 773 + }, + "customer": { + "name": "Sarah Miller", + "age": 38, + "country": "Saint Kitts and Nevis" + } + }, + { + "natural_query": "What are the top 3 products by sales for Dodson and Sons last quarter?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dodson and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3", + "company": { + "name": "Dodson and Sons", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "yard", + "category": "above", + "price": 852.13, + "stock_quantity": 646 + }, + "customer": { + "name": "Jean Gomez", + "age": 80, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Leach LLC", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "bring", + "category": "actually", + "price": 276.57, + "stock_quantity": 883 + }, + "customer": { + "name": "Amber Cunningham", + "age": 71, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Harrell-Peters", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "condition", + "category": "energy", + "price": 29.56, + "stock_quantity": 935 + }, + "customer": { + "name": "Matthew Williams", + "age": 75, + "country": "Montenegro" + } + }, + { + "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'", + "company": { + "name": "Martin-Alexander", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "employee", + "category": "somebody", + "price": 43.26, + "stock_quantity": 983 + }, + "customer": { + "name": "Eric Williams", + "age": 66, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Gordon, Mcintosh and Curtis", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "listen", + "category": "indicate", + "price": 365.81, + "stock_quantity": 705 + }, + "customer": { + "name": "Tina Short", + "age": 60, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Hancock PLC", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "notice", + "category": "enough", + "price": 194.82, + "stock_quantity": 695 + }, + "customer": { + "name": "Morgan Ward", + "age": 79, + "country": "Netherlands" + } + }, + { + "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'", + "company": { + "name": "Lee Ltd", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "list", + "category": "executive", + "price": 146.74, + "stock_quantity": 470 + }, + "customer": { + "name": "Brian Pennington", + "age": 27, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Lozano, Bonilla and Paul", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "she", + "category": "kitchen", + "price": 534.11, + "stock_quantity": 808 + }, + "customer": { + "name": "Vicki Griffin", + "age": 47, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Carter Inc", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "any", + "category": "attack", + "price": 518.17, + "stock_quantity": 595 + }, + "customer": { + "name": "Leslie Hill", + "age": 35, + "country": "Mozambique" + } + }, + { + "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'", + "company": { + "name": "Williams, Cox and Potter", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "news", + "category": "low", + "price": 99.06, + "stock_quantity": 456 + }, + "customer": { + "name": "Maureen Mendez", + "age": 57, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Cruz LLC", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "expert", + "category": "new", + "price": 860.18, + "stock_quantity": 686 + }, + "customer": { + "name": "Hailey Williams", + "age": 78, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Romero PLC", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "manager", + "category": "pattern", + "price": 897.91, + "stock_quantity": 121 + }, + "customer": { + "name": "Sarah Keller", + "age": 79, + "country": "Botswana" + } + }, + { + "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'", + "company": { + "name": "Booker Group", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "send", + "category": "account", + "price": 391.37, + "stock_quantity": 179 + }, + "customer": { + "name": "Elizabeth Roach", + "age": 20, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Collins-Dixon", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "subject", + "category": "rule", + "price": 173.58, + "stock_quantity": 982 + }, + "customer": { + "name": "Patricia Baxter", + "age": 70, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Johnson and Sons", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "analysis", + "category": "side", + "price": 260.49, + "stock_quantity": 586 + }, + "customer": { + "name": "Steven Jones", + "age": 62, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Boone-Moreno", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "ask", + "category": "city", + "price": 968.22, + "stock_quantity": 319 + }, + "customer": { + "name": "Julia Schmidt DDS", + "age": 69, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Rush-Woodard", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "two", + "category": "my", + "price": 572.95, + "stock_quantity": 775 + }, + "customer": { + "name": "James Carr Jr.", + "age": 36, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Buchanan, Brown and Mckinney", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "statement", + "category": "success", + "price": 794.61, + "stock_quantity": 786 + }, + "customer": { + "name": "Elizabeth Wang", + "age": 74, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Ross-Lee", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "add", + "category": "its", + "price": 480.44, + "stock_quantity": 946 + }, + "customer": { + "name": "April Rowe", + "age": 54, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Patel Ltd", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "more", + "category": "worry", + "price": 165.45, + "stock_quantity": 854 + }, + "customer": { + "name": "Aaron Taylor", + "age": 41, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Burgess, Thompson and Black", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "car", + "category": "provide", + "price": 366.65, + "stock_quantity": 145 + }, + "customer": { + "name": "Michelle Mcdonald", + "age": 62, + "country": "Cyprus" + } + }, + { + "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'", + "company": { + "name": "May, Perez and Smith", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "fight", + "category": "cup", + "price": 870.36, + "stock_quantity": 634 + }, + "customer": { + "name": "Jody Sanchez", + "age": 45, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Barnes-Mercado", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "plant", + "category": "seek", + "price": 607.2, + "stock_quantity": 910 + }, + "customer": { + "name": "Patrick Cohen", + "age": 27, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Smith, Ward and Lloyd", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "summer", + "category": "daughter", + "price": 881.23, + "stock_quantity": 636 + }, + "customer": { + "name": "Michael Crawford", + "age": 42, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Kelly Inc", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "evening", + "category": "attack", + "price": 34.92, + "stock_quantity": 330 + }, + "customer": { + "name": "Leah Yang", + "age": 30, + "country": "Solomon Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Perry-Warren'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Perry-Warren", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "why", + "category": "city", + "price": 752.19, + "stock_quantity": 131 + }, + "customer": { + "name": "Jaclyn King", + "age": 43, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Nolan, Myers and Jackson", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "outside", + "category": "indicate", + "price": 205.18, + "stock_quantity": 715 + }, + "customer": { + "name": "David Pace", + "age": 30, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Roberts Ltd", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "value", + "category": "lot", + "price": 201.64, + "stock_quantity": 574 + }, + "customer": { + "name": "Eric Gray", + "age": 27, + "country": "Vietnam" + } + }, + { + "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'", + "company": { + "name": "Richards LLC", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "author", + "category": "detail", + "price": 471.45, + "stock_quantity": 208 + }, + "customer": { + "name": "Shelly Hood", + "age": 69, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Williams Group", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "daughter", + "category": "executive", + "price": 404.74, + "stock_quantity": 997 + }, + "customer": { + "name": "Eric Hill", + "age": 80, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Bartlett, Goodwin and Johnson", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "thus", + "category": "sometimes", + "price": 553.03, + "stock_quantity": 786 + }, + "customer": { + "name": "Christine Garcia", + "age": 26, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Richardson-Brewer", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "in", + "category": "voice", + "price": 885.49, + "stock_quantity": 544 + }, + "customer": { + "name": "Linda James", + "age": 80, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Richardson-Curtis", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "party", + "category": "off", + "price": 104.52, + "stock_quantity": 451 + }, + "customer": { + "name": "Debra Meadows", + "age": 23, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Rose, Weaver and Guzman", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "woman", + "category": "customer", + "price": 914.11, + "stock_quantity": 244 + }, + "customer": { + "name": "Tabitha Howard", + "age": 71, + "country": "Niue" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Turner Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Turner Inc", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "foreign", + "category": "station", + "price": 424.61, + "stock_quantity": 651 + }, + "customer": { + "name": "Brandy Oconnor", + "age": 42, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Hill-Davis", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "serve", + "category": "paper", + "price": 805.54, + "stock_quantity": 78 + }, + "customer": { + "name": "Kevin Carter", + "age": 79, + "country": "India" + } + }, + { + "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'", + "company": { + "name": "Berg-Robinson", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "anything", + "category": "hear", + "price": 626.54, + "stock_quantity": 949 + }, + "customer": { + "name": "Bryan Riley", + "age": 69, + "country": "Croatia" + } + }, + { + "natural_query": "Show me all products in the society category with a price over $804.53.", + "sql_query": "SELECT * FROM products WHERE category = 'society' AND price > 804.53", + "company": { + "name": "Evans and Sons", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "create", + "category": "society", + "price": 804.53, + "stock_quantity": 878 + }, + "customer": { + "name": "Dylan White", + "age": 53, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Ramos Inc", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "since", + "category": "ten", + "price": 898.81, + "stock_quantity": 587 + }, + "customer": { + "name": "Clifford Mckay", + "age": 50, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Mccarthy, Oneal and Reyes", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "Mrs", + "category": "above", + "price": 388.24, + "stock_quantity": 364 + }, + "customer": { + "name": "Jessica Castillo", + "age": 75, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Russell, Moreno and Schmidt", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "bank", + "category": "allow", + "price": 142.2, + "stock_quantity": 936 + }, + "customer": { + "name": "Jessica Goodman", + "age": 42, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Smith, Glenn and Henry", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "quite", + "category": "lot", + "price": 137.81, + "stock_quantity": 899 + }, + "customer": { + "name": "Christina Miller", + "age": 19, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Franklin-Brown", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "detail", + "category": "why", + "price": 81.61, + "stock_quantity": 65 + }, + "customer": { + "name": "Scott Johnson", + "age": 26, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Bryant Inc", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "bit", + "category": "of", + "price": 615.39, + "stock_quantity": 604 + }, + "customer": { + "name": "Jessica Kelly", + "age": 77, + "country": "San Marino" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frank LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frank LLC", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "wrong", + "category": "design", + "price": 187.08, + "stock_quantity": 801 + }, + "customer": { + "name": "Gary Hoffman", + "age": 30, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Rodriguez Inc", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "box", + "category": "budget", + "price": 723.01, + "stock_quantity": 932 + }, + "customer": { + "name": "Barry Morris", + "age": 58, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Jenkins Inc", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "even", + "category": "paper", + "price": 110.25, + "stock_quantity": 1 + }, + "customer": { + "name": "Tara Thomas", + "age": 41, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Young-Haynes", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "nothing", + "category": "kind", + "price": 165.49, + "stock_quantity": 846 + }, + "customer": { + "name": "Antonio Ramos", + "age": 44, + "country": "Afghanistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shields-Clayton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shields-Clayton", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "director", + "category": "none", + "price": 919.91, + "stock_quantity": 2 + }, + "customer": { + "name": "Lisa Cooper", + "age": 66, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Powers LLC", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "movement", + "category": "blood", + "price": 718.12, + "stock_quantity": 6 + }, + "customer": { + "name": "Gregory Kirby", + "age": 63, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Brown Ltd", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "agent", + "category": "if", + "price": 347.41, + "stock_quantity": 382 + }, + "customer": { + "name": "Ann Chung", + "age": 79, + "country": "Kenya" + } + }, + { + "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'", + "company": { + "name": "Christian, Frederick and Villanueva", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "appear", + "category": "write", + "price": 225.13, + "stock_quantity": 367 + }, + "customer": { + "name": "Heidi Perez", + "age": 43, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Glover Group", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "special", + "category": "education", + "price": 321.1, + "stock_quantity": 364 + }, + "customer": { + "name": "Joseph Singleton", + "age": 77, + "country": "Portugal" + } + }, + { + "natural_query": "What are the top 8 products by revenue for Ramsey Ltd this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ramsey Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8", + "company": { + "name": "Ramsey Ltd", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "person", + "category": "day", + "price": 141.36, + "stock_quantity": 535 + }, + "customer": { + "name": "Shawn Thompson", + "age": 41, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Hensley, Roberts and White", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "travel", + "category": "country", + "price": 370.08, + "stock_quantity": 298 + }, + "customer": { + "name": "Thomas Walker", + "age": 62, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Delacruz, Williams and Rodriguez", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "your", + "category": "because", + "price": 670.92, + "stock_quantity": 763 + }, + "customer": { + "name": "Paul Cohen", + "age": 28, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Nelson PLC", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "still", + "category": "mission", + "price": 424.56, + "stock_quantity": 828 + }, + "customer": { + "name": "Judy Harris", + "age": 70, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Higgins Group", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "another", + "category": "new", + "price": 490.19, + "stock_quantity": 575 + }, + "customer": { + "name": "Jennifer Johnson", + "age": 75, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Martinez-Walters", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "character", + "category": "technology", + "price": 293.63, + "stock_quantity": 662 + }, + "customer": { + "name": "David Miller", + "age": 36, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Long and Sons", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "individual", + "category": "find", + "price": 404.38, + "stock_quantity": 656 + }, + "customer": { + "name": "Nicholas Cannon", + "age": 62, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Williams-Robertson", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "traditional", + "category": "later", + "price": 673.62, + "stock_quantity": 294 + }, + "customer": { + "name": "Timothy Lester", + "age": 32, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Mcdonald Inc", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "this", + "category": "city", + "price": 630.71, + "stock_quantity": 563 + }, + "customer": { + "name": "Kristina Campbell", + "age": 52, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Garcia, Huffman and Moran", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "rise", + "category": "painting", + "price": 71.13, + "stock_quantity": 170 + }, + "customer": { + "name": "Nicholas Hull", + "age": 71, + "country": "Zimbabwe" + } + }, + { + "natural_query": "Show me all products in the music category with a price over $901.89.", + "sql_query": "SELECT * FROM products WHERE category = 'music' AND price > 901.89", + "company": { + "name": "Briggs, Hill and Robles", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "what", + "category": "music", + "price": 901.89, + "stock_quantity": 153 + }, + "customer": { + "name": "Deborah Marquez", + "age": 59, + "country": "Brunei Darussalam" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Myers LLC?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Myers LLC' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Myers LLC", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "total", + "category": "of", + "price": 887.52, + "stock_quantity": 129 + }, + "customer": { + "name": "Matthew White", + "age": 77, + "country": "Venezuela" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barrera-Stevens'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barrera-Stevens", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "within", + "category": "now", + "price": 454.93, + "stock_quantity": 563 + }, + "customer": { + "name": "David Conrad", + "age": 31, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Cole-Ellison", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "under", + "category": "these", + "price": 78.84, + "stock_quantity": 787 + }, + "customer": { + "name": "Marissa Morales", + "age": 60, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Long, Ramirez and Wilson", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "himself", + "category": "than", + "price": 732.05, + "stock_quantity": 443 + }, + "customer": { + "name": "Jared Moore", + "age": 68, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Mccarthy PLC", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "ready", + "category": "story", + "price": 788.89, + "stock_quantity": 268 + }, + "customer": { + "name": "Sean Cardenas", + "age": 75, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Powell LLC", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "we", + "category": "near", + "price": 533.9, + "stock_quantity": 239 + }, + "customer": { + "name": "Jack Morris", + "age": 40, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Blair-Hampton", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "become", + "category": "create", + "price": 837.77, + "stock_quantity": 96 + }, + "customer": { + "name": "Katherine Moyer", + "age": 45, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Hunt Group", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "commercial", + "category": "bad", + "price": 253.87, + "stock_quantity": 64 + }, + "customer": { + "name": "David Hayes", + "age": 48, + "country": "Nigeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Powell-Cervantes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Powell-Cervantes", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "candidate", + "category": "international", + "price": 702.07, + "stock_quantity": 516 + }, + "customer": { + "name": "Jerry Wood", + "age": 27, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Young-Farley", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "some", + "category": "despite", + "price": 861.99, + "stock_quantity": 721 + }, + "customer": { + "name": "Stephen Higgins", + "age": 36, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Andrews-Johnson", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "reach", + "category": "hope", + "price": 620.15, + "stock_quantity": 522 + }, + "customer": { + "name": "Meghan Parks", + "age": 41, + "country": "Greece" + } + }, + { + "natural_query": "How many orders were placed for Lopez and Sons between 2024-03-14 and 2024-04-09?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Lopez and Sons' AND order_date BETWEEN '2024-03-14' AND '2024-04-09'", + "company": { + "name": "Lopez and Sons", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "kitchen", + "category": "prepare", + "price": 294.41, + "stock_quantity": 849 + }, + "customer": { + "name": "Stephen Frank", + "age": 39, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Norris, Pena and Maldonado", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "set", + "category": "good", + "price": 700.51, + "stock_quantity": 463 + }, + "customer": { + "name": "Sean Lopez", + "age": 31, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Singh, Decker and Leonard", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "agency", + "category": "represent", + "price": 465.05, + "stock_quantity": 147 + }, + "customer": { + "name": "Omar Andrews", + "age": 66, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Kim LLC", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "produce", + "category": "contain", + "price": 760.54, + "stock_quantity": 865 + }, + "customer": { + "name": "Patricia Mckinney", + "age": 34, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Bowers, Williams and Patrick", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "often", + "category": "democratic", + "price": 682.84, + "stock_quantity": 245 + }, + "customer": { + "name": "Zachary Hines", + "age": 59, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Roberts-Wood", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "seem", + "category": "son", + "price": 637.63, + "stock_quantity": 112 + }, + "customer": { + "name": "Francisco Decker", + "age": 78, + "country": "Ghana" + } + }, + { + "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'", + "company": { + "name": "Wyatt-Lee", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "hard", + "category": "billion", + "price": 542.68, + "stock_quantity": 557 + }, + "customer": { + "name": "Nancy Zimmerman", + "age": 63, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Mitchell-Medina", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "happy", + "category": "great", + "price": 18.21, + "stock_quantity": 350 + }, + "customer": { + "name": "Rebecca Rice", + "age": 34, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Ramirez and Sons", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "environment", + "category": "whole", + "price": 710.9, + "stock_quantity": 415 + }, + "customer": { + "name": "Savannah Walker", + "age": 54, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Martin-Williams", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "owner", + "category": "concern", + "price": 784.19, + "stock_quantity": 414 + }, + "customer": { + "name": "Anthony Armstrong", + "age": 72, + "country": "Guatemala" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kaiser, Moore and Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kaiser, Moore and Miller", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "power", + "category": "certain", + "price": 418.23, + "stock_quantity": 241 + }, + "customer": { + "name": "Alexander Mckenzie", + "age": 52, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Lawrence and Sons", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "her", + "category": "plant", + "price": 964.01, + "stock_quantity": 650 + }, + "customer": { + "name": "Matthew Howard", + "age": 44, + "country": "French Southern Territories" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Caldwell Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Caldwell Ltd", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "reason", + "category": "sing", + "price": 177.4, + "stock_quantity": 86 + }, + "customer": { + "name": "Donald Mosley", + "age": 28, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Martin, Vaughn and Hancock", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "grow", + "category": "particular", + "price": 913.38, + "stock_quantity": 292 + }, + "customer": { + "name": "Anthony Mathews", + "age": 19, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Cameron Inc", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "listen", + "category": "thing", + "price": 420.41, + "stock_quantity": 28 + }, + "customer": { + "name": "Brian Moore", + "age": 36, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Wilson and Sons", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "home", + "category": "nothing", + "price": 411.64, + "stock_quantity": 617 + }, + "customer": { + "name": "Kathryn Novak", + "age": 68, + "country": "French Polynesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia, Powell and Hill'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia, Powell and Hill", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "morning", + "category": "music", + "price": 814.37, + "stock_quantity": 176 + }, + "customer": { + "name": "Cody Barnes", + "age": 69, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Guerrero Inc", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "drug", + "category": "system", + "price": 911.55, + "stock_quantity": 976 + }, + "customer": { + "name": "Kathryn Herrera", + "age": 22, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Snyder-Alvarez", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "voice", + "category": "wish", + "price": 912.81, + "stock_quantity": 229 + }, + "customer": { + "name": "Terri Johnson", + "age": 60, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Hughes-Mckee", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "serve", + "category": "sell", + "price": 349.15, + "stock_quantity": 211 + }, + "customer": { + "name": "Jennifer Deleon", + "age": 77, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Franklin Inc", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "among", + "category": "free", + "price": 704.31, + "stock_quantity": 598 + }, + "customer": { + "name": "John Simmons", + "age": 40, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Clements LLC", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "others", + "category": "inside", + "price": 394.37, + "stock_quantity": 405 + }, + "customer": { + "name": "Megan Jackson", + "age": 38, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Woodward, King and Kim", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "itself", + "category": "price", + "price": 783.41, + "stock_quantity": 45 + }, + "customer": { + "name": "Julie Smith", + "age": 37, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Johnson Group", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "computer", + "category": "measure", + "price": 834.13, + "stock_quantity": 574 + }, + "customer": { + "name": "Natasha George", + "age": 80, + "country": "Yemen" + } + }, + { + "natural_query": "How many orders were placed for Oconnell-Barrett between 2024-02-25 and 2024-04-09?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Oconnell-Barrett' AND order_date BETWEEN '2024-02-25' AND '2024-04-09'", + "company": { + "name": "Oconnell-Barrett", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "pull", + "category": "green", + "price": 875.54, + "stock_quantity": 933 + }, + "customer": { + "name": "Andre Bradshaw", + "age": 80, + "country": "Slovenia" + } + }, + { + "natural_query": "List all products of Knight Ltd ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Knight Ltd' ORDER BY price DESC", + "company": { + "name": "Knight Ltd", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "space", + "category": "give", + "price": 602.69, + "stock_quantity": 371 + }, + "customer": { + "name": "Diane Ellison", + "age": 43, + "country": "United States Minor Outlying Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gomez-Kennedy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gomez-Kennedy", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "attack", + "category": "information", + "price": 559.52, + "stock_quantity": 619 + }, + "customer": { + "name": "Michael Porter", + "age": 50, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "White, Bell and Peters", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "require", + "category": "off", + "price": 470.25, + "stock_quantity": 431 + }, + "customer": { + "name": "Kelsey Collins", + "age": 25, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Whitehead, Obrien and Wong", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "ball", + "category": "especially", + "price": 171.28, + "stock_quantity": 597 + }, + "customer": { + "name": "Alison Clark", + "age": 63, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Clark, Pearson and Humphrey", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "international", + "category": "garden", + "price": 56.31, + "stock_quantity": 5 + }, + "customer": { + "name": "Philip Nguyen", + "age": 77, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Cox and Sons", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "table", + "category": "enjoy", + "price": 300.72, + "stock_quantity": 443 + }, + "customer": { + "name": "Antonio Perez", + "age": 42, + "country": "Anguilla" + } + }, + { + "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'", + "company": { + "name": "Torres, Kim and Hunter", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "mention", + "category": "total", + "price": 184.14, + "stock_quantity": 680 + }, + "customer": { + "name": "Ryan Williams", + "age": 58, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Guerrero-Perez", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "onto", + "category": "shake", + "price": 806.05, + "stock_quantity": 494 + }, + "customer": { + "name": "Roberta Garrett", + "age": 37, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Simpson, Robinson and Franco", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "mind", + "category": "cup", + "price": 644.19, + "stock_quantity": 529 + }, + "customer": { + "name": "Maria Lawrence", + "age": 73, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Davis, Wolf and Chang", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "move", + "category": "suddenly", + "price": 47.92, + "stock_quantity": 204 + }, + "customer": { + "name": "Kaitlyn Brown", + "age": 20, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Bird, Briggs and Morales", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "old", + "category": "amount", + "price": 745.86, + "stock_quantity": 489 + }, + "customer": { + "name": "Linda Wheeler", + "age": 32, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Simmons Inc", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "watch", + "category": "beat", + "price": 835.79, + "stock_quantity": 300 + }, + "customer": { + "name": "Deborah Levy", + "age": 68, + "country": "Slovenia" + } + }, + { + "natural_query": "List all products of Bryant, Long and Fuentes ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Bryant, Long and Fuentes' ORDER BY stock_quantity ASC", + "company": { + "name": "Bryant, Long and Fuentes", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "four", + "category": "occur", + "price": 445.45, + "stock_quantity": 325 + }, + "customer": { + "name": "Christine Carr", + "age": 55, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Ibarra-Kelley", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "morning", + "category": "name", + "price": 660.05, + "stock_quantity": 190 + }, + "customer": { + "name": "Nicole Dunn", + "age": 80, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Contreras, Jones and Massey", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "one", + "category": "ask", + "price": 853.43, + "stock_quantity": 938 + }, + "customer": { + "name": "Jennifer Roberts", + "age": 30, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Lewis LLC", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "during", + "category": "agent", + "price": 859.01, + "stock_quantity": 374 + }, + "customer": { + "name": "Andrew Wheeler", + "age": 41, + "country": "Jamaica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Suarez-Perkins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Suarez-Perkins", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "gas", + "category": "that", + "price": 467.1, + "stock_quantity": 32 + }, + "customer": { + "name": "Cassandra Yu", + "age": 36, + "country": "Germany" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hood, Robertson and Benson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hood, Robertson and Benson", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "theory", + "category": "foot", + "price": 518.39, + "stock_quantity": 101 + }, + "customer": { + "name": "Patrick Campbell", + "age": 27, + "country": "Palau" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Wilcox-Fleming?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wilcox-Fleming' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Wilcox-Fleming", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "head", + "category": "laugh", + "price": 869.38, + "stock_quantity": 713 + }, + "customer": { + "name": "Susan Thompson", + "age": 49, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Frederick, Graham and Reid", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "clearly", + "category": "per", + "price": 660.24, + "stock_quantity": 828 + }, + "customer": { + "name": "Jessica Rios", + "age": 62, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Hudson PLC", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "bed", + "category": "model", + "price": 306.07, + "stock_quantity": 414 + }, + "customer": { + "name": "Nicole Hull DVM", + "age": 70, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Lopez-Suarez", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "service", + "category": "foot", + "price": 341.0, + "stock_quantity": 882 + }, + "customer": { + "name": "Connie Lin", + "age": 23, + "country": "Kiribati" + } + }, + { + "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'", + "company": { + "name": "Miller LLC", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "others", + "category": "popular", + "price": 458.8, + "stock_quantity": 216 + }, + "customer": { + "name": "Benjamin Nguyen", + "age": 51, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Powell, Lee and Ross", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "other", + "category": "science", + "price": 337.93, + "stock_quantity": 465 + }, + "customer": { + "name": "Christopher Ruiz MD", + "age": 39, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Russell, Sanchez and Benson", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "particular", + "category": "involve", + "price": 604.81, + "stock_quantity": 618 + }, + "customer": { + "name": "Martha Spencer", + "age": 57, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Montgomery PLC", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "into", + "category": "where", + "price": 419.52, + "stock_quantity": 493 + }, + "customer": { + "name": "Matthew Bradley", + "age": 61, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Garcia, Good and Alvarez", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "well", + "category": "six", + "price": 64.13, + "stock_quantity": 636 + }, + "customer": { + "name": "Donna Brown", + "age": 78, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Yoder LLC", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "small", + "category": "under", + "price": 75.63, + "stock_quantity": 736 + }, + "customer": { + "name": "Lisa Cole", + "age": 72, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Ross LLC", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "majority", + "category": "share", + "price": 265.91, + "stock_quantity": 135 + }, + "customer": { + "name": "Joshua Davidson", + "age": 34, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Sullivan Group", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "operation", + "category": "mission", + "price": 229.97, + "stock_quantity": 9 + }, + "customer": { + "name": "Robert Smith", + "age": 19, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Wood Inc", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "himself", + "category": "father", + "price": 580.02, + "stock_quantity": 230 + }, + "customer": { + "name": "Erin Johnson", + "age": 49, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "York, Rivera and Hudson", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "must", + "category": "she", + "price": 736.06, + "stock_quantity": 329 + }, + "customer": { + "name": "Julia Anderson", + "age": 18, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Dominguez Group", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "surface", + "category": "night", + "price": 336.42, + "stock_quantity": 389 + }, + "customer": { + "name": "Kevin Rowe", + "age": 54, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Anderson, Torres and Clark", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "military", + "category": "resource", + "price": 373.74, + "stock_quantity": 995 + }, + "customer": { + "name": "Molly Fuller", + "age": 53, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Porter, Jenkins and Powers", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "they", + "category": "talk", + "price": 887.61, + "stock_quantity": 155 + }, + "customer": { + "name": "Joshua Miller", + "age": 30, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Cox-Fisher", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "close", + "category": "power", + "price": 653.26, + "stock_quantity": 794 + }, + "customer": { + "name": "Melissa White", + "age": 23, + "country": "Rwanda" + } + }, + { + "natural_query": "List all products of Brown Ltd ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Brown Ltd' ORDER BY rating DESC", + "company": { + "name": "Brown Ltd", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "test", + "category": "old", + "price": 547.82, + "stock_quantity": 824 + }, + "customer": { + "name": "Nicholas Juarez", + "age": 74, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Ramirez, Sanchez and Baker", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "race", + "category": "hour", + "price": 651.59, + "stock_quantity": 464 + }, + "customer": { + "name": "Steven Brown", + "age": 80, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Rios PLC", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "response", + "category": "market", + "price": 422.59, + "stock_quantity": 624 + }, + "customer": { + "name": "Deborah Macdonald", + "age": 70, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Phillips, Rowe and Ball", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "sure", + "category": "inside", + "price": 39.51, + "stock_quantity": 691 + }, + "customer": { + "name": "Andrea Russell", + "age": 43, + "country": "Slovenia" + } + }, + { + "natural_query": "What is the total quantity for each country in Jones Inc?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Jones Inc' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Jones Inc", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "boy", + "category": "other", + "price": 696.83, + "stock_quantity": 112 + }, + "customer": { + "name": "Tony Miller", + "age": 66, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "White, Waller and Keller", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "use", + "category": "manager", + "price": 330.96, + "stock_quantity": 361 + }, + "customer": { + "name": "Melissa Jones", + "age": 40, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Powell and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Powell and Sons", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "way", + "category": "word", + "price": 571.65, + "stock_quantity": 925 + }, + "customer": { + "name": "Diana Wood", + "age": 71, + "country": "Taiwan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ford Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ford Ltd", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "resource", + "category": "issue", + "price": 327.0, + "stock_quantity": 259 + }, + "customer": { + "name": "Michelle Garza", + "age": 42, + "country": "Timor-Leste" + } + }, + { + "natural_query": "List all products of Phillips, Haynes and Bennett ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Phillips, Haynes and Bennett' ORDER BY rating DESC", + "company": { + "name": "Phillips, Haynes and Bennett", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "support", + "category": "anyone", + "price": 271.23, + "stock_quantity": 161 + }, + "customer": { + "name": "William Bowen", + "age": 29, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Olson-Nelson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Olson-Nelson", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "table", + "category": "true", + "price": 621.86, + "stock_quantity": 764 + }, + "customer": { + "name": "Ashley Stanley", + "age": 41, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Simon Ltd", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "onto", + "category": "visit", + "price": 552.74, + "stock_quantity": 583 + }, + "customer": { + "name": "Jonathan Richardson", + "age": 27, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Norris Inc", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "total", + "category": "five", + "price": 566.08, + "stock_quantity": 298 + }, + "customer": { + "name": "Samuel Zimmerman", + "age": 43, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Diaz, Boone and Henry", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "fire", + "category": "risk", + "price": 302.29, + "stock_quantity": 3 + }, + "customer": { + "name": "Ashley Higgins", + "age": 55, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Brooks LLC", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "follow", + "category": "peace", + "price": 914.15, + "stock_quantity": 916 + }, + "customer": { + "name": "Andrew Caldwell", + "age": 48, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Gilbert, Jones and Ruiz", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "pattern", + "category": "government", + "price": 187.02, + "stock_quantity": 497 + }, + "customer": { + "name": "Jessica Reynolds DVM", + "age": 64, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Contreras, Riley and Donaldson", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "buy", + "category": "me", + "price": 455.64, + "stock_quantity": 689 + }, + "customer": { + "name": "Cameron Thomas PhD", + "age": 30, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Turner-Stafford", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "away", + "category": "set", + "price": 626.22, + "stock_quantity": 347 + }, + "customer": { + "name": "Frank Miller", + "age": 71, + "country": "Syrian Arab Republic" + } + }, + { + "natural_query": "How many orders were placed for Humphrey and Sons between 2024-02-22 and 2024-08-09?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Humphrey and Sons' AND order_date BETWEEN '2024-02-22' AND '2024-08-09'", + "company": { + "name": "Humphrey and Sons", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "successful", + "category": "eye", + "price": 212.54, + "stock_quantity": 628 + }, + "customer": { + "name": "Laura Lee", + "age": 34, + "country": "Belarus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garrett Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garrett Group", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "chair", + "category": "culture", + "price": 467.1, + "stock_quantity": 970 + }, + "customer": { + "name": "Jamie Powell", + "age": 63, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Dillon Group", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "include", + "category": "knowledge", + "price": 582.86, + "stock_quantity": 492 + }, + "customer": { + "name": "Melissa Obrien", + "age": 47, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Lawson LLC", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "painting", + "category": "reason", + "price": 761.55, + "stock_quantity": 553 + }, + "customer": { + "name": "Debra Potter", + "age": 76, + "country": "Korea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Evans-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Evans-Anderson", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "change", + "category": "role", + "price": 827.47, + "stock_quantity": 517 + }, + "customer": { + "name": "Thomas Burke", + "age": 79, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Davila, Stafford and Fuentes", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "civil", + "category": "world", + "price": 978.41, + "stock_quantity": 140 + }, + "customer": { + "name": "Krista Martinez", + "age": 37, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Martin Group", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "possible", + "category": "war", + "price": 75.67, + "stock_quantity": 969 + }, + "customer": { + "name": "Paul Romero", + "age": 69, + "country": "Cayman Islands" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Lopez Group for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lopez Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lopez Group", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "identify", + "category": "method", + "price": 35.82, + "stock_quantity": 304 + }, + "customer": { + "name": "Kristi Graves", + "age": 70, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Miller, Ellis and Weaver", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "have", + "category": "choice", + "price": 42.68, + "stock_quantity": 604 + }, + "customer": { + "name": "Betty Young", + "age": 79, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Bridges-Vance", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "teach", + "category": "during", + "price": 449.5, + "stock_quantity": 22 + }, + "customer": { + "name": "Megan Curtis", + "age": 45, + "country": "Central African Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez LLC", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "accept", + "category": "describe", + "price": 740.66, + "stock_quantity": 391 + }, + "customer": { + "name": "Elizabeth Thornton", + "age": 71, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Oneill-Vasquez", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "red", + "category": "arm", + "price": 939.47, + "stock_quantity": 168 + }, + "customer": { + "name": "Michael Norris", + "age": 80, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Cook, Stevens and Mcgrath", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "money", + "category": "player", + "price": 663.78, + "stock_quantity": 326 + }, + "customer": { + "name": "Gary Smith", + "age": 44, + "country": "Uganda" + } + }, + { + "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'", + "company": { + "name": "Hall Group", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "resource", + "category": "fish", + "price": 753.93, + "stock_quantity": 237 + }, + "customer": { + "name": "Kimberly Ellis", + "age": 57, + "country": "Yemen" + } + }, + { + "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'", + "company": { + "name": "Melton-Evans", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "federal", + "category": "sing", + "price": 812.93, + "stock_quantity": 861 + }, + "customer": { + "name": "Todd Hernandez", + "age": 70, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Barker Ltd", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "door", + "category": "eye", + "price": 403.11, + "stock_quantity": 226 + }, + "customer": { + "name": "Nathan Davis", + "age": 72, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Shea Group", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "I", + "category": "series", + "price": 605.4, + "stock_quantity": 525 + }, + "customer": { + "name": "Joshua Sanchez", + "age": 73, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carr, Allen and Cook'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carr, Allen and Cook", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "blue", + "category": "what", + "price": 215.23, + "stock_quantity": 330 + }, + "customer": { + "name": "Brandon Olsen", + "age": 20, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Villegas and Sons", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "usually", + "category": "section", + "price": 267.13, + "stock_quantity": 652 + }, + "customer": { + "name": "Jonathan Lopez", + "age": 52, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Lozano, Waller and Ray", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "culture", + "category": "experience", + "price": 16.57, + "stock_quantity": 272 + }, + "customer": { + "name": "Gregory Baxter", + "age": 68, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Manning-Nguyen", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "son", + "category": "ready", + "price": 363.65, + "stock_quantity": 743 + }, + "customer": { + "name": "Luis Mata", + "age": 68, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Anderson, Rodriguez and James", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "red", + "category": "in", + "price": 771.14, + "stock_quantity": 356 + }, + "customer": { + "name": "Kristin Bryant", + "age": 43, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Carter, Leonard and Flores", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "house", + "category": "grow", + "price": 449.7, + "stock_quantity": 818 + }, + "customer": { + "name": "Stanley Robles", + "age": 73, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Freeman, Wolf and Garcia", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "record", + "category": "most", + "price": 969.91, + "stock_quantity": 281 + }, + "customer": { + "name": "Lonnie Johnson", + "age": 55, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Roman-Conrad", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "city", + "category": "conference", + "price": 421.34, + "stock_quantity": 691 + }, + "customer": { + "name": "Ryan Hall", + "age": 39, + "country": "Bahrain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Andrews Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Andrews Ltd", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "glass", + "category": "north", + "price": 832.74, + "stock_quantity": 645 + }, + "customer": { + "name": "Samuel Meyer DDS", + "age": 79, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Hicks PLC", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "source", + "category": "one", + "price": 163.08, + "stock_quantity": 585 + }, + "customer": { + "name": "Kimberly Lee", + "age": 41, + "country": "Moldova" + } + }, + { + "natural_query": "What are the top 7 products by revenue for White Inc this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'White Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7", + "company": { + "name": "White Inc", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "military", + "category": "ago", + "price": 603.13, + "stock_quantity": 604 + }, + "customer": { + "name": "Miss Lisa Gibbs", + "age": 40, + "country": "Honduras" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bailey-Rhodes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bailey-Rhodes", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "range", + "category": "bring", + "price": 616.76, + "stock_quantity": 968 + }, + "customer": { + "name": "Jasmin Holt", + "age": 71, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Thornton-Atkinson", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "pretty", + "category": "third", + "price": 721.3, + "stock_quantity": 496 + }, + "customer": { + "name": "Joshua Morales", + "age": 53, + "country": "Botswana" + } + }, + { + "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'", + "company": { + "name": "Martinez, Young and Aguilar", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "radio", + "category": "Democrat", + "price": 723.74, + "stock_quantity": 180 + }, + "customer": { + "name": "Randall Howard", + "age": 36, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Gillespie and Sons", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "simple", + "category": "memory", + "price": 151.77, + "stock_quantity": 656 + }, + "customer": { + "name": "Teresa Reynolds", + "age": 38, + "country": "Kiribati" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Trevino-Diaz'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Trevino-Diaz", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "voice", + "category": "condition", + "price": 386.18, + "stock_quantity": 89 + }, + "customer": { + "name": "Eric Delgado", + "age": 47, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Allen-May", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "stage", + "category": "believe", + "price": 771.0, + "stock_quantity": 943 + }, + "customer": { + "name": "Amanda Benton", + "age": 61, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Price-Hunter", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "feel", + "category": "its", + "price": 597.37, + "stock_quantity": 483 + }, + "customer": { + "name": "Jordan Berg", + "age": 62, + "country": "Mauritania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stewart-Thomas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stewart-Thomas", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "until", + "category": "continue", + "price": 523.22, + "stock_quantity": 660 + }, + "customer": { + "name": "Louis Brewer", + "age": 20, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Thompson LLC", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "view", + "category": "west", + "price": 268.82, + "stock_quantity": 219 + }, + "customer": { + "name": "Alison Cardenas", + "age": 56, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Barnes and Sons", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "ask", + "category": "take", + "price": 211.34, + "stock_quantity": 546 + }, + "customer": { + "name": "Timothy Pace", + "age": 77, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Atkins, Day and Anderson", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "or", + "category": "animal", + "price": 884.92, + "stock_quantity": 548 + }, + "customer": { + "name": "Dr. Ann Lewis", + "age": 38, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Tate, Moody and Roberson", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "size", + "category": "another", + "price": 865.82, + "stock_quantity": 812 + }, + "customer": { + "name": "Christopher Petersen", + "age": 79, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Jones-Miller", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "you", + "category": "serious", + "price": 950.5, + "stock_quantity": 532 + }, + "customer": { + "name": "Alicia Porter", + "age": 56, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Burns, Washington and Kirby", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "happy", + "category": "now", + "price": 282.38, + "stock_quantity": 54 + }, + "customer": { + "name": "Charles Harris", + "age": 60, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Humphrey, Brown and Pacheco", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "else", + "category": "apply", + "price": 674.19, + "stock_quantity": 897 + }, + "customer": { + "name": "Charles Simpson", + "age": 54, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Rush, Dominguez and Hicks", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "brother", + "category": "environmental", + "price": 191.55, + "stock_quantity": 386 + }, + "customer": { + "name": "Miguel Sanders", + "age": 30, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Robertson Ltd", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "some", + "category": "above", + "price": 783.05, + "stock_quantity": 260 + }, + "customer": { + "name": "Seth Johnson", + "age": 46, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Howell and Stanley", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "involve", + "category": "street", + "price": 394.61, + "stock_quantity": 126 + }, + "customer": { + "name": "Alyssa Boyd", + "age": 39, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Kelly, Mercado and Garcia", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "figure", + "category": "future", + "price": 558.06, + "stock_quantity": 607 + }, + "customer": { + "name": "Monica Davenport", + "age": 63, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Proctor, Martin and Peterson", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "program", + "category": "end", + "price": 240.07, + "stock_quantity": 858 + }, + "customer": { + "name": "Joseph Murphy", + "age": 31, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Martinez, Green and Graves", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "suffer", + "category": "power", + "price": 878.92, + "stock_quantity": 155 + }, + "customer": { + "name": "Mary Robinson", + "age": 32, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Jackson, Haynes and Phillips", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "despite", + "category": "certain", + "price": 326.91, + "stock_quantity": 560 + }, + "customer": { + "name": "Kendra Ramos", + "age": 31, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Porter-Bridges", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "value", + "category": "buy", + "price": 894.32, + "stock_quantity": 223 + }, + "customer": { + "name": "Annette Cannon", + "age": 67, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Le PLC", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "act", + "category": "form", + "price": 889.71, + "stock_quantity": 650 + }, + "customer": { + "name": "Troy Marshall", + "age": 51, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Schmidt, Cunningham and Montgomery", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "sort", + "category": "ago", + "price": 332.6, + "stock_quantity": 912 + }, + "customer": { + "name": "Nathan Graham", + "age": 32, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Smith Inc", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "again", + "category": "either", + "price": 260.59, + "stock_quantity": 811 + }, + "customer": { + "name": "Betty Harrington DDS", + "age": 33, + "country": "Vanuatu" + } + }, + { + "natural_query": "What are the top 10 products by revenue for Johnson-Williams this month?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Johnson-Williams' AND period = 'this month' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 10", + "company": { + "name": "Johnson-Williams", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "deep", + "category": "game", + "price": 149.31, + "stock_quantity": 597 + }, + "customer": { + "name": "Andrea Garcia", + "age": 59, + "country": "American Samoa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Knight, Rodriguez and Torres'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Knight, Rodriguez and Torres", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "become", + "category": "decision", + "price": 199.62, + "stock_quantity": 196 + }, + "customer": { + "name": "Kyle Ayers", + "age": 23, + "country": "Armenia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez, Young and Martin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez, Young and Martin", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "strong", + "category": "wear", + "price": 158.65, + "stock_quantity": 33 + }, + "customer": { + "name": "Patrick Cantu", + "age": 21, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Ball-Dickson", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "produce", + "category": "ball", + "price": 851.69, + "stock_quantity": 360 + }, + "customer": { + "name": "Jeremy Herrera", + "age": 38, + "country": "Martinique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lyons LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lyons LLC", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "final", + "category": "factor", + "price": 37.91, + "stock_quantity": 643 + }, + "customer": { + "name": "Barbara Martin", + "age": 27, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Long Inc", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "professional", + "category": "attack", + "price": 800.42, + "stock_quantity": 132 + }, + "customer": { + "name": "John Sanders", + "age": 34, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Li Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Li Ltd", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "sound", + "category": "guess", + "price": 723.47, + "stock_quantity": 964 + }, + "customer": { + "name": "Jason Barker", + "age": 32, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Marquez-Johnson", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "public", + "category": "necessary", + "price": 537.45, + "stock_quantity": 493 + }, + "customer": { + "name": "Casey Liu", + "age": 73, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Haynes-Moore", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "successful", + "category": "future", + "price": 819.3, + "stock_quantity": 593 + }, + "customer": { + "name": "Terri Garcia", + "age": 71, + "country": "Congo" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Morris, Tanner and Berry for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morris, Tanner and Berry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morris, Tanner and Berry", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "memory", + "category": "lot", + "price": 539.84, + "stock_quantity": 105 + }, + "customer": { + "name": "Rachel Marquez DVM", + "age": 65, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Martin-Mack", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "pull", + "category": "must", + "price": 132.87, + "stock_quantity": 409 + }, + "customer": { + "name": "Felicia Johnson", + "age": 69, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Greene, George and Turner", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "material", + "category": "business", + "price": 212.4, + "stock_quantity": 377 + }, + "customer": { + "name": "Jennifer Beard", + "age": 44, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Flynn, Knox and Olson", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "generation", + "category": "most", + "price": 124.63, + "stock_quantity": 222 + }, + "customer": { + "name": "Alan Adams", + "age": 59, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Wall PLC", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "positive", + "category": "audience", + "price": 372.94, + "stock_quantity": 414 + }, + "customer": { + "name": "Adam Henry", + "age": 56, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Ortega-King", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "class", + "category": "door", + "price": 989.4, + "stock_quantity": 514 + }, + "customer": { + "name": "Jennifer Landry", + "age": 18, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Mccarthy Ltd", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "community", + "category": "scene", + "price": 745.42, + "stock_quantity": 287 + }, + "customer": { + "name": "Holly Hudson", + "age": 79, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Mejia, Rivas and Oliver", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "reveal", + "category": "company", + "price": 443.13, + "stock_quantity": 864 + }, + "customer": { + "name": "Melinda Clark", + "age": 34, + "country": "Equatorial Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hart-Baldwin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hart-Baldwin", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "young", + "category": "say", + "price": 290.12, + "stock_quantity": 159 + }, + "customer": { + "name": "Dana Wilson", + "age": 53, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Wood and Sons", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "worry", + "category": "her", + "price": 299.26, + "stock_quantity": 196 + }, + "customer": { + "name": "Robert Kerr", + "age": 62, + "country": "Afghanistan" + } + }, + { + "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'", + "company": { + "name": "Foster, Ray and Gibson", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "recognize", + "category": "especially", + "price": 54.53, + "stock_quantity": 698 + }, + "customer": { + "name": "Susan Garner", + "age": 46, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Jones, Clay and White", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "this", + "category": "interesting", + "price": 72.6, + "stock_quantity": 33 + }, + "customer": { + "name": "Julie Arellano", + "age": 80, + "country": "Chile" + } + }, + { + "natural_query": "What are the top 3 products by sales for Giles-Klein this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Giles-Klein' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3", + "company": { + "name": "Giles-Klein", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "here", + "category": "a", + "price": 590.59, + "stock_quantity": 826 + }, + "customer": { + "name": "Jon Garcia", + "age": 63, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Young Group", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "small", + "category": "support", + "price": 807.28, + "stock_quantity": 177 + }, + "customer": { + "name": "Megan Morales", + "age": 25, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Mayer-Banks", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "mind", + "category": "represent", + "price": 394.67, + "stock_quantity": 346 + }, + "customer": { + "name": "Rachel Ware", + "age": 61, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Adams-Wood", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "heart", + "category": "perhaps", + "price": 81.85, + "stock_quantity": 735 + }, + "customer": { + "name": "Michael Higgins", + "age": 20, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "small", + "category": "machine", + "price": 146.92, + "stock_quantity": 769 + }, + "customer": { + "name": "Krista Morris", + "age": 37, + "country": "Uzbekistan" + } + }, + { + "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'", + "company": { + "name": "Valentine-Richmond", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "he", + "category": "artist", + "price": 613.39, + "stock_quantity": 496 + }, + "customer": { + "name": "John Calhoun", + "age": 63, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Molina-Jackson", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "Democrat", + "category": "want", + "price": 782.22, + "stock_quantity": 373 + }, + "customer": { + "name": "Christopher Jones", + "age": 32, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Robinson-Hanson", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "theory", + "category": "research", + "price": 734.33, + "stock_quantity": 718 + }, + "customer": { + "name": "Eric Wheeler", + "age": 49, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Harrison-Perez", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "mention", + "category": "good", + "price": 970.29, + "stock_quantity": 329 + }, + "customer": { + "name": "Anna Hughes", + "age": 53, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Davis-Hunter", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "development", + "category": "still", + "price": 155.97, + "stock_quantity": 526 + }, + "customer": { + "name": "Ronald Chung", + "age": 52, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Hawkins-Fisher", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "sound", + "category": "player", + "price": 222.62, + "stock_quantity": 311 + }, + "customer": { + "name": "Alexander Moore", + "age": 66, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Barr-Berry", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "century", + "category": "force", + "price": 133.46, + "stock_quantity": 638 + }, + "customer": { + "name": "Brett Morgan", + "age": 47, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Shepard LLC", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "stock", + "category": "once", + "price": 746.19, + "stock_quantity": 749 + }, + "customer": { + "name": "Alan Mcpherson", + "age": 25, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Salazar, Fuller and Phillips", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "marriage", + "category": "receive", + "price": 937.21, + "stock_quantity": 205 + }, + "customer": { + "name": "Jamie Stevens", + "age": 79, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Garcia, Jordan and Gilbert", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "in", + "category": "notice", + "price": 697.77, + "stock_quantity": 664 + }, + "customer": { + "name": "David Taylor", + "age": 29, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Herrera Group", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "cultural", + "category": "evening", + "price": 583.76, + "stock_quantity": 412 + }, + "customer": { + "name": "Christina Jones", + "age": 74, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Carr, Kelly and Schultz", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "never", + "category": "paper", + "price": 749.59, + "stock_quantity": 414 + }, + "customer": { + "name": "Lisa Castro MD", + "age": 41, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Rodriguez and Soto", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "easy", + "category": "central", + "price": 249.75, + "stock_quantity": 431 + }, + "customer": { + "name": "Sophia Logan", + "age": 23, + "country": "Puerto Rico" + } + }, + { + "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'", + "company": { + "name": "Romero-Collins", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "summer", + "category": "until", + "price": 573.14, + "stock_quantity": 621 + }, + "customer": { + "name": "Brandon Phillips", + "age": 49, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Barker-Daniel", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "issue", + "category": "strategy", + "price": 444.14, + "stock_quantity": 106 + }, + "customer": { + "name": "Francisco Smith", + "age": 21, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Tran-Reid", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "serve", + "category": "just", + "price": 443.16, + "stock_quantity": 916 + }, + "customer": { + "name": "Gary Evans", + "age": 33, + "country": "Malaysia" + } + }, + { + "natural_query": "How many orders were placed for Campos, Bernard and Rogers between 2024-07-07 and 2024-09-01?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Campos, Bernard and Rogers' AND order_date BETWEEN '2024-07-07' AND '2024-09-01'", + "company": { + "name": "Campos, Bernard and Rogers", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "go", + "category": "cultural", + "price": 287.61, + "stock_quantity": 741 + }, + "customer": { + "name": "Andrew Benjamin", + "age": 27, + "country": "Latvia" + } + }, + { + "natural_query": "List all products of Dunn, Rivera and Curtis ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Dunn, Rivera and Curtis' ORDER BY rating ASC", + "company": { + "name": "Dunn, Rivera and Curtis", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "actually", + "category": "life", + "price": 372.57, + "stock_quantity": 513 + }, + "customer": { + "name": "Tina Schmitt", + "age": 51, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Howard, Morris and Henry", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "system", + "category": "fill", + "price": 432.18, + "stock_quantity": 453 + }, + "customer": { + "name": "Adam Pope", + "age": 36, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Mendoza Inc", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "dog", + "category": "maybe", + "price": 935.74, + "stock_quantity": 176 + }, + "customer": { + "name": "James Lopez", + "age": 19, + "country": "Dominica" + } + }, + { + "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'", + "company": { + "name": "Roberts-Walker", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "baby", + "category": "green", + "price": 150.26, + "stock_quantity": 776 + }, + "customer": { + "name": "Julia Mcbride", + "age": 53, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Williams, Lyons and Costa", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "number", + "category": "development", + "price": 157.97, + "stock_quantity": 545 + }, + "customer": { + "name": "Taylor Martinez", + "age": 20, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Payne, Brown and Hill", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "manage", + "category": "vote", + "price": 45.17, + "stock_quantity": 891 + }, + "customer": { + "name": "Tonya Patton", + "age": 49, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Meyer, Contreras and Barrett", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "themselves", + "category": "activity", + "price": 448.46, + "stock_quantity": 81 + }, + "customer": { + "name": "Marissa Richardson", + "age": 47, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martin Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martin Ltd", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "natural", + "category": "give", + "price": 684.12, + "stock_quantity": 60 + }, + "customer": { + "name": "Seth Hoover", + "age": 73, + "country": "Nigeria" + } + }, + { + "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'", + "company": { + "name": "Ayala-Smith", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "soldier", + "category": "look", + "price": 612.9, + "stock_quantity": 290 + }, + "customer": { + "name": "Robert Swanson", + "age": 30, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Miller-Myers", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "mean", + "category": "try", + "price": 620.47, + "stock_quantity": 686 + }, + "customer": { + "name": "Rebecca Franklin", + "age": 53, + "country": "Uzbekistan" + } + }, + { + "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'", + "company": { + "name": "Powell Inc", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "authority", + "category": "world", + "price": 497.26, + "stock_quantity": 364 + }, + "customer": { + "name": "Shelby Lee", + "age": 39, + "country": "Hong Kong" + } + }, + { + "natural_query": "How many orders were placed for Roberts, Wu and Hernandez between 2023-12-11 and 2024-01-22?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberts, Wu and Hernandez' AND order_date BETWEEN '2023-12-11' AND '2024-01-22'", + "company": { + "name": "Roberts, Wu and Hernandez", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "do", + "category": "last", + "price": 286.67, + "stock_quantity": 799 + }, + "customer": { + "name": "Darren Collier", + "age": 30, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Haney, Davis and Brandt", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "reality", + "category": "mention", + "price": 526.91, + "stock_quantity": 765 + }, + "customer": { + "name": "Dwayne Yang", + "age": 43, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Parker-Valdez", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "full", + "category": "sure", + "price": 702.33, + "stock_quantity": 455 + }, + "customer": { + "name": "Derrick Yoder", + "age": 36, + "country": "Chad" + } + }, + { + "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'", + "company": { + "name": "Rios and Sons", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "compare", + "category": "age", + "price": 840.54, + "stock_quantity": 623 + }, + "customer": { + "name": "Lisa Cantu", + "age": 53, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Terry LLC", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "like", + "category": "real", + "price": 494.66, + "stock_quantity": 686 + }, + "customer": { + "name": "Jeremy Suarez", + "age": 69, + "country": "Central African Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Terry, Bird and Orr'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Terry, Bird and Orr", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "tree", + "category": "development", + "price": 210.57, + "stock_quantity": 711 + }, + "customer": { + "name": "Robin Smith", + "age": 72, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Hanson, Newman and Barnett", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "produce", + "category": "young", + "price": 855.0, + "stock_quantity": 270 + }, + "customer": { + "name": "Lauren Wallace", + "age": 41, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Rice-Mcdonald", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "near", + "category": "trial", + "price": 275.0, + "stock_quantity": 287 + }, + "customer": { + "name": "Dana Sanchez", + "age": 51, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Davila-Schroeder", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "population", + "category": "drug", + "price": 790.56, + "stock_quantity": 698 + }, + "customer": { + "name": "Joshua Brown", + "age": 56, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Mendoza-Reeves", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "but", + "category": "issue", + "price": 434.59, + "stock_quantity": 639 + }, + "customer": { + "name": "Victoria Larson", + "age": 52, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Carter, Weaver and Campbell", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "century", + "category": "east", + "price": 865.62, + "stock_quantity": 355 + }, + "customer": { + "name": "Jessica Vega", + "age": 65, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Johnson, Harris and Richmond", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "star", + "category": "really", + "price": 625.33, + "stock_quantity": 514 + }, + "customer": { + "name": "Jamie Rice", + "age": 46, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Watson Group", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "student", + "category": "inside", + "price": 920.71, + "stock_quantity": 335 + }, + "customer": { + "name": "Judy Reyes", + "age": 25, + "country": "Netherlands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lewis Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lewis Inc", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "town", + "category": "table", + "price": 42.56, + "stock_quantity": 149 + }, + "customer": { + "name": "Stephanie Graves", + "age": 70, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Cisneros LLC", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "thus", + "category": "daughter", + "price": 862.15, + "stock_quantity": 115 + }, + "customer": { + "name": "James Molina", + "age": 71, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Hoover Inc", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "trial", + "category": "summer", + "price": 188.64, + "stock_quantity": 495 + }, + "customer": { + "name": "Megan Garcia", + "age": 23, + "country": "Switzerland" + } + }, + { + "natural_query": "What are the top 6 products by customers for Livingston, Green and Harris this month?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Livingston, Green and Harris' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6", + "company": { + "name": "Livingston, Green and Harris", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "coach", + "category": "because", + "price": 160.16, + "stock_quantity": 412 + }, + "customer": { + "name": "Adam Griffith", + "age": 24, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "natural_query": "What is the total profit for each supplier in Garza PLC?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Garza PLC' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Garza PLC", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "finally", + "category": "call", + "price": 286.37, + "stock_quantity": 259 + }, + "customer": { + "name": "Mary Myers", + "age": 66, + "country": "Wallis and Futuna" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mccall, Kaiser and Mclean'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mccall, Kaiser and Mclean", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "avoid", + "category": "lay", + "price": 80.24, + "stock_quantity": 69 + }, + "customer": { + "name": "Andrew Collins DDS", + "age": 73, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Arias-Cross", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "night", + "category": "choose", + "price": 399.94, + "stock_quantity": 430 + }, + "customer": { + "name": "Daniel Macias", + "age": 55, + "country": "Cayman Islands" + } + }, + { + "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'", + "company": { + "name": "Branch-Walton", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "down", + "category": "look", + "price": 839.19, + "stock_quantity": 466 + }, + "customer": { + "name": "Diana Christian", + "age": 67, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Potter, Fuentes and Delgado", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "station", + "category": "appear", + "price": 189.32, + "stock_quantity": 352 + }, + "customer": { + "name": "Cassandra Thomas", + "age": 58, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "should", + "category": "situation", + "price": 743.42, + "stock_quantity": 977 + }, + "customer": { + "name": "Kristin Schaefer", + "age": 36, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Gallagher-Flynn", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "maintain", + "category": "drop", + "price": 65.7, + "stock_quantity": 984 + }, + "customer": { + "name": "Amanda Chung", + "age": 30, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Carter PLC", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "himself", + "category": "like", + "price": 156.46, + "stock_quantity": 498 + }, + "customer": { + "name": "Jeanette Gates", + "age": 46, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Wallace, Anderson and Stevens", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "trouble", + "category": "your", + "price": 53.33, + "stock_quantity": 324 + }, + "customer": { + "name": "Chelsea Grant", + "age": 22, + "country": "Uzbekistan" + } + }, + { + "natural_query": "List all customers and their total order value for Carter-Lynch.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Carter-Lynch' GROUP BY c.customer_id", + "company": { + "name": "Carter-Lynch", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "alone", + "category": "management", + "price": 322.98, + "stock_quantity": 661 + }, + "customer": { + "name": "Kevin Trujillo", + "age": 49, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Schneider LLC", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "model", + "category": "stock", + "price": 607.05, + "stock_quantity": 321 + }, + "customer": { + "name": "Scott Holmes", + "age": 54, + "country": "Pakistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Owens, Gomez and Sanchez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Owens, Gomez and Sanchez", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "nice", + "category": "soldier", + "price": 856.13, + "stock_quantity": 281 + }, + "customer": { + "name": "Tiffany Franklin", + "age": 34, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Brown Inc", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "grow", + "category": "seat", + "price": 298.72, + "stock_quantity": 490 + }, + "customer": { + "name": "Jennifer Mckinney", + "age": 37, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Reyes, White and Garcia", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "write", + "category": "price", + "price": 390.77, + "stock_quantity": 149 + }, + "customer": { + "name": "Steven Walker", + "age": 66, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Frank-Lane", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "word", + "category": "near", + "price": 997.08, + "stock_quantity": 259 + }, + "customer": { + "name": "Mary Wang", + "age": 64, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Lowe-Wood", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "personal", + "category": "foot", + "price": 680.2, + "stock_quantity": 998 + }, + "customer": { + "name": "Renee Bailey", + "age": 27, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Jenkins, Harper and Brown", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "dream", + "category": "finish", + "price": 530.61, + "stock_quantity": 43 + }, + "customer": { + "name": "Brittany Weiss", + "age": 55, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Fox-Cook", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "side", + "category": "seem", + "price": 218.03, + "stock_quantity": 53 + }, + "customer": { + "name": "Molly Martin", + "age": 69, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Barrera-Jackson", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "chance", + "category": "single", + "price": 845.76, + "stock_quantity": 953 + }, + "customer": { + "name": "Robert Barrett", + "age": 76, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Olsen Ltd", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "add", + "category": "rate", + "price": 332.22, + "stock_quantity": 998 + }, + "customer": { + "name": "Monique Young", + "age": 29, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Horton, Donovan and Kennedy", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "cell", + "category": "central", + "price": 924.61, + "stock_quantity": 496 + }, + "customer": { + "name": "Jeremy Diaz", + "age": 49, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Meadows, Bowman and Gonzalez", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "could", + "category": "southern", + "price": 538.13, + "stock_quantity": 460 + }, + "customer": { + "name": "David Collins", + "age": 26, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Peters-Baird", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "nor", + "category": "attorney", + "price": 960.5, + "stock_quantity": 534 + }, + "customer": { + "name": "Dawn Silva", + "age": 49, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Davis, Smith and King", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "baby", + "category": "would", + "price": 56.39, + "stock_quantity": 529 + }, + "customer": { + "name": "Joseph Frank", + "age": 18, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Garcia", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "support", + "category": "energy", + "price": 614.69, + "stock_quantity": 356 + }, + "customer": { + "name": "Dawn Peters", + "age": 19, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Miller Ltd", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "response", + "category": "everyone", + "price": 283.26, + "stock_quantity": 933 + }, + "customer": { + "name": "Charles Gaines", + "age": 46, + "country": "Ghana" + } + }, + { + "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'", + "company": { + "name": "Martinez-Faulkner", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "son", + "category": "prepare", + "price": 543.96, + "stock_quantity": 863 + }, + "customer": { + "name": "Patrick Miranda", + "age": 63, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Blair, Harris and Simmons", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "line", + "category": "these", + "price": 790.07, + "stock_quantity": 354 + }, + "customer": { + "name": "Gary Bowen", + "age": 59, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Russo LLC", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "into", + "category": "stop", + "price": 847.96, + "stock_quantity": 593 + }, + "customer": { + "name": "James Jones", + "age": 27, + "country": "Belarus" + } + }, + { + "natural_query": "What are the top 6 products by customers for Holder-Tucker last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Holder-Tucker' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6", + "company": { + "name": "Holder-Tucker", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "east", + "category": "claim", + "price": 926.22, + "stock_quantity": 556 + }, + "customer": { + "name": "Melvin Hawkins", + "age": 48, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reed PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reed PLC", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "type", + "category": "threat", + "price": 465.65, + "stock_quantity": 626 + }, + "customer": { + "name": "April Moore MD", + "age": 21, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Butler, Pacheco and Riley", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "cup", + "category": "though", + "price": 533.2, + "stock_quantity": 256 + }, + "customer": { + "name": "Ian Cunningham", + "age": 40, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Taylor, Everett and Carlson", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "also", + "category": "white", + "price": 479.96, + "stock_quantity": 658 + }, + "customer": { + "name": "Jessica Herring", + "age": 22, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Harris-Moore", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "level", + "category": "drop", + "price": 98.14, + "stock_quantity": 538 + }, + "customer": { + "name": "Nicholas Abbott", + "age": 69, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Waller, Chang and Olson", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "serious", + "category": "between", + "price": 759.93, + "stock_quantity": 950 + }, + "customer": { + "name": "Judith Chavez", + "age": 29, + "country": "Togo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roberts-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roberts-Anderson", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "enter", + "category": "research", + "price": 393.43, + "stock_quantity": 482 + }, + "customer": { + "name": "Megan Fuentes", + "age": 79, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Smith, Harris and Avila", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "impact", + "category": "tree", + "price": 670.57, + "stock_quantity": 389 + }, + "customer": { + "name": "Charles Moreno", + "age": 38, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Murphy-Lee", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "whether", + "category": "situation", + "price": 269.74, + "stock_quantity": 892 + }, + "customer": { + "name": "Troy Matthews", + "age": 27, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Mills Group", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "make", + "category": "through", + "price": 106.07, + "stock_quantity": 101 + }, + "customer": { + "name": "Robert Bryant", + "age": 27, + "country": "Turkey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown-Brock'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown-Brock", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "economy", + "category": "continue", + "price": 34.07, + "stock_quantity": 699 + }, + "customer": { + "name": "Michael Williams", + "age": 38, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Baxter, Mendoza and Miller", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "better", + "category": "no", + "price": 369.03, + "stock_quantity": 920 + }, + "customer": { + "name": "Michelle Rogers", + "age": 72, + "country": "Mayotte" + } + }, + { + "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'", + "company": { + "name": "Werner-Riley", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "spring", + "category": "area", + "price": 241.82, + "stock_quantity": 50 + }, + "customer": { + "name": "Jody Snyder", + "age": 45, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Hill-Hutchinson", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "specific", + "category": "candidate", + "price": 58.86, + "stock_quantity": 188 + }, + "customer": { + "name": "Lisa Rios", + "age": 68, + "country": "Dominica" + } + }, + { + "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'", + "company": { + "name": "Rodriguez, Gonzalez and Ritter", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "medical", + "category": "movement", + "price": 441.13, + "stock_quantity": 144 + }, + "customer": { + "name": "Daniel Archer", + "age": 18, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Reyes and Sons", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "himself", + "category": "all", + "price": 192.36, + "stock_quantity": 817 + }, + "customer": { + "name": "Nathaniel Gibson", + "age": 54, + "country": "Macao" + } + }, + { + "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'", + "company": { + "name": "Aguilar, Hughes and Ponce", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "drive", + "category": "second", + "price": 937.73, + "stock_quantity": 633 + }, + "customer": { + "name": "Sandra Pena", + "age": 49, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Patrick, Butler and Sherman", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "skin", + "category": "tree", + "price": 970.11, + "stock_quantity": 110 + }, + "customer": { + "name": "Yvonne Guzman", + "age": 46, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Navarro-Acevedo", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "specific", + "category": "claim", + "price": 690.78, + "stock_quantity": 650 + }, + "customer": { + "name": "Mark Santiago", + "age": 60, + "country": "Morocco" + } + }, + { + "natural_query": "List all customers and their total order value for Perez Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Perez Ltd' GROUP BY c.customer_id", + "company": { + "name": "Perez Ltd", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "newspaper", + "category": "or", + "price": 892.84, + "stock_quantity": 868 + }, + "customer": { + "name": "Stephanie Williams", + "age": 45, + "country": "Cameroon" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Bender-Martin for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bender-Martin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bender-Martin", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "security", + "category": "perform", + "price": 574.11, + "stock_quantity": 151 + }, + "customer": { + "name": "Wanda Collins", + "age": 34, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Carson Group", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "very", + "category": "since", + "price": 733.41, + "stock_quantity": 341 + }, + "customer": { + "name": "Donald Carrillo", + "age": 44, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Allen-Larsen", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "try", + "category": "care", + "price": 440.03, + "stock_quantity": 948 + }, + "customer": { + "name": "Kerri Sutton", + "age": 55, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Luna Ltd", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "industry", + "category": "long", + "price": 797.8, + "stock_quantity": 936 + }, + "customer": { + "name": "Chelsea Phillips", + "age": 29, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Spencer Ltd", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "task", + "category": "appear", + "price": 402.45, + "stock_quantity": 667 + }, + "customer": { + "name": "Jerry Conrad", + "age": 30, + "country": "El Salvador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'White PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "White PLC", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "of", + "category": "reveal", + "price": 555.65, + "stock_quantity": 674 + }, + "customer": { + "name": "Eric Bender", + "age": 35, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Hampton-Cortez", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "put", + "category": "sort", + "price": 69.9, + "stock_quantity": 88 + }, + "customer": { + "name": "Kelli Flores", + "age": 73, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Bell, Brown and Smith", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "road", + "category": "why", + "price": 906.51, + "stock_quantity": 961 + }, + "customer": { + "name": "James Mcdaniel", + "age": 33, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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'", + "company": { + "name": "Carter, Luna and Liu", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "really", + "category": "shoulder", + "price": 526.04, + "stock_quantity": 459 + }, + "customer": { + "name": "Angela Reyes", + "age": 24, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Church-Brown", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "budget", + "category": "commercial", + "price": 922.6, + "stock_quantity": 654 + }, + "customer": { + "name": "David Golden", + "age": 22, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Jackson Ltd", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "economic", + "category": "article", + "price": 69.34, + "stock_quantity": 629 + }, + "customer": { + "name": "Elizabeth Ortiz", + "age": 53, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Taylor Group", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "opportunity", + "category": "movie", + "price": 72.18, + "stock_quantity": 577 + }, + "customer": { + "name": "Samantha Santiago", + "age": 49, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Garrett, Mckinney and Krueger", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "politics", + "category": "until", + "price": 235.51, + "stock_quantity": 571 + }, + "customer": { + "name": "Angela Rollins", + "age": 29, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Garcia and Sons", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "professor", + "category": "three", + "price": 256.77, + "stock_quantity": 31 + }, + "customer": { + "name": "David Griffin", + "age": 55, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Cooke-Kline", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "staff", + "category": "brother", + "price": 529.95, + "stock_quantity": 62 + }, + "customer": { + "name": "Kristin Nolan", + "age": 29, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "natural_query": "What are the top 4 products by orders for Scott and Sons last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Scott and Sons' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4", + "company": { + "name": "Scott and Sons", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "national", + "category": "statement", + "price": 874.86, + "stock_quantity": 438 + }, + "customer": { + "name": "Jason Knight", + "age": 74, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Bell-Clark", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "traditional", + "category": "whom", + "price": 917.04, + "stock_quantity": 774 + }, + "customer": { + "name": "Richard Delacruz", + "age": 41, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Miller, Nicholson and Jones", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "doctor", + "category": "pick", + "price": 435.31, + "stock_quantity": 983 + }, + "customer": { + "name": "Melanie Browning", + "age": 50, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Harrell, Anthony and Mendoza", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "lead", + "category": "lose", + "price": 951.84, + "stock_quantity": 880 + }, + "customer": { + "name": "Jeremiah James", + "age": 77, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Morris, Hernandez and Haney", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "population", + "category": "piece", + "price": 789.21, + "stock_quantity": 903 + }, + "customer": { + "name": "Bobby Curtis", + "age": 45, + "country": "Serbia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Freeman-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Freeman-Johnson", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "result", + "category": "method", + "price": 356.54, + "stock_quantity": 844 + }, + "customer": { + "name": "Bethany Perez", + "age": 38, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Conner-Hill", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "room", + "category": "soldier", + "price": 33.82, + "stock_quantity": 507 + }, + "customer": { + "name": "Nichole Reynolds", + "age": 57, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Banks, Silva and Maxwell", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "push", + "category": "final", + "price": 402.72, + "stock_quantity": 844 + }, + "customer": { + "name": "Charlotte Ferguson", + "age": 69, + "country": "Japan" + } + }, + { + "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'", + "company": { + "name": "Howell-Escobar", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "question", + "category": "store", + "price": 579.78, + "stock_quantity": 771 + }, + "customer": { + "name": "Michael Blankenship", + "age": 65, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Davis Inc", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "piece", + "category": "thought", + "price": 994.15, + "stock_quantity": 304 + }, + "customer": { + "name": "Johnny Diaz", + "age": 32, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Jones-Smith", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "side", + "category": "able", + "price": 316.1, + "stock_quantity": 935 + }, + "customer": { + "name": "Jeffrey Schultz V", + "age": 32, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Powers, Buckley and Brown", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "decision", + "category": "list", + "price": 265.73, + "stock_quantity": 427 + }, + "customer": { + "name": "John Turner", + "age": 59, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Harrison and Sons", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "organization", + "category": "policy", + "price": 833.32, + "stock_quantity": 79 + }, + "customer": { + "name": "William Arnold", + "age": 39, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "cup", + "category": "kitchen", + "price": 721.03, + "stock_quantity": 833 + }, + "customer": { + "name": "Daniel Cain", + "age": 68, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Odonnell-Rodriguez", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "challenge", + "category": "edge", + "price": 352.14, + "stock_quantity": 861 + }, + "customer": { + "name": "Russell Smith", + "age": 62, + "country": "Belgium" + } + }, + { + "natural_query": "List all customers and their total order value for Walker, Key and Blackwell.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Walker, Key and Blackwell' GROUP BY c.customer_id", + "company": { + "name": "Walker, Key and Blackwell", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "action", + "category": "floor", + "price": 245.6, + "stock_quantity": 449 + }, + "customer": { + "name": "Renee Snyder", + "age": 49, + "country": "Botswana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Larson Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Larson Inc", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "wife", + "category": "almost", + "price": 79.98, + "stock_quantity": 353 + }, + "customer": { + "name": "Felicia Allen", + "age": 27, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Larson, Hanna and Thomas", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "bit", + "category": "rise", + "price": 891.26, + "stock_quantity": 391 + }, + "customer": { + "name": "Michelle Stevens", + "age": 22, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Jones, Montes and Baker", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "huge", + "category": "expert", + "price": 877.96, + "stock_quantity": 947 + }, + "customer": { + "name": "Nancy Mcguire", + "age": 65, + "country": "Norway" + } + }, + { + "natural_query": "Show me all products in the whom category with a price over $287.41.", + "sql_query": "SELECT * FROM products WHERE category = 'whom' AND price > 287.41", + "company": { + "name": "Scott-Scott", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "religious", + "category": "whom", + "price": 287.41, + "stock_quantity": 626 + }, + "customer": { + "name": "Joshua Rocha", + "age": 22, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Rios-Black", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "rather", + "category": "main", + "price": 941.91, + "stock_quantity": 720 + }, + "customer": { + "name": "Sharon Barron", + "age": 23, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Carter, Hendrix and Bailey", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "pretty", + "category": "open", + "price": 864.16, + "stock_quantity": 518 + }, + "customer": { + "name": "Omar Parker", + "age": 66, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Ross PLC", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "weight", + "category": "cup", + "price": 578.49, + "stock_quantity": 262 + }, + "customer": { + "name": "Cheryl Smith", + "age": 22, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Ross Group", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "her", + "category": "age", + "price": 872.85, + "stock_quantity": 780 + }, + "customer": { + "name": "Christine Collins", + "age": 30, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Smith, Campbell and Perez", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "choose", + "category": "sell", + "price": 500.87, + "stock_quantity": 166 + }, + "customer": { + "name": "James Shaw", + "age": 63, + "country": "Sri Lanka" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bridges, Banks and Vaughn'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bridges, Banks and Vaughn", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "safe", + "category": "big", + "price": 296.43, + "stock_quantity": 764 + }, + "customer": { + "name": "Ronnie Mills", + "age": 69, + "country": "Guadeloupe" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Grant-Johnson for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Grant-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Grant-Johnson", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "wear", + "category": "word", + "price": 483.24, + "stock_quantity": 236 + }, + "customer": { + "name": "Jessica Torres", + "age": 80, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Harrell and Sons", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "claim", + "category": "to", + "price": 344.44, + "stock_quantity": 406 + }, + "customer": { + "name": "Ryan Clarke", + "age": 73, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Blake Group", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "pass", + "category": "law", + "price": 595.93, + "stock_quantity": 736 + }, + "customer": { + "name": "Laurie Potter", + "age": 43, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Caldwell, Griffith and Ruiz", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "recently", + "category": "cause", + "price": 28.26, + "stock_quantity": 820 + }, + "customer": { + "name": "Tammy Gordon", + "age": 60, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Grant LLC", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "although", + "category": "imagine", + "price": 969.2, + "stock_quantity": 698 + }, + "customer": { + "name": "Cody Campbell", + "age": 19, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Ellis Inc", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "world", + "category": "free", + "price": 340.36, + "stock_quantity": 150 + }, + "customer": { + "name": "James Banks", + "age": 38, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Andrews, Snyder and Taylor", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "add", + "category": "father", + "price": 72.91, + "stock_quantity": 276 + }, + "customer": { + "name": "Craig Benton", + "age": 54, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Rogers PLC", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "art", + "category": "hope", + "price": 232.39, + "stock_quantity": 885 + }, + "customer": { + "name": "Katie Calhoun", + "age": 32, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Lewis-Payne", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "tell", + "category": "feel", + "price": 46.23, + "stock_quantity": 324 + }, + "customer": { + "name": "Spencer Collins", + "age": 78, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Mosley-Byrd", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "in", + "category": "raise", + "price": 733.28, + "stock_quantity": 474 + }, + "customer": { + "name": "Zachary Nunez", + "age": 35, + "country": "France" + } + }, + { + "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'", + "company": { + "name": "Garcia, Smith and Valdez", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "short", + "category": "specific", + "price": 318.51, + "stock_quantity": 896 + }, + "customer": { + "name": "Morgan Lopez", + "age": 59, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Higgins, Myers and Steele", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "series", + "category": "former", + "price": 768.01, + "stock_quantity": 927 + }, + "customer": { + "name": "Kimberly Kramer", + "age": 62, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Barker, Lopez and Nguyen", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "new", + "category": "direction", + "price": 554.53, + "stock_quantity": 435 + }, + "customer": { + "name": "Danielle Warren", + "age": 31, + "country": "Andorra" + } + }, + { + "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'", + "company": { + "name": "Nguyen LLC", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "century", + "category": "soldier", + "price": 894.61, + "stock_quantity": 190 + }, + "customer": { + "name": "Jessica Oconnor", + "age": 68, + "country": "Christmas Island" + } + }, + { + "natural_query": "What is the total sales for each country in Davis-Rowe?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis-Rowe' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Davis-Rowe", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "surface", + "category": "last", + "price": 272.06, + "stock_quantity": 224 + }, + "customer": { + "name": "Christopher Jenkins", + "age": 29, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Sims, Jennings and Hahn", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "local", + "category": "she", + "price": 333.51, + "stock_quantity": 178 + }, + "customer": { + "name": "Pamela Anderson", + "age": 79, + "country": "Tokelau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones Inc", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "mention", + "category": "single", + "price": 632.91, + "stock_quantity": 135 + }, + "customer": { + "name": "Heidi Hoover MD", + "age": 35, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Bryant-Gonzales", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "ask", + "category": "relationship", + "price": 472.06, + "stock_quantity": 774 + }, + "customer": { + "name": "Sarah Payne", + "age": 54, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Stone, Hernandez and Sandoval", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "nor", + "category": "personal", + "price": 315.31, + "stock_quantity": 333 + }, + "customer": { + "name": "Michael Mcconnell", + "age": 76, + "country": "Mauritius" + } + }, + { + "natural_query": "List all products of Robinson-Berry ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Robinson-Berry' ORDER BY price ASC", + "company": { + "name": "Robinson-Berry", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "establish", + "category": "animal", + "price": 673.5, + "stock_quantity": 306 + }, + "customer": { + "name": "Amanda Floyd", + "age": 49, + "country": "Greenland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Peters Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Peters Group", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "those", + "category": "create", + "price": 465.84, + "stock_quantity": 792 + }, + "customer": { + "name": "Jessica Lee", + "age": 67, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Fisher-Peterson", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "far", + "category": "another", + "price": 659.18, + "stock_quantity": 907 + }, + "customer": { + "name": "Breanna Mccoy", + "age": 32, + "country": "Uzbekistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cantrell Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cantrell Inc", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "since", + "category": "wide", + "price": 715.52, + "stock_quantity": 160 + }, + "customer": { + "name": "Stephanie Duke", + "age": 79, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Burns, Berger and Hall", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "painting", + "category": "arm", + "price": 814.65, + "stock_quantity": 309 + }, + "customer": { + "name": "Matthew Harris", + "age": 51, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Smith Inc", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "director", + "category": "technology", + "price": 567.6, + "stock_quantity": 66 + }, + "customer": { + "name": "Billy Brennan", + "age": 69, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Johnson-Pena", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "true", + "category": "to", + "price": 474.38, + "stock_quantity": 99 + }, + "customer": { + "name": "Jeffrey Phillips", + "age": 70, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Barker, Acevedo and Rich", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "structure", + "category": "alone", + "price": 122.08, + "stock_quantity": 98 + }, + "customer": { + "name": "Deborah Perez", + "age": 32, + "country": "Chad" + } + }, + { + "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'", + "company": { + "name": "Mcgee, Jackson and Erickson", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "draw", + "category": "material", + "price": 357.73, + "stock_quantity": 106 + }, + "customer": { + "name": "Kristi Curtis", + "age": 20, + "country": "Tanzania" + } + }, + { + "natural_query": "Show me all products in the play category with a price over $403.19.", + "sql_query": "SELECT * FROM products WHERE category = 'play' AND price > 403.19", + "company": { + "name": "Adams-Larson", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "TV", + "category": "play", + "price": 403.19, + "stock_quantity": 478 + }, + "customer": { + "name": "Michael Ortiz", + "age": 79, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Bryant, Herrera and Castaneda", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "near", + "category": "everybody", + "price": 537.35, + "stock_quantity": 858 + }, + "customer": { + "name": "Melanie Ibarra", + "age": 51, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Owen-Moore", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "school", + "category": "production", + "price": 94.06, + "stock_quantity": 525 + }, + "customer": { + "name": "Donna Montgomery", + "age": 46, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Cruz PLC", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "together", + "category": "current", + "price": 684.54, + "stock_quantity": 264 + }, + "customer": { + "name": "Lori Moore", + "age": 26, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Martinez, Woodward and Miller", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "option", + "category": "magazine", + "price": 332.39, + "stock_quantity": 516 + }, + "customer": { + "name": "Amy Roth", + "age": 33, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Jones Inc", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "everybody", + "category": "light", + "price": 353.25, + "stock_quantity": 775 + }, + "customer": { + "name": "Kevin Barnes", + "age": 62, + "country": "Somalia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jimenez PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jimenez PLC", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "only", + "category": "writer", + "price": 70.0, + "stock_quantity": 884 + }, + "customer": { + "name": "Eric Fletcher", + "age": 38, + "country": "Mozambique" + } + }, + { + "natural_query": "What is the total quantity of all products for Chandler, Cook and Moore?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Chandler, Cook and Moore'", + "company": { + "name": "Chandler, Cook and Moore", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "move", + "category": "create", + "price": 337.04, + "stock_quantity": 200 + }, + "customer": { + "name": "Alexander Kelly", + "age": 73, + "country": "Myanmar" + } + }, + { + "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'", + "company": { + "name": "Mueller LLC", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "member", + "category": "local", + "price": 851.76, + "stock_quantity": 553 + }, + "customer": { + "name": "Luis Hodges", + "age": 55, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Parks-Moore", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "financial", + "category": "me", + "price": 253.33, + "stock_quantity": 722 + }, + "customer": { + "name": "Wendy Mullins", + "age": 72, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Thomas, Hinton and Brown", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "language", + "category": "base", + "price": 689.03, + "stock_quantity": 706 + }, + "customer": { + "name": "Amanda Williams", + "age": 72, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Williams and Sons", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "ten", + "category": "put", + "price": 70.86, + "stock_quantity": 730 + }, + "customer": { + "name": "Kaitlyn Chambers", + "age": 33, + "country": "Uganda" + } + }, + { + "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'", + "company": { + "name": "Taylor LLC", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "Congress", + "category": "thought", + "price": 625.79, + "stock_quantity": 634 + }, + "customer": { + "name": "Brenda Phelps", + "age": 19, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Cox LLC", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "arrive", + "category": "amount", + "price": 187.2, + "stock_quantity": 925 + }, + "customer": { + "name": "Mrs. Jessica Brown DVM", + "age": 50, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Powell, Obrien and Miller", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "matter", + "category": "get", + "price": 937.65, + "stock_quantity": 122 + }, + "customer": { + "name": "Jonathan Davis", + "age": 55, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Yu, Smith and Luna", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "tax", + "category": "event", + "price": 985.42, + "stock_quantity": 567 + }, + "customer": { + "name": "Michael Martin", + "age": 80, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Elliott, Harris and Pitts", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "watch", + "category": "writer", + "price": 752.4, + "stock_quantity": 395 + }, + "customer": { + "name": "Christopher Evans", + "age": 30, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Flores Ltd", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "evening", + "category": "single", + "price": 930.19, + "stock_quantity": 253 + }, + "customer": { + "name": "Jennifer Carlson", + "age": 50, + "country": "Bermuda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Graham, Wells and Fox'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Graham, Wells and Fox", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "once", + "category": "body", + "price": 982.14, + "stock_quantity": 2 + }, + "customer": { + "name": "Caroline Edwards", + "age": 41, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Clayton LLC", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "stay", + "category": "improve", + "price": 46.69, + "stock_quantity": 263 + }, + "customer": { + "name": "Tara Fisher", + "age": 34, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Brown Ltd", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "measure", + "category": "professional", + "price": 970.15, + "stock_quantity": 792 + }, + "customer": { + "name": "Marc Johnson", + "age": 50, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Duran and Sons", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "action", + "category": "anyone", + "price": 520.48, + "stock_quantity": 537 + }, + "customer": { + "name": "Deborah Harper", + "age": 69, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Padilla, Reed and Simon", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "medical", + "category": "choose", + "price": 15.74, + "stock_quantity": 976 + }, + "customer": { + "name": "Brenda Weber", + "age": 27, + "country": "Zimbabwe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gonzalez-Stevens'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gonzalez-Stevens", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "over", + "category": "program", + "price": 398.25, + "stock_quantity": 989 + }, + "customer": { + "name": "Brian Olsen", + "age": 53, + "country": "Latvia" + } + }, + { + "natural_query": "What is the total price of all products for Conner-Jackson?", + "sql_query": "SELECT TOTAL(price) as result FROM products WHERE company_name = 'Conner-Jackson'", + "company": { + "name": "Conner-Jackson", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "each", + "category": "instead", + "price": 645.51, + "stock_quantity": 676 + }, + "customer": { + "name": "Terri Arnold", + "age": 54, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Morgan-Patterson", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "bit", + "category": "writer", + "price": 499.5, + "stock_quantity": 383 + }, + "customer": { + "name": "Lawrence Webb", + "age": 24, + "country": "Egypt" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gutierrez LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gutierrez LLC", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "talk", + "category": "memory", + "price": 831.06, + "stock_quantity": 756 + }, + "customer": { + "name": "Jaclyn Green", + "age": 62, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Rodriguez-Roth", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "move", + "category": "be", + "price": 529.58, + "stock_quantity": 731 + }, + "customer": { + "name": "Andrew Hernandez", + "age": 52, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Carter and Sons", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "hard", + "category": "ten", + "price": 746.28, + "stock_quantity": 754 + }, + "customer": { + "name": "Scott Jackson", + "age": 39, + "country": "New Caledonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cabrera LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cabrera LLC", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "top", + "category": "take", + "price": 627.92, + "stock_quantity": 544 + }, + "customer": { + "name": "Amber Kim", + "age": 77, + "country": "Gabon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Adams-Garcia'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Adams-Garcia", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "seek", + "category": "own", + "price": 652.88, + "stock_quantity": 204 + }, + "customer": { + "name": "Patrick Boyd", + "age": 70, + "country": "Thailand" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Graham, Phillips and Allen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Graham, Phillips and Allen", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "education", + "category": "action", + "price": 213.68, + "stock_quantity": 863 + }, + "customer": { + "name": "Lisa Scott", + "age": 44, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Thomas-Mccullough", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "participant", + "category": "open", + "price": 663.07, + "stock_quantity": 473 + }, + "customer": { + "name": "Dr. Justin Chavez Jr.", + "age": 21, + "country": "Macao" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcguire Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcguire Ltd", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "certain", + "category": "act", + "price": 804.95, + "stock_quantity": 345 + }, + "customer": { + "name": "Richard Morton", + "age": 48, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Parsons, Osborne and Richards", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "thought", + "category": "cut", + "price": 20.0, + "stock_quantity": 269 + }, + "customer": { + "name": "Kristina King", + "age": 46, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Glenn, Mcclure and Nelson", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "audience", + "category": "off", + "price": 683.21, + "stock_quantity": 260 + }, + "customer": { + "name": "Jennifer Griffith", + "age": 29, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Krause PLC", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "follow", + "category": "several", + "price": 273.35, + "stock_quantity": 998 + }, + "customer": { + "name": "Daniel Mccullough", + "age": 63, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Weaver, Thomas and Saunders", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "space", + "category": "join", + "price": 796.4, + "stock_quantity": 702 + }, + "customer": { + "name": "Carl Lynch", + "age": 63, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Gomez-Ellis", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "size", + "category": "expect", + "price": 922.27, + "stock_quantity": 853 + }, + "customer": { + "name": "Stephanie Carter", + "age": 24, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Richardson, Diaz and Rogers", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "skin", + "category": "present", + "price": 375.92, + "stock_quantity": 289 + }, + "customer": { + "name": "Timothy Bond", + "age": 67, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "discuss", + "category": "such", + "price": 606.07, + "stock_quantity": 253 + }, + "customer": { + "name": "Christine Powell", + "age": 20, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Pittman Group", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "set", + "category": "issue", + "price": 217.19, + "stock_quantity": 271 + }, + "customer": { + "name": "David Mcintosh", + "age": 25, + "country": "Sierra Leone" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morgan-Berry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morgan-Berry", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "order", + "category": "range", + "price": 945.58, + "stock_quantity": 462 + }, + "customer": { + "name": "Kevin Wilkerson", + "age": 51, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Li Ltd", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "pass", + "category": "yeah", + "price": 216.78, + "stock_quantity": 762 + }, + "customer": { + "name": "Sarah Rivera", + "age": 26, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Taylor and Sons", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "goal", + "category": "crime", + "price": 852.39, + "stock_quantity": 350 + }, + "customer": { + "name": "Isabella Flynn", + "age": 71, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Thomas Inc", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "reduce", + "category": "idea", + "price": 912.12, + "stock_quantity": 721 + }, + "customer": { + "name": "Stephanie Wilson", + "age": 52, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Bush, Callahan and Hicks", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "speech", + "category": "group", + "price": 107.04, + "stock_quantity": 608 + }, + "customer": { + "name": "Kara Lin", + "age": 57, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Watson-Webb", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "job", + "category": "team", + "price": 269.91, + "stock_quantity": 208 + }, + "customer": { + "name": "James Bailey", + "age": 35, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Harrison, Franklin and Shaw", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "organization", + "category": "structure", + "price": 425.68, + "stock_quantity": 219 + }, + "customer": { + "name": "Terrence Wood", + "age": 72, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Bell, Smith and Brown", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "though", + "category": "goal", + "price": 18.2, + "stock_quantity": 210 + }, + "customer": { + "name": "Vanessa Duke", + "age": 26, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Herring LLC", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "assume", + "category": "Mr", + "price": 931.39, + "stock_quantity": 916 + }, + "customer": { + "name": "Larry Love", + "age": 34, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Kelley-Vance", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "subject", + "category": "bit", + "price": 397.64, + "stock_quantity": 53 + }, + "customer": { + "name": "Alexander Barnes", + "age": 30, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Becker and Turner", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "manage", + "category": "offer", + "price": 647.09, + "stock_quantity": 422 + }, + "customer": { + "name": "William Hamilton", + "age": 80, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Martin LLC", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "list", + "category": "show", + "price": 998.29, + "stock_quantity": 652 + }, + "customer": { + "name": "Jessica Myers", + "age": 38, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Thomas, Fields and Robinson", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "both", + "category": "director", + "price": 912.96, + "stock_quantity": 496 + }, + "customer": { + "name": "Stephen Bradley", + "age": 67, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Mcgee, Chaney and Stevens", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "plan", + "category": "morning", + "price": 829.85, + "stock_quantity": 169 + }, + "customer": { + "name": "Jennifer Myers", + "age": 63, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Martinez Group", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "later", + "category": "poor", + "price": 291.99, + "stock_quantity": 439 + }, + "customer": { + "name": "Mark Webb", + "age": 28, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Donaldson-Moore", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "able", + "category": "modern", + "price": 440.65, + "stock_quantity": 932 + }, + "customer": { + "name": "Monica Rojas", + "age": 29, + "country": "Netherlands Antilles" + } + }, + { + "natural_query": "How many orders were placed for Miller, Thompson and Aguirre between 2023-12-27 and 2024-09-06?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller, Thompson and Aguirre' AND order_date BETWEEN '2023-12-27' AND '2024-09-06'", + "company": { + "name": "Miller, Thompson and Aguirre", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "you", + "category": "soldier", + "price": 975.81, + "stock_quantity": 939 + }, + "customer": { + "name": "Matthew Wright", + "age": 72, + "country": "Guam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davidson, Vasquez and Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davidson, Vasquez and Jones", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "call", + "category": "road", + "price": 377.02, + "stock_quantity": 149 + }, + "customer": { + "name": "Kylie Owen", + "age": 69, + "country": "Zimbabwe" + } + }, + { + "natural_query": "List all products of Zuniga-Richardson ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Zuniga-Richardson' ORDER BY rating DESC", + "company": { + "name": "Zuniga-Richardson", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "people", + "category": "upon", + "price": 292.83, + "stock_quantity": 549 + }, + "customer": { + "name": "Andrea Williams", + "age": 48, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "Austin-Lane", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "decide", + "category": "none", + "price": 617.43, + "stock_quantity": 451 + }, + "customer": { + "name": "Emily Hall", + "age": 24, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Gonzalez-Wallace", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "however", + "category": "consider", + "price": 273.25, + "stock_quantity": 888 + }, + "customer": { + "name": "Jared Marshall", + "age": 58, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Barrett, Valdez and Johnson", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "he", + "category": "in", + "price": 457.29, + "stock_quantity": 501 + }, + "customer": { + "name": "James Tran", + "age": 49, + "country": "Swaziland" + } + }, + { + "natural_query": "How many orders were placed for Cox-Silva between 2023-10-27 and 2024-04-14?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cox-Silva' AND order_date BETWEEN '2023-10-27' AND '2024-04-14'", + "company": { + "name": "Cox-Silva", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "way", + "category": "raise", + "price": 175.03, + "stock_quantity": 849 + }, + "customer": { + "name": "Samuel Johnson", + "age": 60, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Lopez Group", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "brother", + "category": "almost", + "price": 770.03, + "stock_quantity": 910 + }, + "customer": { + "name": "Shelly Medina", + "age": 42, + "country": "Algeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Clark Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Clark Inc", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "age", + "category": "address", + "price": 477.73, + "stock_quantity": 266 + }, + "customer": { + "name": "Alison Moore", + "age": 74, + "country": "Solomon Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Townsend LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Townsend LLC", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "of", + "category": "manager", + "price": 405.17, + "stock_quantity": 4 + }, + "customer": { + "name": "Ashley Bailey", + "age": 24, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Keller, Bentley and Martinez", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "magazine", + "category": "area", + "price": 571.14, + "stock_quantity": 423 + }, + "customer": { + "name": "Sue Frank DDS", + "age": 40, + "country": "Argentina" + } + }, + { + "natural_query": "List all products of Steele-Howard ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Steele-Howard' ORDER BY stock_quantity DESC", + "company": { + "name": "Steele-Howard", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "hundred", + "category": "travel", + "price": 753.2, + "stock_quantity": 137 + }, + "customer": { + "name": "Kim Duncan", + "age": 58, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Merritt PLC", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "real", + "category": "student", + "price": 165.17, + "stock_quantity": 853 + }, + "customer": { + "name": "Dr. Mary Weeks", + "age": 18, + "country": "Somalia" + } + }, + { + "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'", + "company": { + "name": "Martinez Group", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "half", + "category": "heavy", + "price": 742.16, + "stock_quantity": 815 + }, + "customer": { + "name": "Robert Lambert", + "age": 41, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Hogan Ltd", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "operation", + "category": "must", + "price": 84.96, + "stock_quantity": 682 + }, + "customer": { + "name": "Nicole Hensley", + "age": 31, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Steele-Kelly", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "culture", + "category": "serious", + "price": 910.67, + "stock_quantity": 579 + }, + "customer": { + "name": "Alexis Marshall", + "age": 18, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Johnston, Holloway and Joyce", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "range", + "category": "model", + "price": 253.0, + "stock_quantity": 98 + }, + "customer": { + "name": "Trevor Scott", + "age": 44, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Lewis-Ramsey", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "none", + "category": "professor", + "price": 307.15, + "stock_quantity": 217 + }, + "customer": { + "name": "James Scott", + "age": 46, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Jones Group", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "activity", + "category": "find", + "price": 818.03, + "stock_quantity": 610 + }, + "customer": { + "name": "Tina Medina", + "age": 32, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Smith, Scott and Baker", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "political", + "category": "man", + "price": 979.13, + "stock_quantity": 48 + }, + "customer": { + "name": "Brett Faulkner", + "age": 54, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Ramos-Glover", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "foot", + "category": "chair", + "price": 131.27, + "stock_quantity": 570 + }, + "customer": { + "name": "Javier Patton", + "age": 51, + "country": "Lebanon" + } + }, + { + "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'", + "company": { + "name": "Ferguson-Jordan", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "there", + "category": "both", + "price": 939.76, + "stock_quantity": 197 + }, + "customer": { + "name": "Dale Poole", + "age": 22, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Johnson PLC", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "necessary", + "category": "fly", + "price": 472.11, + "stock_quantity": 151 + }, + "customer": { + "name": "Jasmine Avila", + "age": 27, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "West-Castaneda", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "you", + "category": "wonder", + "price": 766.12, + "stock_quantity": 528 + }, + "customer": { + "name": "Derrick Haynes", + "age": 43, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Saunders-Davidson", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "special", + "category": "article", + "price": 699.12, + "stock_quantity": 923 + }, + "customer": { + "name": "Lucas Hoover", + "age": 20, + "country": "Saint Martin" + } + }, + { + "natural_query": "What is the total profit for each category in Decker Ltd?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Decker Ltd' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Decker Ltd", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "music", + "category": "week", + "price": 764.79, + "stock_quantity": 505 + }, + "customer": { + "name": "Morgan Snyder", + "age": 79, + "country": "Peru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Watson, King and Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Watson, King and Moore", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "Democrat", + "category": "bar", + "price": 462.21, + "stock_quantity": 86 + }, + "customer": { + "name": "Sara Davis", + "age": 36, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Steele Group", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "build", + "category": "street", + "price": 889.41, + "stock_quantity": 796 + }, + "customer": { + "name": "Tony Pruitt", + "age": 51, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Gross PLC", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "practice", + "category": "and", + "price": 41.64, + "stock_quantity": 801 + }, + "customer": { + "name": "Kimberly Callahan", + "age": 31, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Wolf-Oneal", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "yet", + "category": "go", + "price": 451.23, + "stock_quantity": 430 + }, + "customer": { + "name": "Christopher Cox", + "age": 56, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Webster, Lester and Henry", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "forward", + "category": "rate", + "price": 817.18, + "stock_quantity": 932 + }, + "customer": { + "name": "Zachary Forbes", + "age": 58, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Villarreal-Kelley", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "feeling", + "category": "much", + "price": 708.84, + "stock_quantity": 291 + }, + "customer": { + "name": "Leslie Delacruz", + "age": 36, + "country": "French Polynesia" + } + }, + { + "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'", + "company": { + "name": "Moss, Long and Hayes", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "country", + "category": "natural", + "price": 190.35, + "stock_quantity": 475 + }, + "customer": { + "name": "Thomas Doyle", + "age": 64, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Robinson and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Robinson and Sons", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "wrong", + "category": "by", + "price": 911.3, + "stock_quantity": 415 + }, + "customer": { + "name": "Francisco Decker", + "age": 28, + "country": "Bahrain" + } + }, + { + "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'", + "company": { + "name": "Torres-Lyons", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "adult", + "category": "small", + "price": 67.64, + "stock_quantity": 828 + }, + "customer": { + "name": "Danielle Hamilton", + "age": 31, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Jones Inc", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "guy", + "category": "human", + "price": 903.88, + "stock_quantity": 966 + }, + "customer": { + "name": "Kimberly Doyle", + "age": 58, + "country": "Niger" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Campbell, Santana and Francis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Campbell, Santana and Francis", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "whether", + "category": "window", + "price": 579.46, + "stock_quantity": 329 + }, + "customer": { + "name": "Lindsey Sharp", + "age": 68, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Wolf", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "avoid", + "category": "understand", + "price": 717.98, + "stock_quantity": 887 + }, + "customer": { + "name": "Ernest Duncan", + "age": 57, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Stevens, Wagner and Moore", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "want", + "category": "watch", + "price": 21.86, + "stock_quantity": 428 + }, + "customer": { + "name": "Katie Foster", + "age": 57, + "country": "Canada" + } + }, + { + "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'", + "company": { + "name": "George-Bass", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "kitchen", + "category": "born", + "price": 895.88, + "stock_quantity": 528 + }, + "customer": { + "name": "Joshua Hanson", + "age": 62, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Jackson PLC", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "course", + "category": "rock", + "price": 866.11, + "stock_quantity": 261 + }, + "customer": { + "name": "Hayden Morales", + "age": 75, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Parrish-Davies", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "believe", + "category": "none", + "price": 605.03, + "stock_quantity": 711 + }, + "customer": { + "name": "Joshua Mckinney", + "age": 63, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Martinez, Sanchez and Mendez", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "information", + "category": "difficult", + "price": 213.73, + "stock_quantity": 736 + }, + "customer": { + "name": "Jenny Padilla", + "age": 26, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Macias, Miller and Cunningham", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "particular", + "category": "politics", + "price": 294.68, + "stock_quantity": 988 + }, + "customer": { + "name": "Linda Jones", + "age": 80, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Cooper, Smith and Coleman", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "perform", + "category": "ahead", + "price": 364.85, + "stock_quantity": 328 + }, + "customer": { + "name": "Zachary Mckinney", + "age": 21, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Jones-Lowe", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "front", + "category": "them", + "price": 914.37, + "stock_quantity": 1000 + }, + "customer": { + "name": "Michelle Blair", + "age": 76, + "country": "Timor-Leste" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Coleman Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Coleman Group", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "suggest", + "category": "pressure", + "price": 68.52, + "stock_quantity": 165 + }, + "customer": { + "name": "Lisa Murray", + "age": 58, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Williams LLC", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "general", + "category": "brother", + "price": 614.65, + "stock_quantity": 126 + }, + "customer": { + "name": "Thomas Collins", + "age": 59, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Shea Ltd", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "as", + "category": "middle", + "price": 211.48, + "stock_quantity": 218 + }, + "customer": { + "name": "Shane Hamilton", + "age": 26, + "country": "Namibia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reeves and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reeves and Sons", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "attention", + "category": "scene", + "price": 539.37, + "stock_quantity": 52 + }, + "customer": { + "name": "Rebecca Morales", + "age": 80, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moore-King'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moore-King", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "large", + "category": "necessary", + "price": 584.84, + "stock_quantity": 106 + }, + "customer": { + "name": "Bridget Carter", + "age": 78, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Allen PLC", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "figure", + "category": "choice", + "price": 373.21, + "stock_quantity": 797 + }, + "customer": { + "name": "Michael Cherry", + "age": 29, + "country": "British Virgin Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor-Ramirez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor-Ramirez", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "against", + "category": "deep", + "price": 832.65, + "stock_quantity": 611 + }, + "customer": { + "name": "Joseph Cervantes", + "age": 62, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Lee, Walker and Perry", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "produce", + "category": "same", + "price": 205.9, + "stock_quantity": 779 + }, + "customer": { + "name": "Paul Oliver", + "age": 26, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Smith-Nichols", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "feeling", + "category": "management", + "price": 699.4, + "stock_quantity": 797 + }, + "customer": { + "name": "Diana Hammond", + "age": 18, + "country": "Uzbekistan" + } + }, + { + "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'", + "company": { + "name": "Wilson-Mcguire", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "interest", + "category": "keep", + "price": 529.61, + "stock_quantity": 759 + }, + "customer": { + "name": "Justin Nichols", + "age": 43, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Bass Inc", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "successful", + "category": "must", + "price": 856.31, + "stock_quantity": 979 + }, + "customer": { + "name": "Terry Rivers", + "age": 27, + "country": "Samoa" + } + }, + { + "natural_query": "What are the top 8 products by sales for Serrano and Sons this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Serrano and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 8", + "company": { + "name": "Serrano and Sons", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "whom", + "category": "turn", + "price": 828.55, + "stock_quantity": 120 + }, + "customer": { + "name": "George Smith", + "age": 44, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Ingram-Peters", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "well", + "category": "require", + "price": 574.83, + "stock_quantity": 748 + }, + "customer": { + "name": "Carrie Walker", + "age": 30, + "country": "Guyana" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Bender Ltd for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bender Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bender Ltd", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "whatever", + "category": "each", + "price": 356.19, + "stock_quantity": 932 + }, + "customer": { + "name": "Charles Cox", + "age": 69, + "country": "Seychelles" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Bennett-Garner for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bennett-Garner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bennett-Garner", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "company", + "category": "population", + "price": 899.81, + "stock_quantity": 338 + }, + "customer": { + "name": "Andrew Alvarado", + "age": 73, + "country": "Moldova" + } + }, + { + "natural_query": "Show me all products in the develop category with a price over $23.52.", + "sql_query": "SELECT * FROM products WHERE category = 'develop' AND price > 23.52", + "company": { + "name": "Shea LLC", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "professional", + "category": "develop", + "price": 23.52, + "stock_quantity": 699 + }, + "customer": { + "name": "Michelle Burton", + "age": 68, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Carr, Chavez and Colon", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "let", + "category": "start", + "price": 955.33, + "stock_quantity": 890 + }, + "customer": { + "name": "Jorge Freeman", + "age": 22, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Long PLC", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "sort", + "category": "world", + "price": 859.97, + "stock_quantity": 296 + }, + "customer": { + "name": "Kimberly Scott", + "age": 75, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Johnson, Henry and Blackwell", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "seek", + "category": "those", + "price": 660.17, + "stock_quantity": 134 + }, + "customer": { + "name": "Justin Mcdonald", + "age": 28, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Richmond, Williams and Jones", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "fact", + "category": "whom", + "price": 981.79, + "stock_quantity": 649 + }, + "customer": { + "name": "Jesse King", + "age": 69, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Johnson LLC", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "safe", + "category": "media", + "price": 389.6, + "stock_quantity": 654 + }, + "customer": { + "name": "Robert Thompson", + "age": 69, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Hansen and Sons", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "where", + "category": "watch", + "price": 608.16, + "stock_quantity": 638 + }, + "customer": { + "name": "Tracy Stevens", + "age": 47, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Barton, Ibarra and Williams", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "more", + "category": "until", + "price": 354.46, + "stock_quantity": 47 + }, + "customer": { + "name": "Joshua Myers", + "age": 62, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Pittman, Gibbs and Michael", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "identify", + "category": "box", + "price": 990.31, + "stock_quantity": 891 + }, + "customer": { + "name": "Dana Barnes", + "age": 51, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Rodriguez-Johnson", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "deal", + "category": "often", + "price": 645.97, + "stock_quantity": 45 + }, + "customer": { + "name": "Jacob Carter", + "age": 76, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Robinson Ltd", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "support", + "category": "cut", + "price": 624.02, + "stock_quantity": 161 + }, + "customer": { + "name": "Lisa Hill", + "age": 23, + "country": "Martinique" + } + }, + { + "natural_query": "List all products of Barnett Group ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Barnett Group' ORDER BY rating ASC", + "company": { + "name": "Barnett Group", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "actually", + "category": "paper", + "price": 167.62, + "stock_quantity": 695 + }, + "customer": { + "name": "Paul Moreno", + "age": 38, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "White-Williams", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "quality", + "category": "prepare", + "price": 400.63, + "stock_quantity": 165 + }, + "customer": { + "name": "Dawn Scott", + "age": 70, + "country": "Poland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Edwards-Waller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Edwards-Waller", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "offer", + "category": "whole", + "price": 278.25, + "stock_quantity": 941 + }, + "customer": { + "name": "Philip Harrell", + "age": 22, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Callahan-Martinez", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "also", + "category": "never", + "price": 589.04, + "stock_quantity": 261 + }, + "customer": { + "name": "William Lamb", + "age": 37, + "country": "Poland" + } + }, + { + "natural_query": "Show me all products in the drive category with a price over $525.44.", + "sql_query": "SELECT * FROM products WHERE category = 'drive' AND price > 525.44", + "company": { + "name": "Scott, Richard and Lee", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "act", + "category": "drive", + "price": 525.44, + "stock_quantity": 280 + }, + "customer": { + "name": "Ryan Palmer", + "age": 33, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Carter Inc", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "cost", + "category": "gun", + "price": 171.06, + "stock_quantity": 110 + }, + "customer": { + "name": "Mary Lopez DDS", + "age": 62, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Harris-Morrow", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "support", + "category": "true", + "price": 91.77, + "stock_quantity": 378 + }, + "customer": { + "name": "Joshua Morris", + "age": 19, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Taylor-Holt", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "firm", + "category": "would", + "price": 659.35, + "stock_quantity": 139 + }, + "customer": { + "name": "Deanna Schmidt", + "age": 31, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Young-Mills", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "book", + "category": "yard", + "price": 159.8, + "stock_quantity": 553 + }, + "customer": { + "name": "Gabriel Campbell", + "age": 78, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Mcdonald Ltd", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "similar", + "category": "believe", + "price": 866.66, + "stock_quantity": 63 + }, + "customer": { + "name": "Dr. Jason Bird MD", + "age": 79, + "country": "China" + } + }, + { + "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'", + "company": { + "name": "York Group", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "win", + "category": "subject", + "price": 830.29, + "stock_quantity": 278 + }, + "customer": { + "name": "Johnny Olson", + "age": 54, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Brown Inc", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "in", + "category": "every", + "price": 875.02, + "stock_quantity": 510 + }, + "customer": { + "name": "Charlotte Martinez", + "age": 78, + "country": "Turks and Caicos Islands" + } + }, + { + "natural_query": "What is the total rating of all products for Hill, Nicholson and Wells?", + "sql_query": "SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Hill, Nicholson and Wells'", + "company": { + "name": "Hill, Nicholson and Wells", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "within", + "category": "recognize", + "price": 913.37, + "stock_quantity": 359 + }, + "customer": { + "name": "John Patrick", + "age": 19, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Gonzalez Inc", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "improve", + "category": "manager", + "price": 895.95, + "stock_quantity": 830 + }, + "customer": { + "name": "Stephanie Powell", + "age": 69, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Dunn-Winters", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "free", + "category": "hand", + "price": 500.72, + "stock_quantity": 651 + }, + "customer": { + "name": "Kristen Ward", + "age": 34, + "country": "Netherlands" + } + }, + { + "natural_query": "List all products of Brown Inc ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Brown Inc' ORDER BY stock_quantity DESC", + "company": { + "name": "Brown Inc", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "effort", + "category": "suddenly", + "price": 252.91, + "stock_quantity": 706 + }, + "customer": { + "name": "Robin Perez", + "age": 40, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Pierce-Rogers", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "soldier", + "category": "eight", + "price": 775.62, + "stock_quantity": 823 + }, + "customer": { + "name": "Matthew Grant", + "age": 71, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Gordon LLC", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "easy", + "category": "blue", + "price": 915.7, + "stock_quantity": 441 + }, + "customer": { + "name": "Kevin Miller", + "age": 25, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Pham Inc", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "bill", + "category": "past", + "price": 706.69, + "stock_quantity": 332 + }, + "customer": { + "name": "Christina Smith", + "age": 33, + "country": "Ethiopia" + } + }, + { + "natural_query": "List all products of Gonzalez-Phillips ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Gonzalez-Phillips' ORDER BY rating DESC", + "company": { + "name": "Gonzalez-Phillips", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "analysis", + "category": "yes", + "price": 973.14, + "stock_quantity": 467 + }, + "customer": { + "name": "Catherine Beltran", + "age": 49, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Shaffer Ltd", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "television", + "category": "seat", + "price": 325.95, + "stock_quantity": 755 + }, + "customer": { + "name": "Jordan Roberts", + "age": 56, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Henderson, May and Hunter", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "car", + "category": "sometimes", + "price": 336.43, + "stock_quantity": 396 + }, + "customer": { + "name": "Jeffery Friedman Jr.", + "age": 37, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Jackson-Yoder", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "right", + "category": "song", + "price": 275.44, + "stock_quantity": 246 + }, + "customer": { + "name": "Wendy Wilson", + "age": 44, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Chapman, Parker and Allen", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "design", + "category": "news", + "price": 426.64, + "stock_quantity": 571 + }, + "customer": { + "name": "Andrea Charles", + "age": 78, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Meyer Group", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "tree", + "category": "force", + "price": 952.36, + "stock_quantity": 59 + }, + "customer": { + "name": "Kim Clarke", + "age": 25, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Gill Group", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "drop", + "category": "hard", + "price": 42.19, + "stock_quantity": 221 + }, + "customer": { + "name": "Brian Vazquez", + "age": 71, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Lee-Chung", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "five", + "category": "open", + "price": 667.17, + "stock_quantity": 740 + }, + "customer": { + "name": "Richard Acevedo", + "age": 72, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Gibson, Carroll and Glenn", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "expert", + "category": "join", + "price": 378.05, + "stock_quantity": 697 + }, + "customer": { + "name": "Patrick Scott", + "age": 35, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Johnston LLC", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "likely", + "category": "simply", + "price": 591.5, + "stock_quantity": 375 + }, + "customer": { + "name": "William Holmes", + "age": 66, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Morgan-Goodman", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "choice", + "category": "different", + "price": 375.09, + "stock_quantity": 778 + }, + "customer": { + "name": "Joseph Benson", + "age": 75, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Melendez-Williams", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "second", + "category": "try", + "price": 20.07, + "stock_quantity": 112 + }, + "customer": { + "name": "Jay Odom", + "age": 20, + "country": "Kenya" + } + }, + { + "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'", + "company": { + "name": "Kelley, Kline and Morales", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "such", + "category": "city", + "price": 955.32, + "stock_quantity": 74 + }, + "customer": { + "name": "Kayla Mills", + "age": 46, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Bryan and Gray", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "guy", + "category": "side", + "price": 851.49, + "stock_quantity": 200 + }, + "customer": { + "name": "Brian Raymond", + "age": 61, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Hayes, Johnston and Harrington", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "after", + "category": "suffer", + "price": 537.38, + "stock_quantity": 975 + }, + "customer": { + "name": "Samantha Warner", + "age": 68, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Benjamin LLC", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "run", + "category": "without", + "price": 810.18, + "stock_quantity": 953 + }, + "customer": { + "name": "John Phillips", + "age": 77, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Bright PLC", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "radio", + "category": "truth", + "price": 52.23, + "stock_quantity": 378 + }, + "customer": { + "name": "Lauren Smith", + "age": 53, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Soto-Wilson", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "war", + "category": "property", + "price": 429.34, + "stock_quantity": 707 + }, + "customer": { + "name": "Troy Williams", + "age": 78, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Hicks-Collins", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "just", + "category": "one", + "price": 753.44, + "stock_quantity": 664 + }, + "customer": { + "name": "Dawn Townsend", + "age": 59, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Abbott-Cuevas", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "election", + "category": "behavior", + "price": 249.86, + "stock_quantity": 976 + }, + "customer": { + "name": "Jennifer Rivera", + "age": 68, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Melton Group", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "share", + "category": "set", + "price": 712.71, + "stock_quantity": 741 + }, + "customer": { + "name": "Dean Davenport", + "age": 48, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "West PLC", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "reveal", + "category": "adult", + "price": 506.73, + "stock_quantity": 621 + }, + "customer": { + "name": "Joseph Russell", + "age": 76, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Guerrero and Sons", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "this", + "category": "station", + "price": 848.84, + "stock_quantity": 572 + }, + "customer": { + "name": "Natalie Russell", + "age": 68, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Hunt-Duffy", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "read", + "category": "whom", + "price": 381.32, + "stock_quantity": 516 + }, + "customer": { + "name": "Kevin Moore", + "age": 62, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Goodwin-Decker", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "whether", + "category": "garden", + "price": 813.51, + "stock_quantity": 539 + }, + "customer": { + "name": "Monica Nielsen", + "age": 52, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Campbell-Thomas", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "usually", + "category": "mention", + "price": 143.6, + "stock_quantity": 755 + }, + "customer": { + "name": "James Blake", + "age": 44, + "country": "Lesotho" + } + }, + { + "natural_query": "What is the maximum price of all products for Allen, Weaver and Harris?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Allen, Weaver and Harris'", + "company": { + "name": "Allen, Weaver and Harris", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "who", + "category": "trade", + "price": 839.34, + "stock_quantity": 691 + }, + "customer": { + "name": "Steven Smith", + "age": 49, + "country": "Suriname" + } + }, + { + "natural_query": "List all customers and their total order value for Dickson Group.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Dickson Group' GROUP BY c.customer_id", + "company": { + "name": "Dickson Group", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "talk", + "category": "surface", + "price": 790.81, + "stock_quantity": 374 + }, + "customer": { + "name": "Ashley Richards", + "age": 66, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "May, Gilmore and Murray", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "hit", + "category": "me", + "price": 268.14, + "stock_quantity": 196 + }, + "customer": { + "name": "Jonathan Ray", + "age": 76, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Griffin-Carter", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "blue", + "category": "expert", + "price": 720.26, + "stock_quantity": 648 + }, + "customer": { + "name": "Vanessa Fox", + "age": 41, + "country": "Christmas Island" + } + }, + { + "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'", + "company": { + "name": "Gomez LLC", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "for", + "category": "space", + "price": 127.94, + "stock_quantity": 699 + }, + "customer": { + "name": "Dominique Scott", + "age": 23, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Guerrero, Sanders and Harrell", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "describe", + "category": "Congress", + "price": 951.74, + "stock_quantity": 39 + }, + "customer": { + "name": "Kimberly Lyons", + "age": 71, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Allen, Chen and Byrd", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "board", + "category": "the", + "price": 654.66, + "stock_quantity": 851 + }, + "customer": { + "name": "Elizabeth Garrett", + "age": 45, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Russell, Martinez and Miller", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "significant", + "category": "pay", + "price": 433.28, + "stock_quantity": 831 + }, + "customer": { + "name": "Michael Williams", + "age": 70, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Flores, Mason and Carpenter", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "seem", + "category": "send", + "price": 290.8, + "stock_quantity": 582 + }, + "customer": { + "name": "Aimee Bradshaw", + "age": 20, + "country": "Ethiopia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Valdez-King'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Valdez-King", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "local", + "category": "computer", + "price": 915.92, + "stock_quantity": 757 + }, + "customer": { + "name": "Jennifer Tate", + "age": 61, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Parsons Inc", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "camera", + "category": "onto", + "price": 259.05, + "stock_quantity": 825 + }, + "customer": { + "name": "Ana Villanueva", + "age": 21, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Garrett-Barber", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "experience", + "category": "seem", + "price": 315.46, + "stock_quantity": 726 + }, + "customer": { + "name": "Nicholas Williams", + "age": 80, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Bartlett PLC", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "their", + "category": "his", + "price": 83.03, + "stock_quantity": 481 + }, + "customer": { + "name": "Jeffrey Lambert", + "age": 78, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Guzman-Wood", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "until", + "category": "natural", + "price": 766.37, + "stock_quantity": 71 + }, + "customer": { + "name": "Karen Gardner DDS", + "age": 32, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Mendez, Meadows and Tran", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "career", + "category": "beat", + "price": 57.92, + "stock_quantity": 476 + }, + "customer": { + "name": "Sarah Garner", + "age": 61, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Donovan, Jackson and Kelly", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "cup", + "category": "use", + "price": 591.42, + "stock_quantity": 602 + }, + "customer": { + "name": "Keith Hanson", + "age": 60, + "country": "Belarus" + } + }, + { + "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'", + "company": { + "name": "Erickson-Robinson", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "eight", + "category": "create", + "price": 212.37, + "stock_quantity": 532 + }, + "customer": { + "name": "Robert Crawford", + "age": 23, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Huang Inc", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "glass", + "category": "whatever", + "price": 838.95, + "stock_quantity": 351 + }, + "customer": { + "name": "Sydney Peterson", + "age": 63, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Walls-Rodriguez", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "order", + "category": "face", + "price": 621.59, + "stock_quantity": 403 + }, + "customer": { + "name": "Adam Peterson", + "age": 23, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Davis-Kerr", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "later", + "category": "scene", + "price": 57.58, + "stock_quantity": 685 + }, + "customer": { + "name": "Ashley Johnson", + "age": 23, + "country": "Afghanistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green Ltd", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "wife", + "category": "involve", + "price": 990.23, + "stock_quantity": 966 + }, + "customer": { + "name": "Tyler Romero", + "age": 56, + "country": "French Guiana" + } + }, + { + "natural_query": "Show me all products in the despite category with a price over $954.62.", + "sql_query": "SELECT * FROM products WHERE category = 'despite' AND price > 954.62", + "company": { + "name": "Clark, Gomez and Duran", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "water", + "category": "despite", + "price": 954.62, + "stock_quantity": 172 + }, + "customer": { + "name": "Caitlin Bryan", + "age": 43, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Mclaughlin and Sons", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "president", + "category": "agreement", + "price": 810.21, + "stock_quantity": 6 + }, + "customer": { + "name": "Jo Gomez", + "age": 63, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Odom, Rogers and Sparks", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "political", + "category": "prevent", + "price": 695.4, + "stock_quantity": 745 + }, + "customer": { + "name": "Brandi Copeland", + "age": 58, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Miller, Wilkerson and Davis", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "foot", + "category": "task", + "price": 660.26, + "stock_quantity": 314 + }, + "customer": { + "name": "William Harper", + "age": 43, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Reeves-Rosario", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "be", + "category": "serious", + "price": 382.44, + "stock_quantity": 20 + }, + "customer": { + "name": "Larry Barton", + "age": 54, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Diaz Ltd", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "green", + "category": "manager", + "price": 59.27, + "stock_quantity": 57 + }, + "customer": { + "name": "Michael Miller", + "age": 20, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Smith-Moore", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "read", + "category": "remember", + "price": 797.34, + "stock_quantity": 965 + }, + "customer": { + "name": "Ralph Gardner", + "age": 72, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Carter Group", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "himself", + "category": "impact", + "price": 39.9, + "stock_quantity": 23 + }, + "customer": { + "name": "Robert Kelley", + "age": 64, + "country": "Portugal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson Ltd", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "occur", + "category": "physical", + "price": 204.93, + "stock_quantity": 802 + }, + "customer": { + "name": "Sara Bradley", + "age": 38, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Washington Inc", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "attorney", + "category": "end", + "price": 448.64, + "stock_quantity": 824 + }, + "customer": { + "name": "Sheri Wang", + "age": 54, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Rodgers-Flynn", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "visit", + "category": "movement", + "price": 876.38, + "stock_quantity": 481 + }, + "customer": { + "name": "Lawrence Richardson", + "age": 38, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Clark, Bradford and Perez", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "write", + "category": "environment", + "price": 877.12, + "stock_quantity": 862 + }, + "customer": { + "name": "David Hughes", + "age": 63, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Baker, Murphy and Villarreal", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "coach", + "category": "population", + "price": 42.59, + "stock_quantity": 940 + }, + "customer": { + "name": "Cindy Butler", + "age": 29, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Brewer Group", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "parent", + "category": "similar", + "price": 781.34, + "stock_quantity": 250 + }, + "customer": { + "name": "Troy Mcbride", + "age": 24, + "country": "Reunion" + } + }, + { + "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'", + "company": { + "name": "Snyder PLC", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "argue", + "category": "table", + "price": 524.15, + "stock_quantity": 667 + }, + "customer": { + "name": "Mark Maldonado", + "age": 73, + "country": "Hong Kong" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Tate-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Tate-Johnson", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "how", + "category": "system", + "price": 219.72, + "stock_quantity": 711 + }, + "customer": { + "name": "William Williams", + "age": 24, + "country": "Georgia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reed LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reed LLC", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "score", + "category": "blood", + "price": 900.41, + "stock_quantity": 224 + }, + "customer": { + "name": "Joseph Floyd", + "age": 80, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Foley, Mason and Hawkins", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "environmental", + "category": "yard", + "price": 889.81, + "stock_quantity": 882 + }, + "customer": { + "name": "Michael Dunlap", + "age": 55, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Hines Inc", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "close", + "category": "note", + "price": 682.97, + "stock_quantity": 812 + }, + "customer": { + "name": "Amanda Stevenson", + "age": 49, + "country": "Botswana" + } + }, + { + "natural_query": "What is the total quantity of all products for Allen, Smith and Perez?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Allen, Smith and Perez'", + "company": { + "name": "Allen, Smith and Perez", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "nation", + "category": "science", + "price": 726.78, + "stock_quantity": 778 + }, + "customer": { + "name": "Donald Richardson", + "age": 61, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Hicks, Harris and Bonilla", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "site", + "category": "produce", + "price": 853.36, + "stock_quantity": 90 + }, + "customer": { + "name": "Heather Wang", + "age": 61, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Wise Ltd", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "huge", + "category": "can", + "price": 976.85, + "stock_quantity": 154 + }, + "customer": { + "name": "Jennifer Smith", + "age": 48, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Martinez, Brown and Ramsey", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "treatment", + "category": "field", + "price": 927.33, + "stock_quantity": 769 + }, + "customer": { + "name": "Charles King", + "age": 72, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Carter-Golden", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "hear", + "category": "message", + "price": 353.05, + "stock_quantity": 789 + }, + "customer": { + "name": "Lisa Dawson", + "age": 26, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Orr, Cobb and White", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "owner", + "category": "wrong", + "price": 994.93, + "stock_quantity": 643 + }, + "customer": { + "name": "Jessica Drake", + "age": 56, + "country": "Mauritius" + } + }, + { + "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'", + "company": { + "name": "Salinas LLC", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "glass", + "category": "head", + "price": 588.75, + "stock_quantity": 379 + }, + "customer": { + "name": "Steven Morrison MD", + "age": 37, + "country": "Mexico" + } + }, + { + "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'", + "company": { + "name": "Cain Group", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "buy", + "category": "she", + "price": 374.16, + "stock_quantity": 274 + }, + "customer": { + "name": "Julie Foley", + "age": 56, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Fernandez, Henson and Buchanan", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "office", + "category": "modern", + "price": 512.64, + "stock_quantity": 44 + }, + "customer": { + "name": "Eric Burgess", + "age": 31, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Lee, Zamora and Stanton", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "eight", + "category": "walk", + "price": 518.93, + "stock_quantity": 329 + }, + "customer": { + "name": "Nichole Baker", + "age": 27, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Rodriguez LLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "shoulder", + "category": "think", + "price": 912.47, + "stock_quantity": 350 + }, + "customer": { + "name": "Patrick Booth", + "age": 19, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Christensen, Maldonado and Nicholson", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "sometimes", + "category": "usually", + "price": 660.36, + "stock_quantity": 182 + }, + "customer": { + "name": "Harry Miller", + "age": 62, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Snyder LLC", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "ever", + "category": "various", + "price": 627.46, + "stock_quantity": 736 + }, + "customer": { + "name": "Amber Mann", + "age": 59, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Vang-Davenport", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "base", + "category": "determine", + "price": 958.87, + "stock_quantity": 132 + }, + "customer": { + "name": "Shane Phillips", + "age": 70, + "country": "Saint Barthelemy" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Barnett, Hall and Little for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barnett, Hall and Little'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barnett, Hall and Little", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "fast", + "category": "large", + "price": 162.79, + "stock_quantity": 998 + }, + "customer": { + "name": "Kimberly Williams", + "age": 74, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "King, Stewart and Cohen", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "player", + "category": "from", + "price": 603.57, + "stock_quantity": 25 + }, + "customer": { + "name": "Tina Orozco", + "age": 47, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "King PLC", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "soon", + "category": "teacher", + "price": 874.9, + "stock_quantity": 272 + }, + "customer": { + "name": "Annette Boyd", + "age": 53, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Maxwell-Paul", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "close", + "category": "nature", + "price": 720.75, + "stock_quantity": 990 + }, + "customer": { + "name": "Kevin Johnson", + "age": 32, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Hawkins, Todd and Russo", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "hospital", + "category": "on", + "price": 301.01, + "stock_quantity": 393 + }, + "customer": { + "name": "Matthew Ferguson MD", + "age": 21, + "country": "Singapore" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Tate, Chandler and Walter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Tate, Chandler and Walter", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "civil", + "category": "center", + "price": 824.51, + "stock_quantity": 601 + }, + "customer": { + "name": "Jennifer Howard", + "age": 59, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Roth LLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "it", + "category": "senior", + "price": 810.48, + "stock_quantity": 223 + }, + "customer": { + "name": "Tara Jones", + "age": 77, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Hunter, Wright and Stone", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "new", + "category": "country", + "price": 741.27, + "stock_quantity": 604 + }, + "customer": { + "name": "William Gonzales", + "age": 31, + "country": "Ecuador" + } + }, + { + "natural_query": "Show me all products in the past category with a price over $832.44.", + "sql_query": "SELECT * FROM products WHERE category = 'past' AND price > 832.44", + "company": { + "name": "Allen-Snyder", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "church", + "category": "past", + "price": 832.44, + "stock_quantity": 530 + }, + "customer": { + "name": "Greg Anderson", + "age": 42, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Morris, Griffin and Moss", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "serve", + "category": "individual", + "price": 276.62, + "stock_quantity": 992 + }, + "customer": { + "name": "Peggy Cohen", + "age": 80, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Marshall-Gonzalez", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "here", + "category": "policy", + "price": 732.01, + "stock_quantity": 325 + }, + "customer": { + "name": "Jennifer Lindsey", + "age": 43, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "imagine", + "category": "environmental", + "price": 626.98, + "stock_quantity": 381 + }, + "customer": { + "name": "William Hansen", + "age": 45, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Stevenson-Parker", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "anyone", + "category": "compare", + "price": 89.65, + "stock_quantity": 880 + }, + "customer": { + "name": "Dr. Amanda Rowland MD", + "age": 29, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Lester-Armstrong", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "trial", + "category": "man", + "price": 236.01, + "stock_quantity": 637 + }, + "customer": { + "name": "Gabrielle Gates", + "age": 49, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Mcbride-Rhodes", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "success", + "category": "firm", + "price": 893.16, + "stock_quantity": 499 + }, + "customer": { + "name": "Jennifer Wilson MD", + "age": 58, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Flores, Scott and Pope", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "interest", + "category": "include", + "price": 737.61, + "stock_quantity": 546 + }, + "customer": { + "name": "Kathleen Burns", + "age": 34, + "country": "Jamaica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcdaniel and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcdaniel and Sons", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "suffer", + "category": "goal", + "price": 688.27, + "stock_quantity": 463 + }, + "customer": { + "name": "Patricia Smith", + "age": 30, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "full", + "category": "arm", + "price": 610.42, + "stock_quantity": 671 + }, + "customer": { + "name": "Michelle Miller", + "age": 27, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Watson-Johnson for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Watson-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Watson-Johnson", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "clearly", + "category": "from", + "price": 962.26, + "stock_quantity": 402 + }, + "customer": { + "name": "Heather Wilkerson", + "age": 75, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Walton, Green and Hubbard", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "cell", + "category": "among", + "price": 370.84, + "stock_quantity": 771 + }, + "customer": { + "name": "Michael Gordon", + "age": 67, + "country": "Paraguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mccormick-Hess'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mccormick-Hess", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "hope", + "category": "traditional", + "price": 149.86, + "stock_quantity": 330 + }, + "customer": { + "name": "Brandon Khan", + "age": 36, + "country": "Kyrgyz Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bright Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bright Ltd", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "describe", + "category": "poor", + "price": 722.99, + "stock_quantity": 528 + }, + "customer": { + "name": "Robert Thompson", + "age": 52, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Ware-Diaz", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "pressure", + "category": "represent", + "price": 108.45, + "stock_quantity": 987 + }, + "customer": { + "name": "Gabriel Olson", + "age": 53, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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'", + "company": { + "name": "Armstrong-Lopez", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "professional", + "category": "specific", + "price": 35.47, + "stock_quantity": 739 + }, + "customer": { + "name": "Angela Kirk", + "age": 33, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Hodges Group", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "American", + "category": "safe", + "price": 259.53, + "stock_quantity": 386 + }, + "customer": { + "name": "Joanne Stewart", + "age": 54, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Randolph-Garcia", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "right", + "category": "hit", + "price": 139.52, + "stock_quantity": 694 + }, + "customer": { + "name": "George Alvarez", + "age": 31, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Barton Group", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "occur", + "category": "American", + "price": 410.66, + "stock_quantity": 57 + }, + "customer": { + "name": "Margaret Jones", + "age": 64, + "country": "Puerto Rico" + } + }, + { + "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'", + "company": { + "name": "Hogan Ltd", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "almost", + "category": "once", + "price": 875.67, + "stock_quantity": 344 + }, + "customer": { + "name": "Sarah Benjamin", + "age": 61, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Marshall, Palmer and Anderson", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "field", + "category": "floor", + "price": 898.61, + "stock_quantity": 254 + }, + "customer": { + "name": "Collin King", + "age": 41, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Fox-Young", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "together", + "category": "road", + "price": 585.82, + "stock_quantity": 848 + }, + "customer": { + "name": "Tracey Wilson", + "age": 72, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Alexander, Nguyen and Klein", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "save", + "category": "use", + "price": 443.02, + "stock_quantity": 791 + }, + "customer": { + "name": "Leon Bruce", + "age": 71, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Morgan-Gonzalez", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "end", + "category": "church", + "price": 739.34, + "stock_quantity": 274 + }, + "customer": { + "name": "Kristopher Berry", + "age": 67, + "country": "Colombia" + } + }, + { + "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'", + "company": { + "name": "Garcia and Sons", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "operation", + "category": "next", + "price": 862.12, + "stock_quantity": 572 + }, + "customer": { + "name": "Patricia Larsen", + "age": 41, + "country": "Romania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown, Scott and Estrada'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown, Scott and Estrada", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "financial", + "category": "actually", + "price": 982.2, + "stock_quantity": 248 + }, + "customer": { + "name": "Mrs. Sarah Ramos", + "age": 52, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Warren, Carrillo and Pham", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "she", + "category": "national", + "price": 231.18, + "stock_quantity": 908 + }, + "customer": { + "name": "Monica Watkins", + "age": 52, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Evans Group", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "nice", + "category": "ago", + "price": 704.18, + "stock_quantity": 682 + }, + "customer": { + "name": "Victoria Gregory", + "age": 56, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Perez-Kennedy", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "challenge", + "category": "decision", + "price": 116.93, + "stock_quantity": 658 + }, + "customer": { + "name": "Zachary Butler", + "age": 23, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Mathis and Sons", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "nearly", + "category": "car", + "price": 316.19, + "stock_quantity": 469 + }, + "customer": { + "name": "Lindsay Adams", + "age": 80, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "way", + "category": "debate", + "price": 712.98, + "stock_quantity": 358 + }, + "customer": { + "name": "April Best", + "age": 39, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Moore, Lambert and Conway", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "body", + "category": "city", + "price": 370.03, + "stock_quantity": 728 + }, + "customer": { + "name": "Kelly Peterson", + "age": 67, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Barron Inc", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "wish", + "category": "party", + "price": 562.53, + "stock_quantity": 647 + }, + "customer": { + "name": "Sarah Jones", + "age": 75, + "country": "Mayotte" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kerr and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kerr and Sons", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "garden", + "category": "would", + "price": 808.87, + "stock_quantity": 757 + }, + "customer": { + "name": "Michael Byrd", + "age": 38, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Chaney, Johnston and Norton", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "strategy", + "category": "probably", + "price": 333.97, + "stock_quantity": 979 + }, + "customer": { + "name": "Teresa Collins", + "age": 38, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Fleming-Hunter", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "record", + "category": "wait", + "price": 471.65, + "stock_quantity": 429 + }, + "customer": { + "name": "Terry Swanson", + "age": 34, + "country": "Jersey" + } + }, + { + "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'", + "company": { + "name": "Adams-Coleman", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "point", + "category": "establish", + "price": 576.88, + "stock_quantity": 299 + }, + "customer": { + "name": "Michelle Oconnor", + "age": 68, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Cox LLC", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "possible", + "category": "identify", + "price": 703.97, + "stock_quantity": 556 + }, + "customer": { + "name": "Mr. David Garcia", + "age": 68, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Wood-Curry", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "make", + "category": "region", + "price": 730.88, + "stock_quantity": 486 + }, + "customer": { + "name": "Brittney Hale", + "age": 68, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Porter Group", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "ask", + "category": "letter", + "price": 713.69, + "stock_quantity": 705 + }, + "customer": { + "name": "Sean Roberts", + "age": 80, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Huerta, Mills and Schmidt", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "walk", + "category": "east", + "price": 900.98, + "stock_quantity": 134 + }, + "customer": { + "name": "David Thomas", + "age": 25, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Conner-Fitzgerald", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "owner", + "category": "Democrat", + "price": 265.56, + "stock_quantity": 547 + }, + "customer": { + "name": "Connie Fischer", + "age": 62, + "country": "Romania" + } + }, + { + "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'", + "company": { + "name": "Thompson Ltd", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "peace", + "category": "natural", + "price": 342.25, + "stock_quantity": 985 + }, + "customer": { + "name": "Stacey Buchanan", + "age": 62, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Williams-Wade", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "shake", + "category": "first", + "price": 198.78, + "stock_quantity": 908 + }, + "customer": { + "name": "Cody Graham", + "age": 46, + "country": "Uganda" + } + }, + { + "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'", + "company": { + "name": "Davis-Warner", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "run", + "category": "address", + "price": 151.75, + "stock_quantity": 1 + }, + "customer": { + "name": "Brian Barnes", + "age": 59, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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'", + "company": { + "name": "Sanchez and Sons", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "kitchen", + "category": "that", + "price": 620.12, + "stock_quantity": 645 + }, + "customer": { + "name": "Ann Huerta", + "age": 79, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Vasquez Ltd", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "alone", + "category": "business", + "price": 405.05, + "stock_quantity": 984 + }, + "customer": { + "name": "David Johnson", + "age": 31, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Li, Conway and Stewart", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "care", + "category": "north", + "price": 444.09, + "stock_quantity": 62 + }, + "customer": { + "name": "Jared Dennis", + "age": 29, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Ramirez-Garcia", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "brother", + "category": "center", + "price": 418.38, + "stock_quantity": 498 + }, + "customer": { + "name": "Scott Gomez", + "age": 51, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Vaughn, Jackson and Case", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "believe", + "category": "shake", + "price": 226.27, + "stock_quantity": 368 + }, + "customer": { + "name": "Madison Morrison", + "age": 24, + "country": "Pakistan" + } + }, + { + "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'", + "company": { + "name": "Sanchez and Sons", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "animal", + "category": "way", + "price": 367.45, + "stock_quantity": 334 + }, + "customer": { + "name": "Duane Rios", + "age": 25, + "country": "French Guiana" + } + }, + { + "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'", + "company": { + "name": "Kaiser, Houston and Howard", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "relationship", + "category": "prepare", + "price": 637.54, + "stock_quantity": 412 + }, + "customer": { + "name": "Tiffany Hopkins", + "age": 79, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Griffin, Bryant and Hamilton", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "up", + "category": "organization", + "price": 740.76, + "stock_quantity": 320 + }, + "customer": { + "name": "Diana Kim", + "age": 42, + "country": "Panama" + } + }, + { + "natural_query": "Show me all products in the each category with a price over $292.21.", + "sql_query": "SELECT * FROM products WHERE category = 'each' AND price > 292.21", + "company": { + "name": "Williams-Faulkner", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "pass", + "category": "each", + "price": 292.21, + "stock_quantity": 272 + }, + "customer": { + "name": "Timothy Brown", + "age": 34, + "country": "Armenia" + } + }, + { + "natural_query": "List all customers and their total order value for Smith, Caldwell and Gill.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Smith, Caldwell and Gill' GROUP BY c.customer_id", + "company": { + "name": "Smith, Caldwell and Gill", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "consumer", + "category": "style", + "price": 648.47, + "stock_quantity": 596 + }, + "customer": { + "name": "Megan Hunt", + "age": 45, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Sandoval-Davis", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "report", + "category": "year", + "price": 550.35, + "stock_quantity": 579 + }, + "customer": { + "name": "Aaron Ramos", + "age": 35, + "country": "Christmas Island" + } + }, + { + "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'", + "company": { + "name": "Dennis-Camacho", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "break", + "category": "building", + "price": 942.88, + "stock_quantity": 37 + }, + "customer": { + "name": "Sandra Hughes", + "age": 80, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Smith-Hill", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "say", + "category": "shoulder", + "price": 701.41, + "stock_quantity": 31 + }, + "customer": { + "name": "Robert Taylor", + "age": 24, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Nguyen, Clark and Bruce", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "move", + "category": "attack", + "price": 41.16, + "stock_quantity": 756 + }, + "customer": { + "name": "Susan Welch", + "age": 28, + "country": "Cambodia" + } + }, + { + "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'", + "company": { + "name": "Davidson-Joseph", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "Republican", + "category": "alone", + "price": 14.93, + "stock_quantity": 744 + }, + "customer": { + "name": "Philip Graham", + "age": 47, + "country": "United Kingdom" + } + }, + { + "natural_query": "What are the top 9 products by sales for Scott PLC this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Scott PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9", + "company": { + "name": "Scott PLC", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "fine", + "category": "discover", + "price": 729.82, + "stock_quantity": 526 + }, + "customer": { + "name": "Miranda Hernandez", + "age": 71, + "country": "Australia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Campbell Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Campbell Group", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "pattern", + "category": "husband", + "price": 917.98, + "stock_quantity": 138 + }, + "customer": { + "name": "Kaitlyn Watson", + "age": 57, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Lewis Ltd", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "everybody", + "category": "power", + "price": 559.4, + "stock_quantity": 22 + }, + "customer": { + "name": "Hannah Schaefer", + "age": 39, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Huffman, Bishop and Curtis", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "tend", + "category": "quite", + "price": 803.71, + "stock_quantity": 282 + }, + "customer": { + "name": "Chad Rich", + "age": 54, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Zimmerman, Morris and Ross", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "raise", + "category": "baby", + "price": 289.66, + "stock_quantity": 551 + }, + "customer": { + "name": "Carlos Franklin", + "age": 40, + "country": "Honduras" + } + }, + { + "natural_query": "Show me all products in the ground category with a price over $317.34.", + "sql_query": "SELECT * FROM products WHERE category = 'ground' AND price > 317.34", + "company": { + "name": "Mosley-Hill", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "eight", + "category": "ground", + "price": 317.34, + "stock_quantity": 962 + }, + "customer": { + "name": "Jacob Russo", + "age": 59, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Williams, Reeves and Lawrence", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "trouble", + "category": "meeting", + "price": 679.75, + "stock_quantity": 121 + }, + "customer": { + "name": "Douglas Carrillo", + "age": 23, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Burton-Rodriguez", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "threat", + "category": "similar", + "price": 523.24, + "stock_quantity": 372 + }, + "customer": { + "name": "Angie Vargas", + "age": 80, + "country": "Vietnam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson, Bailey and Howell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson, Bailey and Howell", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "college", + "category": "garden", + "price": 409.39, + "stock_quantity": 642 + }, + "customer": { + "name": "Sherry Jones", + "age": 40, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Morrison-Watkins", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "wonder", + "category": "during", + "price": 137.13, + "stock_quantity": 561 + }, + "customer": { + "name": "Hannah Green", + "age": 26, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Walton Ltd", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "new", + "category": "item", + "price": 220.34, + "stock_quantity": 916 + }, + "customer": { + "name": "Joe Costa", + "age": 54, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Hunter PLC", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "him", + "category": "over", + "price": 198.58, + "stock_quantity": 439 + }, + "customer": { + "name": "Samantha Fuller", + "age": 22, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Richardson-Griffin", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "individual", + "category": "mission", + "price": 733.43, + "stock_quantity": 662 + }, + "customer": { + "name": "Kayla Harris", + "age": 22, + "country": "Mayotte" + } + }, + { + "natural_query": "Show me all products in the run category with a price over $373.52.", + "sql_query": "SELECT * FROM products WHERE category = 'run' AND price > 373.52", + "company": { + "name": "Chavez, Trevino and Rodriguez", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "win", + "category": "run", + "price": 373.52, + "stock_quantity": 481 + }, + "customer": { + "name": "Luke Gonzalez", + "age": 40, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Brown, Callahan and Beck", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "answer", + "category": "bit", + "price": 289.24, + "stock_quantity": 543 + }, + "customer": { + "name": "Tammy Chen", + "age": 34, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Cooper Group", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "TV", + "category": "star", + "price": 948.47, + "stock_quantity": 348 + }, + "customer": { + "name": "Kelly Jenkins", + "age": 46, + "country": "Jordan" + } + }, + { + "natural_query": "What is the total quantity for each category in Briggs-Stout?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Briggs-Stout' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Briggs-Stout", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "successful", + "category": "low", + "price": 708.08, + "stock_quantity": 817 + }, + "customer": { + "name": "Stacy Lee", + "age": 28, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Sanders, Arnold and Andrews", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "pick", + "category": "until", + "price": 333.94, + "stock_quantity": 800 + }, + "customer": { + "name": "Elizabeth Church", + "age": 57, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Lucas-Dalton", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "inside", + "category": "term", + "price": 676.38, + "stock_quantity": 604 + }, + "customer": { + "name": "Kenneth Carter", + "age": 40, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Jordan Ltd", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "firm", + "category": "road", + "price": 465.25, + "stock_quantity": 733 + }, + "customer": { + "name": "April Stephenson", + "age": 63, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'King PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "King PLC", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "Republican", + "category": "production", + "price": 568.13, + "stock_quantity": 375 + }, + "customer": { + "name": "Angela Thompson", + "age": 73, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Gonzales Ltd", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "three", + "category": "option", + "price": 347.07, + "stock_quantity": 819 + }, + "customer": { + "name": "Wendy Brown", + "age": 60, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Johnson, Burns and Boyd", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "what", + "category": "product", + "price": 986.07, + "stock_quantity": 912 + }, + "customer": { + "name": "James Larsen", + "age": 66, + "country": "French Guiana" + } + }, + { + "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", + "company": { + "name": "Travis-Wright", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "agency", + "category": "book", + "price": 658.92, + "stock_quantity": 891 + }, + "customer": { + "name": "Kelly Swanson", + "age": 31, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Horton-Blackwell", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "hotel", + "category": "share", + "price": 928.55, + "stock_quantity": 399 + }, + "customer": { + "name": "Joseph Norton", + "age": 78, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Curtis, Hamilton and Brandt", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "full", + "category": "build", + "price": 532.13, + "stock_quantity": 51 + }, + "customer": { + "name": "Tina Flynn MD", + "age": 80, + "country": "Ghana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson Ltd", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "theory", + "category": "movie", + "price": 143.51, + "stock_quantity": 287 + }, + "customer": { + "name": "Thomas Hart", + "age": 38, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Bailey Group", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "beyond", + "category": "happen", + "price": 977.65, + "stock_quantity": 600 + }, + "customer": { + "name": "Michael Hall", + "age": 33, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Golden and Sons", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "thus", + "category": "improve", + "price": 134.56, + "stock_quantity": 901 + }, + "customer": { + "name": "Sarah Carpenter", + "age": 48, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Coffey Group", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "way", + "category": "debate", + "price": 312.5, + "stock_quantity": 163 + }, + "customer": { + "name": "George Spencer", + "age": 29, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Carlson, Allen and Lopez", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "contain", + "category": "rate", + "price": 406.87, + "stock_quantity": 72 + }, + "customer": { + "name": "Joel Wheeler", + "age": 41, + "country": "Brazil" + } + }, + { + "natural_query": "Show me all products in the away category with a price over $114.3.", + "sql_query": "SELECT * FROM products WHERE category = 'away' AND price > 114.3", + "company": { + "name": "Frazier, Maxwell and Hayes", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "wall", + "category": "away", + "price": 114.3, + "stock_quantity": 113 + }, + "customer": { + "name": "Erin Martinez", + "age": 57, + "country": "Mayotte" + } + }, + { + "natural_query": "What is the total quantity for each country in Weaver, Thornton and Williams?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Weaver, Thornton and Williams' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Weaver, Thornton and Williams", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "national", + "category": "character", + "price": 164.3, + "stock_quantity": 348 + }, + "customer": { + "name": "Matthew Wheeler", + "age": 49, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Mendoza-Wiggins", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "very", + "category": "week", + "price": 607.46, + "stock_quantity": 637 + }, + "customer": { + "name": "Stephen Hayes", + "age": 47, + "country": "Palau" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Jarvis, Brown and Miller for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jarvis, Brown and Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jarvis, Brown and Miller", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "could", + "category": "key", + "price": 81.93, + "stock_quantity": 887 + }, + "customer": { + "name": "Blake Hill", + "age": 77, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Spencer, Peters and Zamora", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "participant", + "category": "pretty", + "price": 918.3, + "stock_quantity": 962 + }, + "customer": { + "name": "Melissa Burnett", + "age": 50, + "country": "Canada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson LLC", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "figure", + "category": "task", + "price": 572.48, + "stock_quantity": 969 + }, + "customer": { + "name": "Connor Townsend II", + "age": 30, + "country": "Samoa" + } + }, + { + "natural_query": "What is the average price of all products for Williams Inc?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Williams Inc'", + "company": { + "name": "Williams Inc", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "allow", + "category": "lot", + "price": 784.71, + "stock_quantity": 627 + }, + "customer": { + "name": "Nathan Elliott", + "age": 57, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Clarke Inc", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "set", + "category": "lawyer", + "price": 628.68, + "stock_quantity": 275 + }, + "customer": { + "name": "Michael Hatfield", + "age": 70, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Jones-Harrell", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "give", + "category": "energy", + "price": 27.99, + "stock_quantity": 925 + }, + "customer": { + "name": "Lacey Pope", + "age": 79, + "country": "Argentina" + } + }, + { + "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'", + "company": { + "name": "Thompson Ltd", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "like", + "category": "soon", + "price": 814.02, + "stock_quantity": 171 + }, + "customer": { + "name": "Ralph Pitts Jr.", + "age": 24, + "country": "India" + } + }, + { + "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'", + "company": { + "name": "Avila, Martin and Rivera", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "keep", + "category": "source", + "price": 368.39, + "stock_quantity": 609 + }, + "customer": { + "name": "Bryan Wilkerson", + "age": 29, + "country": "Taiwan" + } + }, + { + "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'", + "company": { + "name": "Bell-Morse", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "cover", + "category": "just", + "price": 708.45, + "stock_quantity": 168 + }, + "customer": { + "name": "Zachary Smith", + "age": 52, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Evans, Davis and Key'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Evans, Davis and Key", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "power", + "category": "memory", + "price": 301.25, + "stock_quantity": 159 + }, + "customer": { + "name": "Judy Bailey", + "age": 40, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Hancock, Salinas and Nunez", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "leave", + "category": "suddenly", + "price": 958.59, + "stock_quantity": 85 + }, + "customer": { + "name": "Melissa Jackson", + "age": 53, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Dominguez, Smith and Cunningham", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "another", + "category": "generation", + "price": 745.73, + "stock_quantity": 996 + }, + "customer": { + "name": "Bradley Morrison", + "age": 26, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Wilson-May", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "such", + "category": "easy", + "price": 731.87, + "stock_quantity": 849 + }, + "customer": { + "name": "Jason Quinn", + "age": 60, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Shelton, Collier and Dean", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "manage", + "category": "rate", + "price": 625.57, + "stock_quantity": 727 + }, + "customer": { + "name": "Melissa Davis", + "age": 27, + "country": "Nigeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'White PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "White PLC", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "watch", + "category": "present", + "price": 536.21, + "stock_quantity": 747 + }, + "customer": { + "name": "Sharon Larsen", + "age": 79, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Pena, Bishop and Charles", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "prepare", + "category": "total", + "price": 991.65, + "stock_quantity": 821 + }, + "customer": { + "name": "Richard Sullivan", + "age": 51, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Johnson, Knox and Lawrence", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "mission", + "category": "traditional", + "price": 399.77, + "stock_quantity": 901 + }, + "customer": { + "name": "Kelly Roberts", + "age": 75, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Hall LLC", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "authority", + "category": "on", + "price": 922.28, + "stock_quantity": 60 + }, + "customer": { + "name": "Amy Lane", + "age": 37, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Johnson, Lawson and Diaz", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "may", + "category": "within", + "price": 605.88, + "stock_quantity": 309 + }, + "customer": { + "name": "Allen Moore", + "age": 55, + "country": "Paraguay" + } + }, + { + "natural_query": "What are the top 3 products by orders for Anderson, Turner and Mitchell last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Anderson, Turner and Mitchell' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 3", + "company": { + "name": "Anderson, Turner and Mitchell", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "party", + "category": "center", + "price": 54.49, + "stock_quantity": 122 + }, + "customer": { + "name": "Rebecca Prince", + "age": 22, + "country": "Kiribati" + } + }, + { + "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'", + "company": { + "name": "Morse-Gibbs", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "father", + "category": "same", + "price": 85.09, + "stock_quantity": 1 + }, + "customer": { + "name": "Savannah Martin", + "age": 28, + "country": "Cocos (Keeling) Islands" + } + }, + { + "natural_query": "List all products of Hansen Group ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Hansen Group' ORDER BY price DESC", + "company": { + "name": "Hansen Group", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "or", + "category": "figure", + "price": 195.87, + "stock_quantity": 902 + }, + "customer": { + "name": "Crystal Davis", + "age": 69, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Cook-Reed", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "pull", + "category": "himself", + "price": 502.08, + "stock_quantity": 959 + }, + "customer": { + "name": "Kathleen Haynes", + "age": 29, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Harris Group", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "difference", + "category": "partner", + "price": 910.11, + "stock_quantity": 223 + }, + "customer": { + "name": "James Hamilton", + "age": 50, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Wagner-Johnson", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "small", + "category": "field", + "price": 598.36, + "stock_quantity": 289 + }, + "customer": { + "name": "Anthony Woods", + "age": 26, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Olsen-Young", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "live", + "category": "price", + "price": 377.22, + "stock_quantity": 559 + }, + "customer": { + "name": "Harold Greene", + "age": 60, + "country": "Christmas Island" + } + }, + { + "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'", + "company": { + "name": "Luna, Phillips and Hines", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "parent", + "category": "agreement", + "price": 981.86, + "stock_quantity": 443 + }, + "customer": { + "name": "Jeanette Morrison", + "age": 37, + "country": "Liberia" + } + }, + { + "natural_query": "How many orders were placed for Williams-Parks between 2024-03-18 and 2024-08-05?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Williams-Parks' AND order_date BETWEEN '2024-03-18' AND '2024-08-05'", + "company": { + "name": "Williams-Parks", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "bring", + "category": "sense", + "price": 306.17, + "stock_quantity": 933 + }, + "customer": { + "name": "Lauren Edwards", + "age": 53, + "country": "Macao" + } + }, + { + "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'", + "company": { + "name": "Turner Group", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "market", + "category": "table", + "price": 146.58, + "stock_quantity": 866 + }, + "customer": { + "name": "Chris Patterson", + "age": 24, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Baker, Rivas and Jones", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "vote", + "category": "be", + "price": 995.44, + "stock_quantity": 430 + }, + "customer": { + "name": "Anita Carter", + "age": 56, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Ward-Hunt", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "over", + "category": "article", + "price": 163.35, + "stock_quantity": 85 + }, + "customer": { + "name": "Amy Vasquez DVM", + "age": 73, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Carpenter LLC", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "imagine", + "category": "room", + "price": 572.3, + "stock_quantity": 563 + }, + "customer": { + "name": "Meghan Koch", + "age": 67, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Hooper Group", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "upon", + "category": "I", + "price": 196.85, + "stock_quantity": 518 + }, + "customer": { + "name": "George Smith", + "age": 48, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Johnson-Hurley", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "future", + "category": "including", + "price": 410.01, + "stock_quantity": 356 + }, + "customer": { + "name": "Dustin Gonzalez", + "age": 53, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Jones and Sons", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "table", + "category": "card", + "price": 754.7, + "stock_quantity": 544 + }, + "customer": { + "name": "Brittany Ford", + "age": 24, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Spencer PLC", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "group", + "category": "movement", + "price": 629.01, + "stock_quantity": 908 + }, + "customer": { + "name": "Toni Young", + "age": 51, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Jackson-Johnson", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "happy", + "category": "performance", + "price": 181.06, + "stock_quantity": 143 + }, + "customer": { + "name": "Briana Taylor", + "age": 41, + "country": "Montenegro" + } + }, + { + "natural_query": "Show me all products in the establish category with a price over $472.03.", + "sql_query": "SELECT * FROM products WHERE category = 'establish' AND price > 472.03", + "company": { + "name": "Oneal, Andrews and Rosales", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "little", + "category": "establish", + "price": 472.03, + "stock_quantity": 540 + }, + "customer": { + "name": "Meredith Powell", + "age": 64, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Johnson-Edwards", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "discussion", + "category": "character", + "price": 855.4, + "stock_quantity": 167 + }, + "customer": { + "name": "Victoria Brown", + "age": 45, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Thompson, Smith and Cooper", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "standard", + "category": "if", + "price": 138.13, + "stock_quantity": 407 + }, + "customer": { + "name": "Kathryn Small", + "age": 24, + "country": "Puerto Rico" + } + }, + { + "natural_query": "List all customers and their total order value for Park-Rogers.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Park-Rogers' GROUP BY c.customer_id", + "company": { + "name": "Park-Rogers", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "she", + "category": "popular", + "price": 66.55, + "stock_quantity": 525 + }, + "customer": { + "name": "Victoria Cochran", + "age": 69, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Joseph and Sons", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "administration", + "category": "step", + "price": 994.99, + "stock_quantity": 158 + }, + "customer": { + "name": "Jane Bishop MD", + "age": 68, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Davis-Montgomery", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "capital", + "category": "president", + "price": 840.14, + "stock_quantity": 505 + }, + "customer": { + "name": "Wesley Moreno", + "age": 52, + "country": "Ghana" + } + }, + { + "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'", + "company": { + "name": "Guzman Group", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "far", + "category": "move", + "price": 122.45, + "stock_quantity": 447 + }, + "customer": { + "name": "Mark Mccormick", + "age": 47, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Kerr PLC", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "free", + "category": "company", + "price": 259.99, + "stock_quantity": 610 + }, + "customer": { + "name": "Angela Mclean", + "age": 78, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Lewis, Richard and Mckinney", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "home", + "category": "offer", + "price": 644.93, + "stock_quantity": 224 + }, + "customer": { + "name": "Catherine Johnson", + "age": 20, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Morales, Houston and Riley", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "movement", + "category": "yard", + "price": 310.62, + "stock_quantity": 934 + }, + "customer": { + "name": "Rachel Perez", + "age": 76, + "country": "Albania" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Richardson Ltd for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Richardson Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Richardson Ltd", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "wish", + "category": "she", + "price": 307.9, + "stock_quantity": 333 + }, + "customer": { + "name": "Yvonne Johnson", + "age": 25, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Thornton, Duncan and Bradley", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "try", + "category": "news", + "price": 614.98, + "stock_quantity": 331 + }, + "customer": { + "name": "Lisa Watson", + "age": 48, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Wiley, Davis and Jones", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "at", + "category": "know", + "price": 973.17, + "stock_quantity": 491 + }, + "customer": { + "name": "Stephen Ellis", + "age": 45, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Johnson, Williams and Kelly", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "up", + "category": "born", + "price": 90.51, + "stock_quantity": 888 + }, + "customer": { + "name": "Jeremy Gilbert", + "age": 62, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "cup", + "category": "west", + "price": 974.26, + "stock_quantity": 200 + }, + "customer": { + "name": "Mr. Mark Barnes", + "age": 22, + "country": "Korea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Serrano Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Serrano Ltd", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "car", + "category": "any", + "price": 221.85, + "stock_quantity": 68 + }, + "customer": { + "name": "Michael Walsh", + "age": 56, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Jones-Obrien", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "conference", + "category": "marriage", + "price": 748.7, + "stock_quantity": 501 + }, + "customer": { + "name": "Natalie Haley", + "age": 59, + "country": "Gambia" + } + }, + { + "natural_query": "List all customers and their total order value for Adams-Padilla.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Adams-Padilla' GROUP BY c.customer_id", + "company": { + "name": "Adams-Padilla", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "those", + "category": "happy", + "price": 880.63, + "stock_quantity": 977 + }, + "customer": { + "name": "Madison Li", + "age": 61, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Martin Ltd", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "lay", + "category": "do", + "price": 137.13, + "stock_quantity": 86 + }, + "customer": { + "name": "Tami Taylor", + "age": 37, + "country": "Rwanda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Avery Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Avery Ltd", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "itself", + "category": "attention", + "price": 485.67, + "stock_quantity": 172 + }, + "customer": { + "name": "Jared Love", + "age": 73, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Santos-Castillo", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "per", + "category": "rather", + "price": 533.14, + "stock_quantity": 42 + }, + "customer": { + "name": "Anthony Graham", + "age": 69, + "country": "Madagascar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Welch, Moore and Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Welch, Moore and Brown", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "push", + "category": "happen", + "price": 512.53, + "stock_quantity": 203 + }, + "customer": { + "name": "Stephanie Green", + "age": 60, + "country": "Palau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Schwartz-Morgan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Schwartz-Morgan", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "walk", + "category": "as", + "price": 932.56, + "stock_quantity": 403 + }, + "customer": { + "name": "April Coleman", + "age": 49, + "country": "Kiribati" + } + }, + { + "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'", + "company": { + "name": "Crane-Jenkins", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "fire", + "category": "from", + "price": 625.7, + "stock_quantity": 575 + }, + "customer": { + "name": "Anthony Mejia", + "age": 67, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Powell Inc", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "know", + "category": "color", + "price": 474.86, + "stock_quantity": 160 + }, + "customer": { + "name": "Allison Reynolds", + "age": 61, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Ramirez, Keith and Boyd", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "produce", + "category": "TV", + "price": 507.02, + "stock_quantity": 984 + }, + "customer": { + "name": "Joshua Smith", + "age": 79, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Olson-Estes", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "player", + "category": "health", + "price": 104.51, + "stock_quantity": 130 + }, + "customer": { + "name": "Victoria Ball", + "age": 76, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Delacruz-Williams", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "talk", + "category": "south", + "price": 259.84, + "stock_quantity": 847 + }, + "customer": { + "name": "Sydney Morrow", + "age": 71, + "country": "Tuvalu" + } + }, + { + "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'", + "company": { + "name": "Garcia, Morrow and Swanson", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "ask", + "category": "can", + "price": 726.06, + "stock_quantity": 819 + }, + "customer": { + "name": "Valerie Johnson", + "age": 62, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Garcia, Sanchez and Casey", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "sit", + "category": "walk", + "price": 871.38, + "stock_quantity": 131 + }, + "customer": { + "name": "Christine Davila", + "age": 40, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Martinez-Rocha", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "especially", + "category": "cause", + "price": 584.95, + "stock_quantity": 399 + }, + "customer": { + "name": "Courtney Wilkins", + "age": 30, + "country": "Afghanistan" + } + }, + { + "natural_query": "How many orders were placed for Barton-Brown between 2024-01-24 and 2024-03-11?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barton-Brown' AND order_date BETWEEN '2024-01-24' AND '2024-03-11'", + "company": { + "name": "Barton-Brown", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "some", + "category": "very", + "price": 330.68, + "stock_quantity": 364 + }, + "customer": { + "name": "Nicholas Murray", + "age": 49, + "country": "Maldives" + } + }, + { + "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'", + "company": { + "name": "Blackwell, Kelly and Martin", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "pass", + "category": "ever", + "price": 806.56, + "stock_quantity": 406 + }, + "customer": { + "name": "Calvin Jenkins", + "age": 43, + "country": "Uruguay" + } + }, + { + "natural_query": "List all customers and their total order value for Aguilar-Jenkins.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Aguilar-Jenkins' GROUP BY c.customer_id", + "company": { + "name": "Aguilar-Jenkins", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "foreign", + "category": "able", + "price": 723.59, + "stock_quantity": 54 + }, + "customer": { + "name": "Steven Bennett", + "age": 58, + "country": "Hong Kong" + } + }, + { + "natural_query": "Show me all products in the large category with a price over $982.26.", + "sql_query": "SELECT * FROM products WHERE category = 'large' AND price > 982.26", + "company": { + "name": "Booth-Clark", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "within", + "category": "large", + "price": 982.26, + "stock_quantity": 108 + }, + "customer": { + "name": "Linda Cobb", + "age": 22, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Gonzales PLC", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "chair", + "category": "well", + "price": 673.33, + "stock_quantity": 399 + }, + "customer": { + "name": "Jonathan Hickman", + "age": 67, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Woodward-Skinner", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "half", + "category": "program", + "price": 857.15, + "stock_quantity": 573 + }, + "customer": { + "name": "Jose Stafford", + "age": 32, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Rhodes LLC", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "respond", + "category": "possible", + "price": 545.82, + "stock_quantity": 95 + }, + "customer": { + "name": "Jason Simpson", + "age": 57, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "natural_query": "List all products of Alexander-Nash ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Alexander-Nash' ORDER BY price DESC", + "company": { + "name": "Alexander-Nash", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "always", + "category": "improve", + "price": 779.9, + "stock_quantity": 35 + }, + "customer": { + "name": "Brian Reyes", + "age": 36, + "country": "Nauru" + } + }, + { + "natural_query": "What is the average rating of all products for Campbell-Harmon?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Campbell-Harmon'", + "company": { + "name": "Campbell-Harmon", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "attorney", + "category": "college", + "price": 356.29, + "stock_quantity": 497 + }, + "customer": { + "name": "Tracy Delgado", + "age": 71, + "country": "Greenland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Abbott-Wilson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Abbott-Wilson", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "for", + "category": "third", + "price": 567.88, + "stock_quantity": 745 + }, + "customer": { + "name": "Marissa Ford", + "age": 57, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Thompson, Soto and Stark", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "future", + "category": "condition", + "price": 396.28, + "stock_quantity": 658 + }, + "customer": { + "name": "Jeremiah Kelly", + "age": 73, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Sims PLC", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "candidate", + "category": "eight", + "price": 768.34, + "stock_quantity": 816 + }, + "customer": { + "name": "Stephanie Patel", + "age": 64, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Pierce, Gibbs and Murray", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "low", + "category": "peace", + "price": 957.22, + "stock_quantity": 491 + }, + "customer": { + "name": "Joseph Ramsey", + "age": 64, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Garcia, Maynard and Patton", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "under", + "category": "attention", + "price": 945.62, + "stock_quantity": 611 + }, + "customer": { + "name": "Keith Lee", + "age": 27, + "country": "Cayman Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson LLC", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "same", + "category": "would", + "price": 257.03, + "stock_quantity": 311 + }, + "customer": { + "name": "Patrick Roach", + "age": 63, + "country": "Sierra Leone" + } + }, + { + "natural_query": "What is the maximum price of all products for Young-Parker?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Young-Parker'", + "company": { + "name": "Young-Parker", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "film", + "category": "save", + "price": 444.59, + "stock_quantity": 747 + }, + "customer": { + "name": "Maria Booker", + "age": 21, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Mccall, Miller and Bryant", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "drop", + "category": "many", + "price": 524.97, + "stock_quantity": 926 + }, + "customer": { + "name": "Emily Mitchell", + "age": 59, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Campos Ltd", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "in", + "category": "early", + "price": 581.75, + "stock_quantity": 856 + }, + "customer": { + "name": "Kathryn Harris", + "age": 62, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Woods-Hutchinson", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "money", + "category": "left", + "price": 735.47, + "stock_quantity": 990 + }, + "customer": { + "name": "David Miller", + "age": 70, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Payne, Brown and Mathis", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "poor", + "category": "site", + "price": 643.1, + "stock_quantity": 520 + }, + "customer": { + "name": "Bethany Holmes", + "age": 55, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Bradley-Martinez", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "commercial", + "category": "take", + "price": 684.71, + "stock_quantity": 949 + }, + "customer": { + "name": "Joshua Meyer", + "age": 23, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Thompson-Gonzales", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "any", + "category": "both", + "price": 27.73, + "stock_quantity": 61 + }, + "customer": { + "name": "Larry Mills", + "age": 60, + "country": "Kenya" + } + }, + { + "natural_query": "List all products of Hawkins Group ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Hawkins Group' ORDER BY rating ASC", + "company": { + "name": "Hawkins Group", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "another", + "category": "process", + "price": 657.17, + "stock_quantity": 887 + }, + "customer": { + "name": "James Castillo", + "age": 51, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Hernandez LLC", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "main", + "category": "measure", + "price": 674.83, + "stock_quantity": 546 + }, + "customer": { + "name": "Dr. Jessica Spears MD", + "age": 74, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Anderson, Green and Powers", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "difference", + "category": "market", + "price": 206.05, + "stock_quantity": 763 + }, + "customer": { + "name": "Christina Mckee", + "age": 19, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Price PLC", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "lot", + "category": "indicate", + "price": 677.52, + "stock_quantity": 257 + }, + "customer": { + "name": "Scott Gomez", + "age": 55, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Dorsey, Salazar and Turner", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "especially", + "category": "artist", + "price": 935.77, + "stock_quantity": 918 + }, + "customer": { + "name": "Shirley Wright MD", + "age": 39, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Schwartz Inc", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "everyone", + "category": "pay", + "price": 685.77, + "stock_quantity": 96 + }, + "customer": { + "name": "Dean Lopez", + "age": 41, + "country": "Isle of Man" + } + }, + { + "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", + "company": { + "name": "Gilbert-Harris", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "camera", + "category": "company", + "price": 584.68, + "stock_quantity": 357 + }, + "customer": { + "name": "Adriana Cunningham", + "age": 60, + "country": "Burundi" + } + }, + { + "natural_query": "What are the top 6 products by revenue for Edwards, Roberts and Smith this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Edwards, Roberts and Smith' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6", + "company": { + "name": "Edwards, Roberts and Smith", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "page", + "category": "paper", + "price": 897.73, + "stock_quantity": 90 + }, + "customer": { + "name": "Carrie Kane", + "age": 51, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Choi, Skinner and Daniel", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "two", + "category": "specific", + "price": 946.52, + "stock_quantity": 63 + }, + "customer": { + "name": "Jessica Burns", + "age": 22, + "country": "Uzbekistan" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Moore-Smith for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Moore-Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Moore-Smith", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "risk", + "category": "voice", + "price": 798.9, + "stock_quantity": 709 + }, + "customer": { + "name": "Jacqueline Farmer", + "age": 35, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Pena, Anderson and Vargas", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "well", + "category": "news", + "price": 660.37, + "stock_quantity": 16 + }, + "customer": { + "name": "Breanna Jones", + "age": 74, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Kelly, Fleming and Gilbert", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "PM", + "category": "more", + "price": 55.57, + "stock_quantity": 126 + }, + "customer": { + "name": "Brett Parker", + "age": 52, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Brown, Lopez and Burch", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "level", + "category": "help", + "price": 514.34, + "stock_quantity": 218 + }, + "customer": { + "name": "Randy Carpenter", + "age": 32, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Clark-Johnson", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "production", + "category": "finally", + "price": 427.4, + "stock_quantity": 189 + }, + "customer": { + "name": "Steven Cummings", + "age": 34, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Fletcher and Sons", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "form", + "category": "coach", + "price": 577.65, + "stock_quantity": 762 + }, + "customer": { + "name": "Allison Ward", + "age": 47, + "country": "Niger" + } + }, + { + "natural_query": "Show me all products in the second category with a price over $406.6.", + "sql_query": "SELECT * FROM products WHERE category = 'second' AND price > 406.6", + "company": { + "name": "Jarvis Inc", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "word", + "category": "second", + "price": 406.6, + "stock_quantity": 832 + }, + "customer": { + "name": "Marvin Reeves", + "age": 42, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Henderson-Patterson", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "let", + "category": "land", + "price": 429.87, + "stock_quantity": 28 + }, + "customer": { + "name": "Gregory Ali", + "age": 18, + "country": "French Polynesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Russell and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Russell and Sons", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "parent", + "category": "again", + "price": 215.66, + "stock_quantity": 766 + }, + "customer": { + "name": "John Briggs", + "age": 53, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Murray, Nelson and Franklin", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "involve", + "category": "trade", + "price": 680.56, + "stock_quantity": 535 + }, + "customer": { + "name": "Sara Gibson", + "age": 66, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Newton Inc", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "knowledge", + "category": "type", + "price": 989.61, + "stock_quantity": 486 + }, + "customer": { + "name": "Lisa Wright", + "age": 47, + "country": "Finland" + } + }, + { + "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'", + "company": { + "name": "Duarte and Sons", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "yet", + "category": "concern", + "price": 315.57, + "stock_quantity": 892 + }, + "customer": { + "name": "Edward Hebert", + "age": 61, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Thornton and Sons", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "see", + "category": "research", + "price": 370.61, + "stock_quantity": 784 + }, + "customer": { + "name": "Randy Mccarty", + "age": 28, + "country": "Isle of Man" + } + }, + { + "natural_query": "What are the top 7 products by customers for Torres PLC last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Torres PLC' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7", + "company": { + "name": "Torres PLC", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "information", + "category": "factor", + "price": 925.15, + "stock_quantity": 183 + }, + "customer": { + "name": "Stephanie Robinson DDS", + "age": 60, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Ashley-Fox", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "finish", + "category": "sometimes", + "price": 646.41, + "stock_quantity": 487 + }, + "customer": { + "name": "Charles Rivera", + "age": 79, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Scott, Butler and Henderson", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "entire", + "category": "manager", + "price": 874.03, + "stock_quantity": 171 + }, + "customer": { + "name": "Rebecca Williams", + "age": 73, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Jimenez Inc", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "sometimes", + "category": "note", + "price": 293.06, + "stock_quantity": 902 + }, + "customer": { + "name": "Mark Thompson", + "age": 65, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Padilla-Rush", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "sit", + "category": "sometimes", + "price": 293.22, + "stock_quantity": 370 + }, + "customer": { + "name": "Justin Anderson", + "age": 52, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Frazier Inc", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "of", + "category": "save", + "price": 83.17, + "stock_quantity": 491 + }, + "customer": { + "name": "Jason Mclean", + "age": 41, + "country": "Tokelau" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Simon-Mcconnell for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Simon-Mcconnell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Simon-Mcconnell", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "character", + "category": "stay", + "price": 146.32, + "stock_quantity": 556 + }, + "customer": { + "name": "Joseph Rollins", + "age": 52, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Cruz PLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "sound", + "category": "bar", + "price": 200.19, + "stock_quantity": 741 + }, + "customer": { + "name": "Stephanie Davis", + "age": 48, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Shaffer, Green and Jennings", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "rest", + "category": "one", + "price": 301.34, + "stock_quantity": 670 + }, + "customer": { + "name": "Christopher Miller", + "age": 26, + "country": "Tokelau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jackson-Hebert'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jackson-Hebert", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "course", + "category": "anyone", + "price": 618.56, + "stock_quantity": 519 + }, + "customer": { + "name": "Zachary Rhodes", + "age": 22, + "country": "Uzbekistan" + } + }, + { + "natural_query": "What is the total price of all products for Moore Inc?", + "sql_query": "SELECT TOTAL(price) as result FROM products WHERE company_name = 'Moore Inc'", + "company": { + "name": "Moore Inc", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "ever", + "category": "region", + "price": 962.21, + "stock_quantity": 715 + }, + "customer": { + "name": "Dana Douglas", + "age": 32, + "country": "Austria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mathis, Lee and Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mathis, Lee and Smith", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "station", + "category": "purpose", + "price": 661.03, + "stock_quantity": 756 + }, + "customer": { + "name": "Tamara Sanchez", + "age": 56, + "country": "Bosnia and Herzegovina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shea PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shea PLC", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "if", + "category": "possible", + "price": 828.25, + "stock_quantity": 42 + }, + "customer": { + "name": "Jill Shaw", + "age": 34, + "country": "Tonga" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Patterson-Wilson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Patterson-Wilson", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "four", + "category": "other", + "price": 761.38, + "stock_quantity": 849 + }, + "customer": { + "name": "Dennis Ford", + "age": 46, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Wilson PLC", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "movie", + "category": "well", + "price": 438.68, + "stock_quantity": 773 + }, + "customer": { + "name": "Jon Marshall", + "age": 22, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Matthews, Miller and Ruiz", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "think", + "category": "relationship", + "price": 714.55, + "stock_quantity": 394 + }, + "customer": { + "name": "John Lee", + "age": 46, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Fritz-Baxter", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "blood", + "category": "way", + "price": 889.9, + "stock_quantity": 717 + }, + "customer": { + "name": "Jennifer Jones", + "age": 33, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Bennett, Ortiz and Henry", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "soldier", + "category": "provide", + "price": 969.46, + "stock_quantity": 263 + }, + "customer": { + "name": "Tracy Valdez", + "age": 42, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Cox and Sons", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "consider", + "category": "throw", + "price": 357.66, + "stock_quantity": 123 + }, + "customer": { + "name": "Maria Hernandez", + "age": 39, + "country": "Russian Federation" + } + }, + { + "natural_query": "List all products of Clark, West and King ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Clark, West and King' ORDER BY rating DESC", + "company": { + "name": "Clark, West and King", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "send", + "category": "general", + "price": 296.03, + "stock_quantity": 966 + }, + "customer": { + "name": "Darren Anderson", + "age": 80, + "country": "Yemen" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson-King'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson-King", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "floor", + "category": "sit", + "price": 956.55, + "stock_quantity": 581 + }, + "customer": { + "name": "Lisa Nash", + "age": 47, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Gomez PLC", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "manage", + "category": "economy", + "price": 380.11, + "stock_quantity": 186 + }, + "customer": { + "name": "Ashlee Douglas", + "age": 56, + "country": "Benin" + } + }, + { + "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'", + "company": { + "name": "Crawford-Bernard", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "think", + "category": "always", + "price": 364.76, + "stock_quantity": 253 + }, + "customer": { + "name": "Stephen Davis", + "age": 46, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Lopez-Carey", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "increase", + "category": "laugh", + "price": 781.12, + "stock_quantity": 933 + }, + "customer": { + "name": "Mrs. Katie Bowers DVM", + "age": 76, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Allen-Booker", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "single", + "category": "something", + "price": 268.99, + "stock_quantity": 220 + }, + "customer": { + "name": "Jennifer Snyder", + "age": 45, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Burns-Parks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Burns-Parks", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "time", + "category": "she", + "price": 507.57, + "stock_quantity": 187 + }, + "customer": { + "name": "Kevin Walls", + "age": 37, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Williams-Wong", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "whose", + "category": "know", + "price": 368.04, + "stock_quantity": 141 + }, + "customer": { + "name": "Donna Jones", + "age": 31, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Perez, Phillips and Wilson", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "sister", + "category": "pass", + "price": 775.77, + "stock_quantity": 75 + }, + "customer": { + "name": "Eric Carter", + "age": 73, + "country": "Dominica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Turner-Kelly'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Turner-Kelly", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "nature", + "category": "attention", + "price": 829.44, + "stock_quantity": 1 + }, + "customer": { + "name": "Jon Fox", + "age": 35, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Phillips-Walker", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "sport", + "category": "remember", + "price": 440.57, + "stock_quantity": 757 + }, + "customer": { + "name": "David Hill", + "age": 22, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Delgado, Lawson and Shaw", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "important", + "category": "that", + "price": 682.29, + "stock_quantity": 260 + }, + "customer": { + "name": "Robin White", + "age": 49, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Dean-Maldonado", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "article", + "category": "along", + "price": 231.86, + "stock_quantity": 71 + }, + "customer": { + "name": "Larry Gardner", + "age": 39, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Ruiz-Abbott", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "consumer", + "category": "every", + "price": 172.48, + "stock_quantity": 908 + }, + "customer": { + "name": "Alexandra Snyder", + "age": 48, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "King, Bennett and Arnold", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "including", + "category": "outside", + "price": 836.28, + "stock_quantity": 223 + }, + "customer": { + "name": "Sandra Bowers", + "age": 59, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Montoya-Monroe", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "stand", + "category": "over", + "price": 116.45, + "stock_quantity": 26 + }, + "customer": { + "name": "Luke Bass", + "age": 21, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Figueroa, Reyes and Durham", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "material", + "category": "offer", + "price": 727.45, + "stock_quantity": 311 + }, + "customer": { + "name": "Teresa Young", + "age": 57, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Douglas-Rivera", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "card", + "category": "task", + "price": 587.44, + "stock_quantity": 982 + }, + "customer": { + "name": "Alex Calhoun", + "age": 63, + "country": "Uruguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown Ltd", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "put", + "category": "quality", + "price": 724.09, + "stock_quantity": 979 + }, + "customer": { + "name": "Jay Jones", + "age": 41, + "country": "Saint Lucia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jacobs-Wilson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jacobs-Wilson", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "know", + "category": "gun", + "price": 49.12, + "stock_quantity": 848 + }, + "customer": { + "name": "Amber Farmer", + "age": 32, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Lane, Jones and Bryant", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "oil", + "category": "series", + "price": 494.74, + "stock_quantity": 339 + }, + "customer": { + "name": "Maria Jackson", + "age": 36, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Holland and Sons", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "production", + "category": "senior", + "price": 815.02, + "stock_quantity": 890 + }, + "customer": { + "name": "Jeremy Simon", + "age": 55, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "Hunter-Jacobs", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "upon", + "category": "behind", + "price": 749.96, + "stock_quantity": 560 + }, + "customer": { + "name": "Shannon Santos", + "age": 60, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Martin, Rodriguez and Butler", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "off", + "category": "build", + "price": 421.95, + "stock_quantity": 685 + }, + "customer": { + "name": "Wanda Levine", + "age": 38, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Strong, Strickland and Smith", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "performance", + "category": "or", + "price": 798.71, + "stock_quantity": 857 + }, + "customer": { + "name": "Richard Campbell", + "age": 18, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Schwartz Inc", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "relate", + "category": "true", + "price": 304.0, + "stock_quantity": 363 + }, + "customer": { + "name": "Alison Ramos", + "age": 28, + "country": "New Zealand" + } + }, + { + "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'", + "company": { + "name": "Sosa, Gomez and Lewis", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "him", + "category": "thing", + "price": 506.85, + "stock_quantity": 664 + }, + "customer": { + "name": "Henry White", + "age": 66, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Henderson and Walters", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "each", + "category": "yeah", + "price": 132.59, + "stock_quantity": 18 + }, + "customer": { + "name": "Jared Wiggins", + "age": 46, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Morris Ltd", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "check", + "category": "give", + "price": 758.34, + "stock_quantity": 783 + }, + "customer": { + "name": "Thomas Mcbride", + "age": 80, + "country": "Greece" + } + }, + { + "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'", + "company": { + "name": "Reyes-Baker", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "myself", + "category": "paper", + "price": 99.68, + "stock_quantity": 478 + }, + "customer": { + "name": "Evan Doyle", + "age": 21, + "country": "Albania" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Le Group for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Le Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Le Group", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "store", + "category": "television", + "price": 694.14, + "stock_quantity": 359 + }, + "customer": { + "name": "Eric Simpson", + "age": 20, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Forbes, Farmer and Kennedy", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "program", + "category": "to", + "price": 717.42, + "stock_quantity": 593 + }, + "customer": { + "name": "John Clay", + "age": 31, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Price Group", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "able", + "category": "American", + "price": 29.28, + "stock_quantity": 833 + }, + "customer": { + "name": "Austin Gutierrez", + "age": 47, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Brown Inc", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "husband", + "category": "still", + "price": 302.19, + "stock_quantity": 286 + }, + "customer": { + "name": "Jordan Gonzalez", + "age": 80, + "country": "Estonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller-Garcia'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller-Garcia", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "morning", + "category": "TV", + "price": 772.74, + "stock_quantity": 195 + }, + "customer": { + "name": "Brittany Hoover", + "age": 41, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Cox, Meza and Galvan", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "perhaps", + "category": "per", + "price": 649.57, + "stock_quantity": 283 + }, + "customer": { + "name": "Michael Spencer", + "age": 72, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Gonzales-Hansen", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "message", + "category": "south", + "price": 77.58, + "stock_quantity": 312 + }, + "customer": { + "name": "Monica Davis", + "age": 71, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Baker-Watkins", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "cold", + "category": "focus", + "price": 625.9, + "stock_quantity": 240 + }, + "customer": { + "name": "Heidi Smith", + "age": 34, + "country": "Paraguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Delacruz-Pacheco'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Delacruz-Pacheco", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "name", + "category": "despite", + "price": 725.21, + "stock_quantity": 505 + }, + "customer": { + "name": "Michael Ford", + "age": 46, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Durham Ltd", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "moment", + "category": "hot", + "price": 636.32, + "stock_quantity": 700 + }, + "customer": { + "name": "Monica Powell", + "age": 20, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Curry, Koch and Bates", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "whom", + "category": "morning", + "price": 739.33, + "stock_quantity": 789 + }, + "customer": { + "name": "David Robertson", + "age": 71, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Reed LLC", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "budget", + "category": "people", + "price": 93.17, + "stock_quantity": 194 + }, + "customer": { + "name": "Norman Lopez", + "age": 68, + "country": "Mauritius" + } + }, + { + "natural_query": "List all customers and their total order value for Dixon, Wade and Davis.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Dixon, Wade and Davis' GROUP BY c.customer_id", + "company": { + "name": "Dixon, Wade and Davis", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "speak", + "category": "build", + "price": 939.15, + "stock_quantity": 174 + }, + "customer": { + "name": "Carlos Dickerson", + "age": 62, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Harmon PLC", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "major", + "category": "natural", + "price": 693.11, + "stock_quantity": 74 + }, + "customer": { + "name": "Amanda Simmons", + "age": 70, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Larson-Porter", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "message", + "category": "consider", + "price": 199.86, + "stock_quantity": 56 + }, + "customer": { + "name": "Jackson Jones", + "age": 36, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Davis, Rojas and Campbell", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "significant", + "category": "poor", + "price": 222.36, + "stock_quantity": 164 + }, + "customer": { + "name": "Dr. Adam Williamson", + "age": 76, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Miller, Flores and Carter", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "account", + "category": "drive", + "price": 577.08, + "stock_quantity": 565 + }, + "customer": { + "name": "Ernest Brown", + "age": 52, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Stewart, Hansen and Gilmore", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "meet", + "category": "away", + "price": 907.12, + "stock_quantity": 316 + }, + "customer": { + "name": "Robin Wilson", + "age": 27, + "country": "Cape Verde" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Parker, Gonzalez and Allen'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Parker, Gonzalez and Allen", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "news", + "category": "development", + "price": 873.11, + "stock_quantity": 936 + }, + "customer": { + "name": "Kenneth Scott", + "age": 70, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Mora PLC", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "itself", + "category": "report", + "price": 662.65, + "stock_quantity": 364 + }, + "customer": { + "name": "Michele Richardson", + "age": 19, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Myers, Williamson and Sloan", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "sure", + "category": "garden", + "price": 750.82, + "stock_quantity": 763 + }, + "customer": { + "name": "Joseph Garner", + "age": 61, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Bailey Inc", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "entire", + "category": "entire", + "price": 120.33, + "stock_quantity": 343 + }, + "customer": { + "name": "Carla Schaefer", + "age": 68, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Douglas Group", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "establish", + "category": "draw", + "price": 210.76, + "stock_quantity": 86 + }, + "customer": { + "name": "Drew Fitzgerald", + "age": 59, + "country": "Papua New Guinea" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Roach-Blankenship for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roach-Blankenship'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roach-Blankenship", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "game", + "category": "meeting", + "price": 788.57, + "stock_quantity": 909 + }, + "customer": { + "name": "David Jones", + "age": 70, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Douglas LLC", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "share", + "category": "community", + "price": 213.16, + "stock_quantity": 140 + }, + "customer": { + "name": "Veronica Aguilar", + "age": 60, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Wright, Rogers and Murphy", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "determine", + "category": "conference", + "price": 220.14, + "stock_quantity": 483 + }, + "customer": { + "name": "Ashley Ward", + "age": 67, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Edwards-Brown", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "owner", + "category": "free", + "price": 697.15, + "stock_quantity": 342 + }, + "customer": { + "name": "Krystal Potts MD", + "age": 65, + "country": "Reunion" + } + }, + { + "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'", + "company": { + "name": "Walters-Bush", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "similar", + "category": "quickly", + "price": 546.51, + "stock_quantity": 301 + }, + "customer": { + "name": "Thomas Kennedy", + "age": 56, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Wright Inc", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "action", + "category": "sure", + "price": 858.52, + "stock_quantity": 734 + }, + "customer": { + "name": "Nathan Smith", + "age": 38, + "country": "French Polynesia" + } + }, + { + "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'", + "company": { + "name": "Lloyd PLC", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "movie", + "category": "you", + "price": 278.24, + "stock_quantity": 440 + }, + "customer": { + "name": "Amanda Harrell DDS", + "age": 57, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Marshall-Morales", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "class", + "category": "term", + "price": 414.1, + "stock_quantity": 508 + }, + "customer": { + "name": "Nancy Parker", + "age": 77, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Reyes-Wagner", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "beautiful", + "category": "write", + "price": 845.61, + "stock_quantity": 944 + }, + "customer": { + "name": "Catherine Ramirez", + "age": 22, + "country": "Guyana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis, James and Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis, James and Miller", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "whom", + "category": "young", + "price": 558.32, + "stock_quantity": 131 + }, + "customer": { + "name": "Joanna Ryan", + "age": 39, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Montoya-Butler", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "control", + "category": "meeting", + "price": 571.72, + "stock_quantity": 700 + }, + "customer": { + "name": "Andrew Price", + "age": 48, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Aguilar-Moon", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "scene", + "category": "tax", + "price": 180.86, + "stock_quantity": 877 + }, + "customer": { + "name": "John Gibson", + "age": 64, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Dominguez-Jones", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "city", + "category": "war", + "price": 852.57, + "stock_quantity": 754 + }, + "customer": { + "name": "Juan Townsend", + "age": 19, + "country": "Jersey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Whitaker PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Whitaker PLC", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "staff", + "category": "support", + "price": 48.35, + "stock_quantity": 486 + }, + "customer": { + "name": "Timothy Hart", + "age": 25, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia, Wagner and Pacheco'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia, Wagner and Pacheco", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "war", + "category": "art", + "price": 732.49, + "stock_quantity": 585 + }, + "customer": { + "name": "Duane Bishop", + "age": 68, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Black-Brown", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "experience", + "category": "wrong", + "price": 725.03, + "stock_quantity": 342 + }, + "customer": { + "name": "Travis Anthony", + "age": 21, + "country": "Costa Rica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carney and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carney and Sons", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "us", + "category": "subject", + "price": 370.98, + "stock_quantity": 401 + }, + "customer": { + "name": "Nathan Graham", + "age": 68, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Lewis-Gardner for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lewis-Gardner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lewis-Gardner", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "now", + "category": "who", + "price": 643.15, + "stock_quantity": 891 + }, + "customer": { + "name": "Eric Haynes", + "age": 65, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Townsend and Sons", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "none", + "category": "concern", + "price": 447.5, + "stock_quantity": 987 + }, + "customer": { + "name": "Jessica Williams", + "age": 66, + "country": "Guadeloupe" + } + }, + { + "natural_query": "What is the average quantity of all products for Carson-Young?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Carson-Young'", + "company": { + "name": "Carson-Young", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "a", + "category": "man", + "price": 582.19, + "stock_quantity": 441 + }, + "customer": { + "name": "Jennifer Campbell", + "age": 31, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Huber and Sons", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "hour", + "category": "main", + "price": 547.62, + "stock_quantity": 371 + }, + "customer": { + "name": "Monica Lee", + "age": 36, + "country": "Samoa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Henderson, Newman and Wells'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Henderson, Newman and Wells", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "hot", + "category": "air", + "price": 194.06, + "stock_quantity": 208 + }, + "customer": { + "name": "Sheri Perkins", + "age": 33, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Little, Brown and Garcia", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "agent", + "category": "form", + "price": 766.67, + "stock_quantity": 735 + }, + "customer": { + "name": "Henry Hamilton", + "age": 57, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Taylor Inc", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "night", + "category": "cut", + "price": 963.16, + "stock_quantity": 17 + }, + "customer": { + "name": "Brittany Rice", + "age": 66, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Davis, Dixon and Arnold", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "nice", + "category": "industry", + "price": 344.5, + "stock_quantity": 979 + }, + "customer": { + "name": "Joe Phillips", + "age": 18, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Stout-Wade", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "friend", + "category": "far", + "price": 986.43, + "stock_quantity": 781 + }, + "customer": { + "name": "Kevin Rosales", + "age": 32, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "White, Hamilton and Murphy", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "catch", + "category": "fund", + "price": 201.0, + "stock_quantity": 537 + }, + "customer": { + "name": "Christina Owens", + "age": 52, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Soto-Taylor", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "language", + "category": "likely", + "price": 390.65, + "stock_quantity": 169 + }, + "customer": { + "name": "April Watson", + "age": 50, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Phillips PLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "major", + "category": "question", + "price": 722.16, + "stock_quantity": 464 + }, + "customer": { + "name": "Kevin Gibson", + "age": 60, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Smith LLC", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "establish", + "category": "suggest", + "price": 16.32, + "stock_quantity": 149 + }, + "customer": { + "name": "Julie Campbell", + "age": 21, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Williams Inc", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "born", + "category": "high", + "price": 800.09, + "stock_quantity": 815 + }, + "customer": { + "name": "Tina Burton", + "age": 68, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Roberts-Reyes", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "news", + "category": "site", + "price": 19.22, + "stock_quantity": 814 + }, + "customer": { + "name": "Cynthia Brown", + "age": 41, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Olsen-Greene", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "hand", + "category": "party", + "price": 280.36, + "stock_quantity": 466 + }, + "customer": { + "name": "Samantha Mitchell", + "age": 47, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Collier, Stephens and Rosales", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "such", + "category": "have", + "price": 520.64, + "stock_quantity": 151 + }, + "customer": { + "name": "Johnny Scott", + "age": 18, + "country": "Nigeria" + } + }, + { + "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'", + "company": { + "name": "Figueroa-Mcdowell", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "fall", + "category": "test", + "price": 572.68, + "stock_quantity": 285 + }, + "customer": { + "name": "Erika Butler", + "age": 51, + "country": "Georgia" + } + }, + { + "natural_query": "Show me all products in the him category with a price over $106.58.", + "sql_query": "SELECT * FROM products WHERE category = 'him' AND price > 106.58", + "company": { + "name": "Soto Group", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "consumer", + "category": "him", + "price": 106.58, + "stock_quantity": 558 + }, + "customer": { + "name": "Melissa Collier", + "age": 42, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Rogers-Obrien", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "growth", + "category": "level", + "price": 835.85, + "stock_quantity": 741 + }, + "customer": { + "name": "Andrea Wright", + "age": 80, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Maxwell, Ellison and Cox", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "call", + "category": "return", + "price": 726.58, + "stock_quantity": 271 + }, + "customer": { + "name": "Denise Allen", + "age": 28, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Douglas, Rodriguez and Pierce", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "month", + "category": "without", + "price": 140.9, + "stock_quantity": 108 + }, + "customer": { + "name": "Kimberly Williams", + "age": 54, + "country": "Germany" + } + }, + { + "natural_query": "What is the total quantity for each category in Benton-Watson?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Benton-Watson' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Benton-Watson", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "course", + "category": "describe", + "price": 104.84, + "stock_quantity": 201 + }, + "customer": { + "name": "Christine Carter", + "age": 80, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Mercado-Hughes", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "control", + "category": "high", + "price": 476.1, + "stock_quantity": 825 + }, + "customer": { + "name": "Maria Price", + "age": 39, + "country": "Taiwan" + } + }, + { + "natural_query": "Show me all products in the series category with a price over $918.21.", + "sql_query": "SELECT * FROM products WHERE category = 'series' AND price > 918.21", + "company": { + "name": "Jones, Chandler and Price", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "knowledge", + "category": "series", + "price": 918.21, + "stock_quantity": 188 + }, + "customer": { + "name": "Madeline Wright", + "age": 69, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Fields-Turner", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "court", + "category": "less", + "price": 311.07, + "stock_quantity": 183 + }, + "customer": { + "name": "Jerry Day", + "age": 73, + "country": "Korea" + } + }, + { + "natural_query": "What is the total profit for each supplier in May, Moore and Acosta?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'May, Moore and Acosta' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "May, Moore and Acosta", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "mean", + "category": "sister", + "price": 423.61, + "stock_quantity": 13 + }, + "customer": { + "name": "Lindsay Harris", + "age": 70, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Sanford, Thompson and Johnson", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "beat", + "category": "pick", + "price": 531.23, + "stock_quantity": 760 + }, + "customer": { + "name": "Marc Wu", + "age": 43, + "country": "Venezuela" + } + }, + { + "natural_query": "What are the top 7 products by sales for Buck-Reynolds this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Buck-Reynolds' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7", + "company": { + "name": "Buck-Reynolds", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "end", + "category": "hundred", + "price": 455.73, + "stock_quantity": 699 + }, + "customer": { + "name": "Steven Cameron", + "age": 50, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Martinez, Greene and Jacobson", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "value", + "category": "think", + "price": 470.61, + "stock_quantity": 770 + }, + "customer": { + "name": "Rebecca Faulkner", + "age": 56, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Campbell-Ball", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "consumer", + "category": "alone", + "price": 597.63, + "stock_quantity": 165 + }, + "customer": { + "name": "Jordan Wallace", + "age": 59, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Parker LLC", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "blue", + "category": "recent", + "price": 497.41, + "stock_quantity": 599 + }, + "customer": { + "name": "Ashley Marquez", + "age": 57, + "country": "Paraguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sanchez-Kramer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sanchez-Kramer", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "Democrat", + "category": "whatever", + "price": 925.26, + "stock_quantity": 794 + }, + "customer": { + "name": "Cheryl Knight", + "age": 50, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Walls, Olsen and Thompson", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "person", + "category": "once", + "price": 156.37, + "stock_quantity": 680 + }, + "customer": { + "name": "Luis Maldonado", + "age": 67, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Tate, Johnson and Luna", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "on", + "category": "religious", + "price": 762.53, + "stock_quantity": 498 + }, + "customer": { + "name": "Latoya Park", + "age": 31, + "country": "Botswana" + } + }, + { + "natural_query": "List all products of Vargas, Moore and Ross ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Vargas, Moore and Ross' ORDER BY stock_quantity DESC", + "company": { + "name": "Vargas, Moore and Ross", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "service", + "category": "wait", + "price": 586.66, + "stock_quantity": 806 + }, + "customer": { + "name": "Dustin Floyd", + "age": 52, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Wright, Kramer and Grimes", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "memory", + "category": "style", + "price": 642.05, + "stock_quantity": 230 + }, + "customer": { + "name": "Brent Montgomery", + "age": 27, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Lang and Sons", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "various", + "category": "point", + "price": 158.45, + "stock_quantity": 520 + }, + "customer": { + "name": "Michael Dudley", + "age": 37, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Fletcher, Irwin and West", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "bed", + "category": "him", + "price": 499.42, + "stock_quantity": 14 + }, + "customer": { + "name": "Dale Tucker", + "age": 46, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Mcintosh-Christensen", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "key", + "category": "step", + "price": 891.28, + "stock_quantity": 409 + }, + "customer": { + "name": "Matthew Rowe", + "age": 39, + "country": "Egypt" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green, Bishop and Castillo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green, Bishop and Castillo", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "person", + "category": "realize", + "price": 538.7, + "stock_quantity": 681 + }, + "customer": { + "name": "Thomas Reyes", + "age": 62, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Washington, Duffy and Thomas", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "impact", + "category": "send", + "price": 432.59, + "stock_quantity": 690 + }, + "customer": { + "name": "Maria Lane", + "age": 32, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Gilbert LLC", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "throw", + "category": "bed", + "price": 277.55, + "stock_quantity": 367 + }, + "customer": { + "name": "Barbara Melendez", + "age": 39, + "country": "Costa Rica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Collins, Garcia and Williams'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Collins, Garcia and Williams", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "nearly", + "category": "condition", + "price": 232.38, + "stock_quantity": 960 + }, + "customer": { + "name": "Elizabeth Jones", + "age": 63, + "country": "Netherlands Antilles" + } + }, + { + "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'", + "company": { + "name": "Jackson Inc", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "power", + "category": "item", + "price": 197.45, + "stock_quantity": 592 + }, + "customer": { + "name": "Jimmy Brown", + "age": 77, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Lopez, Escobar and Meyer", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "increase", + "category": "commercial", + "price": 318.72, + "stock_quantity": 200 + }, + "customer": { + "name": "James Lucero", + "age": 40, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Morgan and Sons", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "miss", + "category": "newspaper", + "price": 526.92, + "stock_quantity": 301 + }, + "customer": { + "name": "Steve Velazquez", + "age": 35, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Hall-Simon", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "agreement", + "category": "else", + "price": 780.26, + "stock_quantity": 58 + }, + "customer": { + "name": "Lisa Turner", + "age": 25, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Wallace, Becker and Spencer", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "life", + "category": "direction", + "price": 806.37, + "stock_quantity": 220 + }, + "customer": { + "name": "Justin Meza", + "age": 23, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Schultz-Bishop", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "contain", + "category": "himself", + "price": 662.79, + "stock_quantity": 577 + }, + "customer": { + "name": "Diane Gutierrez", + "age": 73, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Wagner-Henderson", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "never", + "category": "a", + "price": 927.44, + "stock_quantity": 817 + }, + "customer": { + "name": "Amanda Jenkins", + "age": 73, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Kelley PLC", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "discussion", + "category": "hour", + "price": 74.83, + "stock_quantity": 565 + }, + "customer": { + "name": "Daniel Ibarra", + "age": 64, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Hudson PLC", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "eight", + "category": "anything", + "price": 517.68, + "stock_quantity": 805 + }, + "customer": { + "name": "Stephanie Davidson", + "age": 45, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Walker, Reyes and Curtis", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "compare", + "category": "character", + "price": 921.21, + "stock_quantity": 223 + }, + "customer": { + "name": "Emily Gonzalez", + "age": 55, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Key, Chapman and Clark", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "keep", + "category": "remain", + "price": 809.66, + "stock_quantity": 640 + }, + "customer": { + "name": "Linda Marks", + "age": 62, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harvey, Gray and Wood'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harvey, Gray and Wood", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "offer", + "category": "source", + "price": 34.54, + "stock_quantity": 920 + }, + "customer": { + "name": "Eric Alexander", + "age": 58, + "country": "Denmark" + } + }, + { + "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'", + "company": { + "name": "Hoffman, Odonnell and Gutierrez", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "away", + "category": "environment", + "price": 432.95, + "stock_quantity": 311 + }, + "customer": { + "name": "Abigail Liu", + "age": 76, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Richardson, Gonzalez and Burke", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "specific", + "category": "those", + "price": 760.49, + "stock_quantity": 28 + }, + "customer": { + "name": "Carol Nelson", + "age": 34, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Crawford, Morrison and Pope", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "yet", + "category": "miss", + "price": 170.87, + "stock_quantity": 498 + }, + "customer": { + "name": "Ray Gonzales", + "age": 68, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Acosta-Maddox'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Acosta-Maddox", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "kid", + "category": "strategy", + "price": 684.37, + "stock_quantity": 679 + }, + "customer": { + "name": "Dana Rivera", + "age": 33, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "policy", + "category": "student", + "price": 52.2, + "stock_quantity": 489 + }, + "customer": { + "name": "Darin Valentine", + "age": 79, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Crawford-Smith", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "attention", + "category": "amount", + "price": 89.07, + "stock_quantity": 826 + }, + "customer": { + "name": "Rodney Rhodes", + "age": 21, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Clay Inc", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "force", + "category": "left", + "price": 796.57, + "stock_quantity": 963 + }, + "customer": { + "name": "David Erickson", + "age": 20, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Ramirez Ltd", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "nation", + "category": "two", + "price": 361.92, + "stock_quantity": 297 + }, + "customer": { + "name": "Lori Williams", + "age": 43, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Cross, Meadows and Solomon", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "Mrs", + "category": "raise", + "price": 147.75, + "stock_quantity": 613 + }, + "customer": { + "name": "Cheryl Mayer", + "age": 64, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Taylor, Harris and Peterson", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "positive", + "category": "should", + "price": 728.4, + "stock_quantity": 436 + }, + "customer": { + "name": "Amber Norris", + "age": 39, + "country": "Yemen" + } + }, + { + "natural_query": "List all customers and their total order value for Porter and Sons.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Porter and Sons' GROUP BY c.customer_id", + "company": { + "name": "Porter and Sons", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "thousand", + "category": "song", + "price": 860.24, + "stock_quantity": 337 + }, + "customer": { + "name": "Catherine Burns", + "age": 29, + "country": "Latvia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gutierrez-Porter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gutierrez-Porter", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "peace", + "category": "form", + "price": 669.75, + "stock_quantity": 580 + }, + "customer": { + "name": "Christopher Brooks", + "age": 26, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Green-Navarro", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "among", + "category": "notice", + "price": 809.9, + "stock_quantity": 859 + }, + "customer": { + "name": "Nathan Meyer", + "age": 70, + "country": "Nigeria" + } + }, + { + "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'", + "company": { + "name": "Bell, Smith and Beck", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "that", + "category": "before", + "price": 611.97, + "stock_quantity": 373 + }, + "customer": { + "name": "Anthony Perkins", + "age": 25, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Woodard-Owens", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "wide", + "category": "environmental", + "price": 190.51, + "stock_quantity": 318 + }, + "customer": { + "name": "Brian Wallace", + "age": 64, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Arnold-Henry", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "each", + "category": "bit", + "price": 430.61, + "stock_quantity": 826 + }, + "customer": { + "name": "Victoria Ho", + "age": 45, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Cruz, Jones and Stanley", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "industry", + "category": "product", + "price": 676.98, + "stock_quantity": 11 + }, + "customer": { + "name": "Mr. David Kennedy PhD", + "age": 48, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Taylor LLC", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "near", + "category": "international", + "price": 349.35, + "stock_quantity": 495 + }, + "customer": { + "name": "Isaiah Mcdonald", + "age": 26, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Whitaker Inc", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "father", + "category": "cold", + "price": 379.75, + "stock_quantity": 144 + }, + "customer": { + "name": "Mrs. Lauren Hernandez", + "age": 42, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Wilson, Gardner and Ramos", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "show", + "category": "section", + "price": 55.25, + "stock_quantity": 758 + }, + "customer": { + "name": "Arthur Davis", + "age": 30, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Lyons-Kelly", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "point", + "category": "decide", + "price": 23.43, + "stock_quantity": 458 + }, + "customer": { + "name": "Mrs. Sharon Cole", + "age": 58, + "country": "Senegal" + } + }, + { + "natural_query": "What are the top 3 products by sales for Coleman-Baker this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Coleman-Baker' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3", + "company": { + "name": "Coleman-Baker", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "control", + "category": "fast", + "price": 958.53, + "stock_quantity": 614 + }, + "customer": { + "name": "Brittany Zimmerman", + "age": 63, + "country": "Anguilla" + } + }, + { + "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'", + "company": { + "name": "Berger PLC", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "shoulder", + "category": "back", + "price": 15.0, + "stock_quantity": 385 + }, + "customer": { + "name": "Kyle Reyes", + "age": 40, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Hunt Inc", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "gas", + "category": "current", + "price": 385.32, + "stock_quantity": 492 + }, + "customer": { + "name": "William Sanchez", + "age": 31, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Buckley, Johnson and Davidson", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "easy", + "category": "rock", + "price": 236.17, + "stock_quantity": 44 + }, + "customer": { + "name": "Jennifer Tran", + "age": 38, + "country": "Saudi Arabia" + } + }, + { + "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'", + "company": { + "name": "Johnson Group", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "interview", + "category": "kind", + "price": 492.5, + "stock_quantity": 514 + }, + "customer": { + "name": "Jenna Smith", + "age": 64, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Nelson and Sons", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "fight", + "category": "begin", + "price": 364.35, + "stock_quantity": 928 + }, + "customer": { + "name": "Lisa Gill", + "age": 57, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Dickson-Duffy", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "professor", + "category": "story", + "price": 876.74, + "stock_quantity": 40 + }, + "customer": { + "name": "Amanda Johnson", + "age": 67, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Jones-Larsen", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "ago", + "category": "card", + "price": 982.25, + "stock_quantity": 278 + }, + "customer": { + "name": "Alexander Long", + "age": 35, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Blackwell-Williamson", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "push", + "category": "professor", + "price": 992.6, + "stock_quantity": 383 + }, + "customer": { + "name": "Connie Garza", + "age": 65, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Hoffman, Chavez and Turner", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "next", + "category": "seem", + "price": 449.78, + "stock_quantity": 220 + }, + "customer": { + "name": "Mason Anderson", + "age": 28, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Mccoy and Sons", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "ahead", + "category": "present", + "price": 594.94, + "stock_quantity": 495 + }, + "customer": { + "name": "Jamie White", + "age": 65, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Parker-Miller", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "seat", + "category": "organization", + "price": 903.05, + "stock_quantity": 47 + }, + "customer": { + "name": "Melinda Russell", + "age": 42, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Thomas, Maldonado and Case", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "visit", + "category": "force", + "price": 602.58, + "stock_quantity": 591 + }, + "customer": { + "name": "Daniel Hinton", + "age": 35, + "country": "Rwanda" + } + }, + { + "natural_query": "Show me all products in the red category with a price over $597.97.", + "sql_query": "SELECT * FROM products WHERE category = 'red' AND price > 597.97", + "company": { + "name": "Orr Inc", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "hospital", + "category": "red", + "price": 597.97, + "stock_quantity": 12 + }, + "customer": { + "name": "Lisa Clayton", + "age": 27, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Higgins, Lane and Green", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "under", + "category": "from", + "price": 768.71, + "stock_quantity": 916 + }, + "customer": { + "name": "Steven Peterson", + "age": 40, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Strickland and Sons", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "of", + "category": "night", + "price": 549.65, + "stock_quantity": 490 + }, + "customer": { + "name": "Cynthia Lewis", + "age": 51, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Villarreal-Turner", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "strategy", + "category": "teach", + "price": 129.14, + "stock_quantity": 908 + }, + "customer": { + "name": "Lisa Martin", + "age": 26, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Anderson and Sons", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "throw", + "category": "will", + "price": 830.82, + "stock_quantity": 574 + }, + "customer": { + "name": "John Wilcox", + "age": 30, + "country": "Tajikistan" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Taylor-Young for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor-Young'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor-Young", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "rest", + "category": "safe", + "price": 791.91, + "stock_quantity": 165 + }, + "customer": { + "name": "Brittany Beck", + "age": 19, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Phillips-Sandoval", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "score", + "category": "executive", + "price": 547.21, + "stock_quantity": 452 + }, + "customer": { + "name": "Michael Cunningham", + "age": 37, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Elliott, Aguilar and Arroyo", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "against", + "category": "understand", + "price": 78.32, + "stock_quantity": 268 + }, + "customer": { + "name": "Todd Palmer", + "age": 70, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Lara-Peck", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "fire", + "category": "impact", + "price": 836.56, + "stock_quantity": 640 + }, + "customer": { + "name": "Maria Martin", + "age": 69, + "country": "Georgia" + } + }, + { + "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'", + "company": { + "name": "Cortez LLC", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "themselves", + "category": "mouth", + "price": 746.99, + "stock_quantity": 793 + }, + "customer": { + "name": "Micheal Mills", + "age": 22, + "country": "Timor-Leste" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Green, Phillips and Collins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Green, Phillips and Collins", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "difficult", + "category": "necessary", + "price": 806.85, + "stock_quantity": 635 + }, + "customer": { + "name": "Colleen Salazar", + "age": 58, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Mercado and Sons", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "type", + "category": "save", + "price": 463.26, + "stock_quantity": 623 + }, + "customer": { + "name": "Matthew Garcia", + "age": 42, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Wood, Gonzales and Hernandez", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "upon", + "category": "improve", + "price": 846.79, + "stock_quantity": 623 + }, + "customer": { + "name": "Victoria Potts", + "age": 29, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Garza Group", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "put", + "category": "study", + "price": 650.85, + "stock_quantity": 322 + }, + "customer": { + "name": "Leslie Thompson", + "age": 73, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Long Inc", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "either", + "category": "reason", + "price": 179.24, + "stock_quantity": 6 + }, + "customer": { + "name": "Samantha French", + "age": 56, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Hopkins-Cochran", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "leg", + "category": "quickly", + "price": 86.35, + "stock_quantity": 380 + }, + "customer": { + "name": "Jessica Coleman", + "age": 34, + "country": "Aruba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sexton-Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sexton-Anderson", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "more", + "category": "event", + "price": 354.16, + "stock_quantity": 363 + }, + "customer": { + "name": "Jeremy Gomez", + "age": 60, + "country": "Oman" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Payne, Crawford and Simon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Payne, Crawford and Simon", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "language", + "category": "peace", + "price": 444.34, + "stock_quantity": 249 + }, + "customer": { + "name": "Kara Hall", + "age": 21, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Smith-Navarro", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "make", + "category": "commercial", + "price": 714.64, + "stock_quantity": 522 + }, + "customer": { + "name": "Christopher Ellis", + "age": 55, + "country": "Mauritania" + } + }, + { + "natural_query": "What is the total profit for each supplier in Gray and Sons?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gray and Sons' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Gray and Sons", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "PM", + "category": "money", + "price": 137.38, + "stock_quantity": 761 + }, + "customer": { + "name": "Sherri Jones", + "age": 37, + "country": "French Polynesia" + } + }, + { + "natural_query": "What is the maximum price of all products for Berry, Young and Stewart?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Berry, Young and Stewart'", + "company": { + "name": "Berry, Young and Stewart", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "foot", + "category": "why", + "price": 106.09, + "stock_quantity": 611 + }, + "customer": { + "name": "Carla Whitney", + "age": 35, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Marshall, Montoya and Smith", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "less", + "category": "job", + "price": 814.07, + "stock_quantity": 127 + }, + "customer": { + "name": "Kathy Stephenson", + "age": 31, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Haley PLC", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "place", + "category": "leave", + "price": 729.57, + "stock_quantity": 184 + }, + "customer": { + "name": "Melissa Ward", + "age": 77, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Miles-Jefferson", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "source", + "category": "whom", + "price": 728.09, + "stock_quantity": 926 + }, + "customer": { + "name": "Matthew Sullivan", + "age": 34, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Holt-Patterson", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "attorney", + "category": "society", + "price": 868.39, + "stock_quantity": 849 + }, + "customer": { + "name": "Laura Martin", + "age": 54, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Steele-Rose", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "deep", + "category": "since", + "price": 470.68, + "stock_quantity": 760 + }, + "customer": { + "name": "James White", + "age": 56, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Oconnell, Vasquez and Miller", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "behind", + "category": "yard", + "price": 566.3, + "stock_quantity": 986 + }, + "customer": { + "name": "Stacy Krause", + "age": 37, + "country": "Zambia" + } + }, + { + "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'", + "company": { + "name": "Peterson-Jackson", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "beat", + "category": "at", + "price": 663.87, + "stock_quantity": 578 + }, + "customer": { + "name": "Elizabeth Mcdonald", + "age": 70, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Stephenson, Joseph and Burgess", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "whether", + "category": "what", + "price": 302.92, + "stock_quantity": 116 + }, + "customer": { + "name": "Monique Vargas", + "age": 55, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Hodge PLC", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "over", + "category": "community", + "price": 969.06, + "stock_quantity": 331 + }, + "customer": { + "name": "Christina Richard", + "age": 79, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller-Bowman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller-Bowman", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "expert", + "category": "us", + "price": 393.98, + "stock_quantity": 863 + }, + "customer": { + "name": "Patrick Allen", + "age": 75, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Best and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Best and Sons", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "some", + "category": "site", + "price": 442.66, + "stock_quantity": 178 + }, + "customer": { + "name": "Michelle Davis", + "age": 45, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Johnson-Nguyen", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "method", + "category": "begin", + "price": 969.94, + "stock_quantity": 271 + }, + "customer": { + "name": "Brian Robertson", + "age": 66, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Hernandez, Gamble and Sims", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "car", + "category": "big", + "price": 174.67, + "stock_quantity": 957 + }, + "customer": { + "name": "Thomas Marshall", + "age": 76, + "country": "Puerto Rico" + } + }, + { + "natural_query": "What are the top 5 products by sales for Dennis, Fuentes and Leon this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Dennis, Fuentes and Leon' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5", + "company": { + "name": "Dennis, Fuentes and Leon", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "yeah", + "category": "north", + "price": 599.36, + "stock_quantity": 737 + }, + "customer": { + "name": "Julie Green", + "age": 72, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Ford Ltd", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "political", + "category": "act", + "price": 324.71, + "stock_quantity": 746 + }, + "customer": { + "name": "Veronica Brown", + "age": 44, + "country": "Congo" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Hogan-Chang for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hogan-Chang'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hogan-Chang", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "collection", + "category": "several", + "price": 792.17, + "stock_quantity": 13 + }, + "customer": { + "name": "Gerald French", + "age": 65, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Ward-Daugherty", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "claim", + "category": "thank", + "price": 261.95, + "stock_quantity": 185 + }, + "customer": { + "name": "David Waters", + "age": 26, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Lyons-Rowe", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "ready", + "category": "heart", + "price": 215.98, + "stock_quantity": 706 + }, + "customer": { + "name": "Olivia Sanchez", + "age": 46, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Oconnor Inc", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "anything", + "category": "art", + "price": 305.83, + "stock_quantity": 81 + }, + "customer": { + "name": "Rebecca Bridges", + "age": 50, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Galloway, Stewart and Walsh", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "well", + "category": "short", + "price": 571.19, + "stock_quantity": 36 + }, + "customer": { + "name": "Megan Pittman", + "age": 78, + "country": "Saudi Arabia" + } + }, + { + "natural_query": "List all products of Young, Zimmerman and Johnson ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Young, Zimmerman and Johnson' ORDER BY stock_quantity ASC", + "company": { + "name": "Young, Zimmerman and Johnson", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "action", + "category": "pull", + "price": 454.06, + "stock_quantity": 157 + }, + "customer": { + "name": "Kathleen Porter", + "age": 49, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Smith, Boyd and Hill", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "market", + "category": "mind", + "price": 94.44, + "stock_quantity": 352 + }, + "customer": { + "name": "Sandra Collins", + "age": 25, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Mendoza Group", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "century", + "category": "national", + "price": 334.14, + "stock_quantity": 504 + }, + "customer": { + "name": "Walter Dawson", + "age": 36, + "country": "Marshall Islands" + } + }, + { + "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'", + "company": { + "name": "Farmer PLC", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "blue", + "category": "car", + "price": 686.29, + "stock_quantity": 191 + }, + "customer": { + "name": "Anna Murray", + "age": 26, + "country": "Belarus" + } + }, + { + "natural_query": "What is the average price of all products for Sullivan-Vaughn?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Sullivan-Vaughn'", + "company": { + "name": "Sullivan-Vaughn", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "remain", + "category": "wear", + "price": 760.88, + "stock_quantity": 503 + }, + "customer": { + "name": "Deborah Campbell", + "age": 34, + "country": "Guadeloupe" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kelly-Vincent'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kelly-Vincent", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "director", + "category": "use", + "price": 543.07, + "stock_quantity": 107 + }, + "customer": { + "name": "Kevin Perez", + "age": 55, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Smith, Hammond and Harrington", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "vote", + "category": "suffer", + "price": 380.51, + "stock_quantity": 811 + }, + "customer": { + "name": "Matthew Burton", + "age": 23, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Cervantes-Williams", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "despite", + "category": "all", + "price": 470.03, + "stock_quantity": 16 + }, + "customer": { + "name": "Bruce Richards", + "age": 48, + "country": "United Arab Emirates" + } + }, + { + "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'", + "company": { + "name": "Shepard, Lopez and Contreras", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "bag", + "category": "reality", + "price": 295.06, + "stock_quantity": 985 + }, + "customer": { + "name": "Stephen Morgan", + "age": 70, + "country": "San Marino" + } + }, + { + "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'", + "company": { + "name": "Thompson-Jones", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "item", + "category": "you", + "price": 17.4, + "stock_quantity": 82 + }, + "customer": { + "name": "Karen Rogers", + "age": 45, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Hall, Brown and Morris", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "true", + "category": "commercial", + "price": 430.75, + "stock_quantity": 763 + }, + "customer": { + "name": "Carrie Oliver", + "age": 36, + "country": "Cote d'Ivoire" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez Ltd", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "few", + "category": "matter", + "price": 242.41, + "stock_quantity": 865 + }, + "customer": { + "name": "Samantha Brown", + "age": 39, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "White Inc", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "save", + "category": "by", + "price": 740.0, + "stock_quantity": 755 + }, + "customer": { + "name": "Abigail Zavala", + "age": 80, + "country": "Anguilla" + } + }, + { + "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'", + "company": { + "name": "Hebert Inc", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "character", + "category": "news", + "price": 925.83, + "stock_quantity": 30 + }, + "customer": { + "name": "Heidi Jones", + "age": 38, + "country": "Holy See (Vatican City State)" + } + }, + { + "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", + "company": { + "name": "Perez-Castillo", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "whole", + "category": "cover", + "price": 609.24, + "stock_quantity": 812 + }, + "customer": { + "name": "Jordan Terrell", + "age": 29, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Knight Group", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "power", + "category": "win", + "price": 239.61, + "stock_quantity": 220 + }, + "customer": { + "name": "Whitney Barker", + "age": 49, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Mendoza PLC", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "follow", + "category": "quality", + "price": 220.92, + "stock_quantity": 972 + }, + "customer": { + "name": "Jean Alvarez DDS", + "age": 79, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Henry-Reese'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Henry-Reese", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "speech", + "category": "it", + "price": 739.74, + "stock_quantity": 741 + }, + "customer": { + "name": "Lauren Barrett", + "age": 51, + "country": "Italy" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sosa Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sosa Inc", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "media", + "category": "itself", + "price": 950.16, + "stock_quantity": 529 + }, + "customer": { + "name": "Marisa Nguyen", + "age": 45, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Hanson-Lopez", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "surface", + "category": "voice", + "price": 465.28, + "stock_quantity": 12 + }, + "customer": { + "name": "John Nelson", + "age": 28, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Ford, Keith and Sanchez", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "concern", + "category": "pressure", + "price": 809.34, + "stock_quantity": 596 + }, + "customer": { + "name": "Casey Johnson", + "age": 49, + "country": "San Marino" + } + }, + { + "natural_query": "List all customers and their total order value for Figueroa LLC.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Figueroa LLC' GROUP BY c.customer_id", + "company": { + "name": "Figueroa LLC", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "white", + "category": "decide", + "price": 358.3, + "stock_quantity": 654 + }, + "customer": { + "name": "Jessica Gardner", + "age": 79, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Vaughan, Becker and Williams", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "west", + "category": "understand", + "price": 150.92, + "stock_quantity": 208 + }, + "customer": { + "name": "Elizabeth Wright", + "age": 23, + "country": "Uruguay" + } + }, + { + "natural_query": "How many orders were placed for Roberts LLC between 2023-12-06 and 2024-05-12?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Roberts LLC' AND order_date BETWEEN '2023-12-06' AND '2024-05-12'", + "company": { + "name": "Roberts LLC", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "push", + "category": "list", + "price": 886.82, + "stock_quantity": 563 + }, + "customer": { + "name": "Adam Mitchell MD", + "age": 33, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Thornton-Martin", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "accept", + "category": "player", + "price": 122.76, + "stock_quantity": 767 + }, + "customer": { + "name": "Robert Baird", + "age": 42, + "country": "Venezuela" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ramirez-Swanson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ramirez-Swanson", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "front", + "category": "top", + "price": 278.34, + "stock_quantity": 900 + }, + "customer": { + "name": "Grant Robinson", + "age": 45, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Hill, Estrada and Conley", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "action", + "category": "radio", + "price": 926.8, + "stock_quantity": 514 + }, + "customer": { + "name": "Denise Pope", + "age": 18, + "country": "South Africa" + } + }, + { + "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", + "company": { + "name": "Harris and Sons", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "state", + "category": "decision", + "price": 542.37, + "stock_quantity": 774 + }, + "customer": { + "name": "Crystal Smith", + "age": 18, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Thompson-Wright", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "three", + "category": "kitchen", + "price": 733.86, + "stock_quantity": 684 + }, + "customer": { + "name": "James Vazquez", + "age": 67, + "country": "Hungary" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Torres-Rodriguez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Torres-Rodriguez", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "live", + "category": "generation", + "price": 342.69, + "stock_quantity": 390 + }, + "customer": { + "name": "Gregory Galloway", + "age": 59, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Simon LLC", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "side", + "category": "reveal", + "price": 539.14, + "stock_quantity": 946 + }, + "customer": { + "name": "Patricia Kidd", + "age": 74, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Nguyen, Graves and Mcclain", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "these", + "category": "democratic", + "price": 489.8, + "stock_quantity": 912 + }, + "customer": { + "name": "Lisa Williams", + "age": 50, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Strickland-Moreno", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "teach", + "category": "organization", + "price": 205.61, + "stock_quantity": 802 + }, + "customer": { + "name": "Edward Tran", + "age": 39, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Ray, Davis and Pham", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "country", + "category": "tree", + "price": 856.57, + "stock_quantity": 131 + }, + "customer": { + "name": "Dana Owens", + "age": 38, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Rangel-Pham", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "consumer", + "category": "where", + "price": 583.07, + "stock_quantity": 489 + }, + "customer": { + "name": "Derrick Rich", + "age": 60, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Wilcox-Sullivan", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "guy", + "category": "art", + "price": 717.45, + "stock_quantity": 227 + }, + "customer": { + "name": "Scott Barrett", + "age": 76, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Doyle Inc", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "approach", + "category": "fire", + "price": 216.44, + "stock_quantity": 538 + }, + "customer": { + "name": "Wendy Houston", + "age": 47, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Saunders-Reid", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "treatment", + "category": "even", + "price": 421.93, + "stock_quantity": 766 + }, + "customer": { + "name": "Charles Potter", + "age": 31, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Hines Group", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "southern", + "category": "student", + "price": 282.02, + "stock_quantity": 670 + }, + "customer": { + "name": "Carrie Hansen", + "age": 55, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Johnson-Shea", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "democratic", + "category": "know", + "price": 209.06, + "stock_quantity": 903 + }, + "customer": { + "name": "Tricia Davis", + "age": 28, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Franco-Harrell", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "make", + "category": "because", + "price": 212.59, + "stock_quantity": 388 + }, + "customer": { + "name": "Victoria Stevens", + "age": 31, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Miller-Green", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "company", + "category": "when", + "price": 111.86, + "stock_quantity": 198 + }, + "customer": { + "name": "Amber Hughes", + "age": 39, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Brown LLC", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "address", + "category": "response", + "price": 224.19, + "stock_quantity": 592 + }, + "customer": { + "name": "Elizabeth Joseph", + "age": 77, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Walters Group", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "individual", + "category": "certain", + "price": 340.44, + "stock_quantity": 543 + }, + "customer": { + "name": "Elizabeth Simmons", + "age": 59, + "country": "Dominica" + } + }, + { + "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'", + "company": { + "name": "Moore, Anderson and Brown", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "outside", + "category": "trade", + "price": 890.38, + "stock_quantity": 516 + }, + "customer": { + "name": "Jennifer Hester", + "age": 24, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Phelps, Brown and Hernandez", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "positive", + "category": "late", + "price": 376.53, + "stock_quantity": 227 + }, + "customer": { + "name": "Maria Bauer", + "age": 36, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Bowen, Hardy and Dixon", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "recently", + "category": "opportunity", + "price": 611.17, + "stock_quantity": 914 + }, + "customer": { + "name": "Carly Potts", + "age": 53, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Myers Inc", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "agree", + "category": "people", + "price": 404.83, + "stock_quantity": 330 + }, + "customer": { + "name": "Kevin Larson", + "age": 78, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Rogers Group", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "morning", + "category": "each", + "price": 278.06, + "stock_quantity": 779 + }, + "customer": { + "name": "Jessica Owen", + "age": 43, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Lucas LLC", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "material", + "category": "team", + "price": 170.86, + "stock_quantity": 210 + }, + "customer": { + "name": "Sara Dalton", + "age": 76, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Munoz LLC", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "culture", + "category": "thus", + "price": 776.63, + "stock_quantity": 396 + }, + "customer": { + "name": "Andrea Gay", + "age": 79, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Mckenzie-Mccarthy", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "others", + "category": "personal", + "price": 857.24, + "stock_quantity": 3 + }, + "customer": { + "name": "Erik Stewart", + "age": 58, + "country": "Denmark" + } + }, + { + "natural_query": "How many orders were placed for Poole LLC between 2024-07-27 and 2024-08-18?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Poole LLC' AND order_date BETWEEN '2024-07-27' AND '2024-08-18'", + "company": { + "name": "Poole LLC", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "rate", + "category": "fill", + "price": 567.14, + "stock_quantity": 103 + }, + "customer": { + "name": "Joseph Newman", + "age": 73, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Burke and Sons", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "head", + "category": "task", + "price": 570.1, + "stock_quantity": 908 + }, + "customer": { + "name": "Dr. David Hall", + "age": 72, + "country": "Dominican Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shelton, Kelley and Alexander'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shelton, Kelley and Alexander", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "send", + "category": "trip", + "price": 544.76, + "stock_quantity": 624 + }, + "customer": { + "name": "Troy Crosby", + "age": 76, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Collins and Sons", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "firm", + "category": "Republican", + "price": 365.25, + "stock_quantity": 437 + }, + "customer": { + "name": "Deborah Figueroa", + "age": 62, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Rivas-Adkins", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "alone", + "category": "budget", + "price": 267.87, + "stock_quantity": 497 + }, + "customer": { + "name": "Courtney Edwards", + "age": 34, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Campbell-Raymond", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "national", + "category": "return", + "price": 823.14, + "stock_quantity": 103 + }, + "customer": { + "name": "William Christensen", + "age": 41, + "country": "Djibouti" + } + }, + { + "natural_query": "What is the maximum price of all products for Jones Group?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Jones Group'", + "company": { + "name": "Jones Group", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "society", + "category": "prepare", + "price": 368.78, + "stock_quantity": 488 + }, + "customer": { + "name": "Melissa Martinez", + "age": 52, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Woodard-Henson", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "kitchen", + "category": "tough", + "price": 333.52, + "stock_quantity": 546 + }, + "customer": { + "name": "Jennifer Garcia", + "age": 33, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Barton-Clark", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "staff", + "category": "specific", + "price": 955.48, + "stock_quantity": 910 + }, + "customer": { + "name": "Lisa Carpenter", + "age": 29, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "Mr", + "category": "high", + "price": 281.53, + "stock_quantity": 258 + }, + "customer": { + "name": "Dr. Natalie Anderson", + "age": 21, + "country": "Estonia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Barron, Lopez and Mills for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Barron, Lopez and Mills'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Barron, Lopez and Mills", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "example", + "category": "trial", + "price": 647.08, + "stock_quantity": 527 + }, + "customer": { + "name": "Allison Santos", + "age": 40, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Weaver, Ferguson and Davis", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "reality", + "category": "section", + "price": 103.83, + "stock_quantity": 76 + }, + "customer": { + "name": "Ricardo Simpson", + "age": 59, + "country": "Cook Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harper-Gomez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harper-Gomez", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "law", + "category": "point", + "price": 852.38, + "stock_quantity": 942 + }, + "customer": { + "name": "Lisa Andrews", + "age": 58, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Cook Group", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "civil", + "category": "all", + "price": 196.95, + "stock_quantity": 831 + }, + "customer": { + "name": "Chelsea Whitaker", + "age": 75, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Wu-Valdez", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "baby", + "category": "safe", + "price": 966.59, + "stock_quantity": 250 + }, + "customer": { + "name": "Richard Taylor", + "age": 48, + "country": "Albania" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Parker, Rodriguez and Lane'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Parker, Rodriguez and Lane", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "responsibility", + "category": "laugh", + "price": 822.8, + "stock_quantity": 423 + }, + "customer": { + "name": "Benjamin Terrell", + "age": 22, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Santiago", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "wear", + "category": "simple", + "price": 200.24, + "stock_quantity": 994 + }, + "customer": { + "name": "Crystal Duarte", + "age": 70, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Gibson-Reed", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "population", + "category": "image", + "price": 895.24, + "stock_quantity": 544 + }, + "customer": { + "name": "James Sosa", + "age": 47, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Schmidt and Sons", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "science", + "category": "participant", + "price": 272.16, + "stock_quantity": 646 + }, + "customer": { + "name": "Judith Wilson MD", + "age": 46, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Simmons-Baker", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "such", + "category": "hear", + "price": 365.29, + "stock_quantity": 574 + }, + "customer": { + "name": "Joshua Lawson", + "age": 69, + "country": "North Macedonia" + } + }, + { + "natural_query": "List all customers and their total order value for Brennan Group.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Brennan Group' GROUP BY c.customer_id", + "company": { + "name": "Brennan Group", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "former", + "category": "local", + "price": 610.6, + "stock_quantity": 967 + }, + "customer": { + "name": "Emily Bryant", + "age": 44, + "country": "Guyana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Krause-Lee'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Krause-Lee", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "technology", + "category": "season", + "price": 171.28, + "stock_quantity": 240 + }, + "customer": { + "name": "Michelle Sweeney", + "age": 50, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Briggs-Hendricks", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "describe", + "category": "interest", + "price": 277.38, + "stock_quantity": 444 + }, + "customer": { + "name": "Courtney Miller", + "age": 76, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Morris PLC", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "purpose", + "category": "process", + "price": 197.95, + "stock_quantity": 799 + }, + "customer": { + "name": "Mark Campbell", + "age": 60, + "country": "French Guiana" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Santos-Webster for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Santos-Webster'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Santos-Webster", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "can", + "category": "whether", + "price": 107.18, + "stock_quantity": 260 + }, + "customer": { + "name": "Joseph Nelson", + "age": 68, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "West-Sullivan", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "bank", + "category": "soldier", + "price": 434.93, + "stock_quantity": 660 + }, + "customer": { + "name": "Deanna Atkins DVM", + "age": 36, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Adams-Smith", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "cold", + "category": "despite", + "price": 826.73, + "stock_quantity": 887 + }, + "customer": { + "name": "Don Mendoza", + "age": 23, + "country": "Djibouti" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Bailey Inc for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bailey Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bailey Inc", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "attack", + "category": "significant", + "price": 485.49, + "stock_quantity": 314 + }, + "customer": { + "name": "Eric Rodriguez", + "age": 74, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Vincent, Anderson and Brown", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "race", + "category": "never", + "price": 425.27, + "stock_quantity": 670 + }, + "customer": { + "name": "John Waller", + "age": 56, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Snow, Ray and Stanley", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "bit", + "category": "likely", + "price": 174.72, + "stock_quantity": 145 + }, + "customer": { + "name": "Jennifer Tate", + "age": 32, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Weaver-Perkins", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "must", + "category": "guy", + "price": 780.64, + "stock_quantity": 218 + }, + "customer": { + "name": "Sarah Collins", + "age": 50, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Garrett-Cooper", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "human", + "category": "guy", + "price": 348.54, + "stock_quantity": 753 + }, + "customer": { + "name": "Tanya Johnson", + "age": 33, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Carey PLC", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "attorney", + "category": "feeling", + "price": 428.46, + "stock_quantity": 399 + }, + "customer": { + "name": "Alex Nichols", + "age": 57, + "country": "Nauru" + } + }, + { + "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'", + "company": { + "name": "Ramsey-Wang", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "claim", + "category": "Mr", + "price": 630.83, + "stock_quantity": 985 + }, + "customer": { + "name": "Kenneth Day", + "age": 67, + "country": "Jordan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cooper, Jones and Price'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cooper, Jones and Price", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "reality", + "category": "will", + "price": 358.24, + "stock_quantity": 555 + }, + "customer": { + "name": "Amy Potter", + "age": 66, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Wagner, Brown and Williams", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "become", + "category": "next", + "price": 490.28, + "stock_quantity": 707 + }, + "customer": { + "name": "Steven Jones", + "age": 23, + "country": "Nigeria" + } + }, + { + "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'", + "company": { + "name": "House-Olson", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "sometimes", + "category": "policy", + "price": 100.57, + "stock_quantity": 579 + }, + "customer": { + "name": "Debra Jones", + "age": 31, + "country": "Guam" + } + }, + { + "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'", + "company": { + "name": "Wilson, Owens and Herring", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "a", + "category": "center", + "price": 388.95, + "stock_quantity": 951 + }, + "customer": { + "name": "Kevin Stevens", + "age": 69, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Vazquez Inc", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "name", + "category": "claim", + "price": 572.75, + "stock_quantity": 508 + }, + "customer": { + "name": "Kevin Franklin", + "age": 36, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Adkins and Rowe", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "population", + "category": "wait", + "price": 30.3, + "stock_quantity": 400 + }, + "customer": { + "name": "Leslie Barnes", + "age": 77, + "country": "India" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Bradshaw-Richard for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bradshaw-Richard'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bradshaw-Richard", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "consider", + "category": "even", + "price": 338.94, + "stock_quantity": 951 + }, + "customer": { + "name": "Melissa Clark", + "age": 73, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "Knight, Rios and Johnson", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "else", + "category": "whole", + "price": 893.58, + "stock_quantity": 394 + }, + "customer": { + "name": "Laura Leonard", + "age": 62, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Brown and Sons", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "miss", + "category": "agency", + "price": 401.0, + "stock_quantity": 216 + }, + "customer": { + "name": "Christopher Richards", + "age": 64, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Walker Inc", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "cold", + "category": "activity", + "price": 561.06, + "stock_quantity": 15 + }, + "customer": { + "name": "Ryan Perez", + "age": 40, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Williamson-Robertson", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "ten", + "category": "price", + "price": 225.59, + "stock_quantity": 635 + }, + "customer": { + "name": "Danny Ross", + "age": 32, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Obrien-Bradford", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "thing", + "category": "discussion", + "price": 992.76, + "stock_quantity": 557 + }, + "customer": { + "name": "Yolanda Moore", + "age": 49, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Kirby PLC", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "with", + "category": "rise", + "price": 151.72, + "stock_quantity": 219 + }, + "customer": { + "name": "Alex Payne", + "age": 40, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Mcdonald and Gonzales", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "ten", + "category": "station", + "price": 660.48, + "stock_quantity": 134 + }, + "customer": { + "name": "Susan Bell", + "age": 73, + "country": "Portugal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harvey, Case and Delgado'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harvey, Case and Delgado", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "consider", + "category": "discuss", + "price": 902.19, + "stock_quantity": 572 + }, + "customer": { + "name": "Marcus Price", + "age": 54, + "country": "Greece" + } + }, + { + "natural_query": "Show me all products in the bag category with a price over $13.47.", + "sql_query": "SELECT * FROM products WHERE category = 'bag' AND price > 13.47", + "company": { + "name": "Graham LLC", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "remember", + "category": "bag", + "price": 13.47, + "stock_quantity": 939 + }, + "customer": { + "name": "Arthur Floyd", + "age": 28, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "White Ltd", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "state", + "category": "section", + "price": 572.98, + "stock_quantity": 109 + }, + "customer": { + "name": "Roger Webster", + "age": 29, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Daniels, Patrick and Robinson", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "technology", + "category": "word", + "price": 287.46, + "stock_quantity": 970 + }, + "customer": { + "name": "William Hall", + "age": 29, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Perez, Fitzgerald and Ballard", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "whom", + "category": "describe", + "price": 187.81, + "stock_quantity": 703 + }, + "customer": { + "name": "Erin Jones", + "age": 48, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Drake-Wong", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "response", + "category": "assume", + "price": 782.83, + "stock_quantity": 838 + }, + "customer": { + "name": "Nancy Scott", + "age": 72, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Williams, Perez and Peck", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "finally", + "category": "almost", + "price": 151.65, + "stock_quantity": 451 + }, + "customer": { + "name": "Christopher Brown", + "age": 19, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Lynch-Jones", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "final", + "category": "rest", + "price": 309.97, + "stock_quantity": 733 + }, + "customer": { + "name": "Zachary Cruz", + "age": 50, + "country": "San Marino" + } + }, + { + "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'", + "company": { + "name": "Williams, Perry and Fields", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "expert", + "category": "structure", + "price": 635.74, + "stock_quantity": 156 + }, + "customer": { + "name": "Eric Turner DVM", + "age": 22, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Alvarez-Smith", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "reach", + "category": "successful", + "price": 759.37, + "stock_quantity": 314 + }, + "customer": { + "name": "Larry Brown", + "age": 61, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Friedman PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Friedman PLC", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "factor", + "category": "meet", + "price": 187.36, + "stock_quantity": 719 + }, + "customer": { + "name": "Danielle Gordon", + "age": 73, + "country": "Honduras" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown, Foster and Morgan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown, Foster and Morgan", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "alone", + "category": "them", + "price": 130.34, + "stock_quantity": 585 + }, + "customer": { + "name": "Edward Turner", + "age": 59, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Parker, Hoffman and Bridges", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "be", + "category": "could", + "price": 422.05, + "stock_quantity": 921 + }, + "customer": { + "name": "Michael Barrett", + "age": 18, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Clements and Sons", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "system", + "category": "huge", + "price": 762.67, + "stock_quantity": 836 + }, + "customer": { + "name": "Christopher Lopez", + "age": 40, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Herrera and Sons", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "employee", + "category": "benefit", + "price": 177.52, + "stock_quantity": 862 + }, + "customer": { + "name": "David Hutchinson", + "age": 35, + "country": "Philippines" + } + }, + { + "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", + "company": { + "name": "Weiss, Gamble and Martinez", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "reduce", + "category": "sense", + "price": 66.94, + "stock_quantity": 853 + }, + "customer": { + "name": "Gabriela Robles", + "age": 29, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Thomas Inc", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "road", + "category": "specific", + "price": 595.41, + "stock_quantity": 74 + }, + "customer": { + "name": "Michelle Stokes", + "age": 74, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Mendoza, Randall and Boyer", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "federal", + "category": "establish", + "price": 162.86, + "stock_quantity": 525 + }, + "customer": { + "name": "Shannon Kelley", + "age": 74, + "country": "Morocco" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cox-Long'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cox-Long", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "customer", + "category": "wrong", + "price": 740.59, + "stock_quantity": 590 + }, + "customer": { + "name": "Wendy Brown", + "age": 54, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Becker, Riggs and Johnson", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "already", + "category": "family", + "price": 353.3, + "stock_quantity": 331 + }, + "customer": { + "name": "Mrs. Kathryn Richard", + "age": 73, + "country": "Sierra Leone" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Vazquez Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Vazquez Inc", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "card", + "category": "perform", + "price": 806.41, + "stock_quantity": 127 + }, + "customer": { + "name": "Amy Rose", + "age": 37, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Patterson, Webb and Martinez", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "again", + "category": "official", + "price": 434.84, + "stock_quantity": 672 + }, + "customer": { + "name": "Ronald Hutchinson", + "age": 60, + "country": "Belize" + } + }, + { + "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'", + "company": { + "name": "Harrington-Huber", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "so", + "category": "eat", + "price": 919.52, + "stock_quantity": 615 + }, + "customer": { + "name": "Nicole Garcia", + "age": 38, + "country": "Azerbaijan" + } + }, + { + "natural_query": "List all products of Fox Inc ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Fox Inc' ORDER BY price DESC", + "company": { + "name": "Fox Inc", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "defense", + "category": "dream", + "price": 883.9, + "stock_quantity": 939 + }, + "customer": { + "name": "Tanya Armstrong", + "age": 76, + "country": "Finland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jackson Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jackson Ltd", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "actually", + "category": "some", + "price": 540.63, + "stock_quantity": 638 + }, + "customer": { + "name": "Tyler Guerrero", + "age": 51, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Ramirez, Horn and Johnson", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "meet", + "category": "issue", + "price": 693.71, + "stock_quantity": 268 + }, + "customer": { + "name": "Dylan Lester", + "age": 66, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Patterson-Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Patterson-Smith", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "return", + "category": "physical", + "price": 228.13, + "stock_quantity": 69 + }, + "customer": { + "name": "John Nichols", + "age": 57, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "opportunity", + "category": "pick", + "price": 463.88, + "stock_quantity": 780 + }, + "customer": { + "name": "Diana Fox DVM", + "age": 49, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Smith, Allison and Johnson", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "idea", + "category": "ground", + "price": 105.37, + "stock_quantity": 988 + }, + "customer": { + "name": "Megan Holmes", + "age": 80, + "country": "Cyprus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Walsh Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Walsh Inc", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "fish", + "category": "lot", + "price": 18.72, + "stock_quantity": 603 + }, + "customer": { + "name": "Elizabeth Floyd", + "age": 40, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Marquez LLC", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "look", + "category": "up", + "price": 531.75, + "stock_quantity": 429 + }, + "customer": { + "name": "April Lynn", + "age": 61, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Buckley Group", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "century", + "category": "to", + "price": 179.75, + "stock_quantity": 137 + }, + "customer": { + "name": "Mr. Thomas Cook", + "age": 52, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Johnson Ltd", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "plan", + "category": "trial", + "price": 179.14, + "stock_quantity": 682 + }, + "customer": { + "name": "Ian Rodriguez", + "age": 56, + "country": "Luxembourg" + } + }, + { + "natural_query": "What is the total quantity for each country in Skinner and Sons?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Skinner and Sons' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Skinner and Sons", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "figure", + "category": "environmental", + "price": 465.22, + "stock_quantity": 973 + }, + "customer": { + "name": "Karen Holland", + "age": 43, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Castillo, Beck and Harrison", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "choice", + "category": "campaign", + "price": 702.51, + "stock_quantity": 938 + }, + "customer": { + "name": "Cheyenne Smith", + "age": 39, + "country": "Guinea-Bissau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carlson Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carlson Group", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "worker", + "category": "single", + "price": 365.17, + "stock_quantity": 273 + }, + "customer": { + "name": "Brianna Gross", + "age": 77, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Gutierrez-Jones", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "spend", + "category": "both", + "price": 529.79, + "stock_quantity": 932 + }, + "customer": { + "name": "Christina Herrera", + "age": 23, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Johnson PLC", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "computer", + "category": "cultural", + "price": 240.7, + "stock_quantity": 561 + }, + "customer": { + "name": "Frank Savage", + "age": 52, + "country": "Heard Island and McDonald Islands" + } + }, + { + "natural_query": "What are the top 7 products by customers for Miller, Pennington and Stone this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Miller, Pennington and Stone' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7", + "company": { + "name": "Miller, Pennington and Stone", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "score", + "category": "career", + "price": 555.33, + "stock_quantity": 899 + }, + "customer": { + "name": "Mark Johnson", + "age": 53, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Thomas, Kelley and Obrien", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "fast", + "category": "case", + "price": 940.08, + "stock_quantity": 278 + }, + "customer": { + "name": "Nathan Doyle", + "age": 47, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Watson, Blackwell and Adkins", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "interview", + "category": "family", + "price": 156.61, + "stock_quantity": 784 + }, + "customer": { + "name": "Ashley Buchanan", + "age": 46, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Lopez Group", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "condition", + "category": "ever", + "price": 445.49, + "stock_quantity": 489 + }, + "customer": { + "name": "Lee Johnson", + "age": 42, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Floyd, Dennis and Bishop", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "purpose", + "category": "teacher", + "price": 931.89, + "stock_quantity": 449 + }, + "customer": { + "name": "Connie Tran", + "age": 50, + "country": "Puerto Rico" + } + }, + { + "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'", + "company": { + "name": "Lee, Hebert and Fuller", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "occur", + "category": "artist", + "price": 690.96, + "stock_quantity": 477 + }, + "customer": { + "name": "Laurie Marshall", + "age": 27, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Owens, Castro and Sandoval", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "bring", + "category": "side", + "price": 74.09, + "stock_quantity": 366 + }, + "customer": { + "name": "Lori Mata", + "age": 18, + "country": "Niger" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Garcia and Sons for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia and Sons", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "pay", + "category": "no", + "price": 300.36, + "stock_quantity": 367 + }, + "customer": { + "name": "Manuel Martinez", + "age": 35, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Wright, Craig and Walker", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "amount", + "category": "material", + "price": 643.97, + "stock_quantity": 449 + }, + "customer": { + "name": "Amber Duncan", + "age": 40, + "country": "Oman" + } + }, + { + "natural_query": "List all products of Caldwell Group ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Caldwell Group' ORDER BY stock_quantity DESC", + "company": { + "name": "Caldwell Group", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "age", + "category": "president", + "price": 263.65, + "stock_quantity": 187 + }, + "customer": { + "name": "Michael Campos", + "age": 66, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Miller Group", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "ago", + "category": "to", + "price": 638.69, + "stock_quantity": 662 + }, + "customer": { + "name": "Duane Hamilton", + "age": 75, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "Webster-Lynch", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "age", + "category": "perhaps", + "price": 352.36, + "stock_quantity": 766 + }, + "customer": { + "name": "Jacqueline Valenzuela", + "age": 40, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Johnson and Sons", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "time", + "category": "sell", + "price": 228.11, + "stock_quantity": 31 + }, + "customer": { + "name": "Terry Orr", + "age": 30, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Evans-Blair", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "time", + "category": "close", + "price": 515.85, + "stock_quantity": 643 + }, + "customer": { + "name": "Carolyn Patel", + "age": 60, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Padilla-Anderson", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "stuff", + "category": "nor", + "price": 898.06, + "stock_quantity": 216 + }, + "customer": { + "name": "Nancy Allison", + "age": 46, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Beard Group", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "join", + "category": "north", + "price": 340.23, + "stock_quantity": 779 + }, + "customer": { + "name": "Rachel Smith", + "age": 29, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Watkins-Singleton", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "model", + "category": "production", + "price": 689.01, + "stock_quantity": 595 + }, + "customer": { + "name": "Monica Lewis", + "age": 19, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Jones, White and Wolf", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "car", + "category": "easy", + "price": 925.27, + "stock_quantity": 350 + }, + "customer": { + "name": "Mary Huffman", + "age": 53, + "country": "Somalia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Grant and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Grant and Sons", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "kitchen", + "category": "century", + "price": 573.16, + "stock_quantity": 526 + }, + "customer": { + "name": "Christopher Heath", + "age": 37, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Turner Inc", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "possible", + "category": "respond", + "price": 41.48, + "stock_quantity": 705 + }, + "customer": { + "name": "Victor Cannon", + "age": 66, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Cruz-Lee?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Cruz-Lee' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Cruz-Lee", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "most", + "category": "involve", + "price": 498.08, + "stock_quantity": 625 + }, + "customer": { + "name": "Joseph Mann", + "age": 74, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Cole, Cooper and Rollins", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "firm", + "category": "house", + "price": 679.85, + "stock_quantity": 331 + }, + "customer": { + "name": "Luke Davis", + "age": 76, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Larsen-Krause", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "probably", + "category": "give", + "price": 847.65, + "stock_quantity": 782 + }, + "customer": { + "name": "Tina Quinn", + "age": 67, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Williams-Brown", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "character", + "category": "because", + "price": 722.34, + "stock_quantity": 252 + }, + "customer": { + "name": "Kayla Bauer", + "age": 18, + "country": "Heard Island and McDonald Islands" + } + }, + { + "natural_query": "What is the maximum rating of all products for Moore, Rojas and Moore?", + "sql_query": "SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Moore, Rojas and Moore'", + "company": { + "name": "Moore, Rojas and Moore", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "out", + "category": "four", + "price": 737.97, + "stock_quantity": 315 + }, + "customer": { + "name": "Larry Cisneros", + "age": 51, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Green-Hurley", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "decision", + "category": "friend", + "price": 629.73, + "stock_quantity": 811 + }, + "customer": { + "name": "Jason Gentry", + "age": 32, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Peters, Compton and Spencer", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "once", + "category": "set", + "price": 60.46, + "stock_quantity": 304 + }, + "customer": { + "name": "Christina Gonzales", + "age": 45, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Davis-Sanchez", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "clearly", + "category": "long", + "price": 250.36, + "stock_quantity": 620 + }, + "customer": { + "name": "Jennifer Bryant", + "age": 27, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Higgins, Barrett and Christensen", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "reality", + "category": "painting", + "price": 90.53, + "stock_quantity": 76 + }, + "customer": { + "name": "Mike Bennett", + "age": 76, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Mueller, Jones and Walker", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "air", + "category": "policy", + "price": 867.58, + "stock_quantity": 798 + }, + "customer": { + "name": "Douglas Cline", + "age": 51, + "country": "Turkmenistan" + } + }, + { + "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'", + "company": { + "name": "Hunter, Adams and Gonzalez", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "process", + "category": "including", + "price": 233.76, + "stock_quantity": 231 + }, + "customer": { + "name": "Jordan Gutierrez", + "age": 46, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Murillo and Sons", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "loss", + "category": "rock", + "price": 804.12, + "stock_quantity": 4 + }, + "customer": { + "name": "Bruce Chen", + "age": 70, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Peterson Group", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "training", + "category": "goal", + "price": 409.24, + "stock_quantity": 951 + }, + "customer": { + "name": "Grace Meyers", + "age": 23, + "country": "Azerbaijan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lopez, Nguyen and Brooks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lopez, Nguyen and Brooks", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "eye", + "category": "single", + "price": 294.69, + "stock_quantity": 890 + }, + "customer": { + "name": "Jody Weber", + "age": 36, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Bradley-Johnson", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "environment", + "category": "view", + "price": 794.98, + "stock_quantity": 819 + }, + "customer": { + "name": "Michael Ward", + "age": 34, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Watkins, Lucas and Wilkerson", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "training", + "category": "step", + "price": 351.15, + "stock_quantity": 53 + }, + "customer": { + "name": "Rebecca Mata", + "age": 68, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Ortega-Farmer", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "local", + "category": "population", + "price": 410.1, + "stock_quantity": 595 + }, + "customer": { + "name": "Robert Martin", + "age": 29, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Powell-Olson", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "ever", + "category": "somebody", + "price": 925.24, + "stock_quantity": 304 + }, + "customer": { + "name": "Crystal Smith", + "age": 56, + "country": "Romania" + } + }, + { + "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'", + "company": { + "name": "Hines, Gray and Sharp", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "fine", + "category": "or", + "price": 617.67, + "stock_quantity": 763 + }, + "customer": { + "name": "Todd Frye", + "age": 79, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Jones, Kline and Grimes", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "television", + "category": "side", + "price": 696.94, + "stock_quantity": 273 + }, + "customer": { + "name": "Jennifer Taylor", + "age": 18, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Velez, Medina and Ramos", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "either", + "category": "activity", + "price": 909.89, + "stock_quantity": 766 + }, + "customer": { + "name": "Anna Nguyen", + "age": 64, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Peters Inc", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "military", + "category": "teach", + "price": 787.41, + "stock_quantity": 787 + }, + "customer": { + "name": "Amy Ritter", + "age": 40, + "country": "Equatorial Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bullock-Bishop'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bullock-Bishop", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "find", + "category": "indicate", + "price": 78.98, + "stock_quantity": 311 + }, + "customer": { + "name": "Melissa Cook", + "age": 23, + "country": "Zambia" + } + }, + { + "natural_query": "List all customers and their total order value for Mclean-Sanders.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Mclean-Sanders' GROUP BY c.customer_id", + "company": { + "name": "Mclean-Sanders", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "certainly", + "category": "above", + "price": 480.52, + "stock_quantity": 153 + }, + "customer": { + "name": "Peter May", + "age": 59, + "country": "Gibraltar" + } + }, + { + "natural_query": "How many orders were placed for Larson-Nolan between 2024-05-06 and 2024-07-30?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Larson-Nolan' AND order_date BETWEEN '2024-05-06' AND '2024-07-30'", + "company": { + "name": "Larson-Nolan", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "serious", + "category": "consumer", + "price": 727.22, + "stock_quantity": 54 + }, + "customer": { + "name": "Carol Hunter", + "age": 66, + "country": "Cyprus" + } + }, + { + "natural_query": "What is the minimum quantity of all products for Robinson, Herrera and Jones?", + "sql_query": "SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Robinson, Herrera and Jones'", + "company": { + "name": "Robinson, Herrera and Jones", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "yes", + "category": "election", + "price": 561.97, + "stock_quantity": 461 + }, + "customer": { + "name": "Bradley Turner", + "age": 61, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Wilson PLC", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "good", + "category": "last", + "price": 638.06, + "stock_quantity": 36 + }, + "customer": { + "name": "Kelsey Hudson", + "age": 39, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Maxwell, Villa and Brooks", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "feel", + "category": "head", + "price": 100.55, + "stock_quantity": 939 + }, + "customer": { + "name": "Johnny Wright", + "age": 25, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Steele, Johnson and Turner", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "but", + "category": "around", + "price": 172.13, + "stock_quantity": 146 + }, + "customer": { + "name": "Lindsey Thomas", + "age": 77, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Poole PLC", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "grow", + "category": "attention", + "price": 865.59, + "stock_quantity": 440 + }, + "customer": { + "name": "Felicia Saunders", + "age": 75, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Cunningham PLC", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "relate", + "category": "everyone", + "price": 229.3, + "stock_quantity": 169 + }, + "customer": { + "name": "Tina Hart", + "age": 32, + "country": "Montenegro" + } + }, + { + "natural_query": "List all products of Foster-Pierce ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Foster-Pierce' ORDER BY stock_quantity DESC", + "company": { + "name": "Foster-Pierce", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "current", + "category": "yourself", + "price": 711.59, + "stock_quantity": 700 + }, + "customer": { + "name": "Raymond Kelley", + "age": 55, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Foster, Jacobs and Sanchez", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "happy", + "category": "station", + "price": 344.88, + "stock_quantity": 92 + }, + "customer": { + "name": "Carol Goodwin", + "age": 38, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Fisher, Dunn and Wagner", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "tax", + "category": "sound", + "price": 280.14, + "stock_quantity": 475 + }, + "customer": { + "name": "Tanya Ramsey", + "age": 19, + "country": "Jersey" + } + }, + { + "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'", + "company": { + "name": "Stuart, Robinson and Dominguez", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "local", + "category": "later", + "price": 611.81, + "stock_quantity": 494 + }, + "customer": { + "name": "Antonio Mendez", + "age": 24, + "country": "Bangladesh" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Garza LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garza LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garza LLC", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "realize", + "category": "realize", + "price": 827.81, + "stock_quantity": 161 + }, + "customer": { + "name": "Robin Anderson", + "age": 45, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Howard Group", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "carry", + "category": "child", + "price": 462.62, + "stock_quantity": 64 + }, + "customer": { + "name": "David Davis", + "age": 31, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Wilkins, Hawkins and Robinson", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "send", + "category": "yes", + "price": 688.31, + "stock_quantity": 847 + }, + "customer": { + "name": "Seth Allen", + "age": 64, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Mills, Anderson and Perez", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "the", + "category": "cover", + "price": 453.44, + "stock_quantity": 784 + }, + "customer": { + "name": "Gary Grimes", + "age": 67, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Castillo, Daniels and Simmons", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "offer", + "category": "travel", + "price": 500.06, + "stock_quantity": 838 + }, + "customer": { + "name": "Brian Vargas", + "age": 35, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Martinez PLC", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "old", + "category": "write", + "price": 563.02, + "stock_quantity": 547 + }, + "customer": { + "name": "Joseph Caldwell", + "age": 80, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Guerrero, Huffman and Castaneda", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "pay", + "category": "leave", + "price": 845.01, + "stock_quantity": 330 + }, + "customer": { + "name": "Albert Miller", + "age": 65, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Vasquez-Lindsey", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "add", + "category": "approach", + "price": 997.5, + "stock_quantity": 19 + }, + "customer": { + "name": "Gerald White", + "age": 39, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "White and Sons", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "science", + "category": "main", + "price": 745.69, + "stock_quantity": 117 + }, + "customer": { + "name": "David Torres", + "age": 36, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Kelly PLC", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "big", + "category": "world", + "price": 471.83, + "stock_quantity": 936 + }, + "customer": { + "name": "Melissa Perez", + "age": 79, + "country": "Argentina" + } + }, + { + "natural_query": "What are the top 3 products by customers for Simpson, Perez and Moore this month?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Simpson, Perez and Moore' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3", + "company": { + "name": "Simpson, Perez and Moore", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "decision", + "category": "oil", + "price": 994.71, + "stock_quantity": 792 + }, + "customer": { + "name": "Julie Sanders", + "age": 76, + "country": "Oman" + } + }, + { + "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'", + "company": { + "name": "Farrell, Lopez and Fernandez", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "west", + "category": "different", + "price": 224.5, + "stock_quantity": 937 + }, + "customer": { + "name": "Natalie Gonzalez", + "age": 61, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Green, Pace and Valencia", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "success", + "category": "north", + "price": 262.5, + "stock_quantity": 690 + }, + "customer": { + "name": "Brian Harris", + "age": 34, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Juarez Ltd", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "movement", + "category": "often", + "price": 841.53, + "stock_quantity": 872 + }, + "customer": { + "name": "Susan Green", + "age": 52, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Butler, Bean and Green", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "cup", + "category": "degree", + "price": 290.6, + "stock_quantity": 724 + }, + "customer": { + "name": "Jeffery Lowe", + "age": 55, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Williams-Tate", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "watch", + "category": "plan", + "price": 157.1, + "stock_quantity": 271 + }, + "customer": { + "name": "Henry Harris", + "age": 47, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Murphy Ltd", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "base", + "category": "strategy", + "price": 251.77, + "stock_quantity": 334 + }, + "customer": { + "name": "Andrew Hodge", + "age": 27, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Collins, Copeland and Weaver", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "how", + "category": "positive", + "price": 32.93, + "stock_quantity": 893 + }, + "customer": { + "name": "Samantha Poole", + "age": 64, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Stone, Harmon and Shaw", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "six", + "category": "value", + "price": 393.34, + "stock_quantity": 439 + }, + "customer": { + "name": "Veronica Johnson", + "age": 68, + "country": "Bolivia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Silva PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Silva PLC", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "statement", + "category": "election", + "price": 165.98, + "stock_quantity": 609 + }, + "customer": { + "name": "Melvin Norman", + "age": 29, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Hobbs, Vazquez and Scott", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "form", + "category": "late", + "price": 436.76, + "stock_quantity": 356 + }, + "customer": { + "name": "Michael Ryan", + "age": 75, + "country": "Mauritius" + } + }, + { + "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'", + "company": { + "name": "Vega-Ford", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "medical", + "category": "think", + "price": 520.96, + "stock_quantity": 27 + }, + "customer": { + "name": "Alexander Bullock", + "age": 70, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Bryant PLC", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "break", + "category": "fish", + "price": 784.98, + "stock_quantity": 363 + }, + "customer": { + "name": "Kristin Hoffman", + "age": 60, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Barrett, Sanders and Orozco", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "direction", + "category": "reflect", + "price": 267.66, + "stock_quantity": 602 + }, + "customer": { + "name": "Marc Valdez", + "age": 28, + "country": "Iceland" + } + }, + { + "natural_query": "Show me all products in the economic category with a price over $375.83.", + "sql_query": "SELECT * FROM products WHERE category = 'economic' AND price > 375.83", + "company": { + "name": "Weaver Group", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "yes", + "category": "economic", + "price": 375.83, + "stock_quantity": 882 + }, + "customer": { + "name": "Robin Chen", + "age": 46, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Brown, Neal and Choi", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "see", + "category": "husband", + "price": 78.15, + "stock_quantity": 278 + }, + "customer": { + "name": "John Williams", + "age": 64, + "country": "Guyana" + } + }, + { + "natural_query": "How many orders were placed for Hunter-Edwards between 2023-12-01 and 2024-05-22?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunter-Edwards' AND order_date BETWEEN '2023-12-01' AND '2024-05-22'", + "company": { + "name": "Hunter-Edwards", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "bank", + "category": "week", + "price": 630.02, + "stock_quantity": 759 + }, + "customer": { + "name": "Pamela Holmes", + "age": 75, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Clark-Phelps", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "how", + "category": "name", + "price": 493.05, + "stock_quantity": 18 + }, + "customer": { + "name": "Lori Floyd", + "age": 60, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Brown, Mclaughlin and Nichols", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "pattern", + "category": "in", + "price": 813.7, + "stock_quantity": 486 + }, + "customer": { + "name": "Robert Estes", + "age": 18, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Neal, Nicholson and Peters'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Neal, Nicholson and Peters", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "him", + "category": "shake", + "price": 996.19, + "stock_quantity": 792 + }, + "customer": { + "name": "Bethany Stone", + "age": 34, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Howell, Hatfield and Jackson", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "read", + "category": "threat", + "price": 55.8, + "stock_quantity": 455 + }, + "customer": { + "name": "Cassie Roth", + "age": 51, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Lewis Ltd", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "despite", + "category": "day", + "price": 253.73, + "stock_quantity": 507 + }, + "customer": { + "name": "Christopher Garcia", + "age": 42, + "country": "Cyprus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hall-Jones'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hall-Jones", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "respond", + "category": "almost", + "price": 690.71, + "stock_quantity": 689 + }, + "customer": { + "name": "Cody Colon", + "age": 55, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Crosby LLC", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "everybody", + "category": "plant", + "price": 252.64, + "stock_quantity": 407 + }, + "customer": { + "name": "Ashley Nguyen", + "age": 38, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Galvan, Brown and Page", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "water", + "category": "leader", + "price": 952.52, + "stock_quantity": 643 + }, + "customer": { + "name": "Cole Carson", + "age": 80, + "country": "Ecuador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Craig and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Craig and Sons", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "reveal", + "category": "sit", + "price": 52.76, + "stock_quantity": 29 + }, + "customer": { + "name": "Samantha Fitzgerald", + "age": 19, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Wright, Wilson and Sanchez", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "weight", + "category": "fill", + "price": 267.01, + "stock_quantity": 659 + }, + "customer": { + "name": "Jeffery Davis", + "age": 35, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Cohen Ltd", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "during", + "category": "sea", + "price": 329.12, + "stock_quantity": 134 + }, + "customer": { + "name": "William Rios", + "age": 44, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Jarvis LLC", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "audience", + "category": "anyone", + "price": 504.84, + "stock_quantity": 154 + }, + "customer": { + "name": "Curtis Reed", + "age": 80, + "country": "Lesotho" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Warren-Evans'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Warren-Evans", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "who", + "category": "compare", + "price": 624.56, + "stock_quantity": 574 + }, + "customer": { + "name": "Anthony Li", + "age": 60, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Brown-Cole", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "game", + "category": "treatment", + "price": 432.65, + "stock_quantity": 190 + }, + "customer": { + "name": "Rachel Collier", + "age": 34, + "country": "North Macedonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis, Jones and Powell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis, Jones and Powell", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "million", + "category": "traditional", + "price": 11.89, + "stock_quantity": 249 + }, + "customer": { + "name": "Raymond Jackson", + "age": 79, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Castillo, Price and Martinez", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "few", + "category": "grow", + "price": 845.4, + "stock_quantity": 83 + }, + "customer": { + "name": "Danielle Wagner", + "age": 61, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Black and Sons", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "fund", + "category": "success", + "price": 76.65, + "stock_quantity": 185 + }, + "customer": { + "name": "Emma Walker", + "age": 30, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Davis Group", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "quite", + "category": "pick", + "price": 909.65, + "stock_quantity": 883 + }, + "customer": { + "name": "Patty Henderson", + "age": 77, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Davis-Hahn", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "phone", + "category": "economic", + "price": 401.29, + "stock_quantity": 996 + }, + "customer": { + "name": "Deanna Chavez", + "age": 72, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Collins Inc", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "establish", + "category": "entire", + "price": 194.63, + "stock_quantity": 590 + }, + "customer": { + "name": "Michael Hall", + "age": 27, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Hart, Walker and Roy", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "happy", + "category": "technology", + "price": 488.88, + "stock_quantity": 922 + }, + "customer": { + "name": "Cynthia Pham", + "age": 26, + "country": "France" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gross Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gross Group", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "including", + "category": "consider", + "price": 269.5, + "stock_quantity": 778 + }, + "customer": { + "name": "Cody Brown", + "age": 79, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Conway-Chavez", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "why", + "category": "policy", + "price": 373.75, + "stock_quantity": 444 + }, + "customer": { + "name": "Kevin Pierce", + "age": 64, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Warren-Mills", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "without", + "category": "prevent", + "price": 642.96, + "stock_quantity": 927 + }, + "customer": { + "name": "John Smith", + "age": 20, + "country": "French Polynesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murphy-Fisher'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murphy-Fisher", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "close", + "category": "personal", + "price": 498.8, + "stock_quantity": 270 + }, + "customer": { + "name": "Zachary Hall", + "age": 42, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Daniels, Davis and Gonzalez", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "she", + "category": "type", + "price": 294.83, + "stock_quantity": 357 + }, + "customer": { + "name": "James Fields", + "age": 24, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Dickerson-Walter", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "whatever", + "category": "toward", + "price": 528.47, + "stock_quantity": 329 + }, + "customer": { + "name": "Natasha Thompson", + "age": 71, + "country": "Kenya" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roberts, Campbell and Lewis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roberts, Campbell and Lewis", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "fund", + "category": "on", + "price": 441.43, + "stock_quantity": 134 + }, + "customer": { + "name": "Dustin Bishop", + "age": 24, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Gates, Morris and Clark", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "attention", + "category": "station", + "price": 199.77, + "stock_quantity": 479 + }, + "customer": { + "name": "Daniel Blevins", + "age": 24, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Owen Group", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "know", + "category": "common", + "price": 120.35, + "stock_quantity": 959 + }, + "customer": { + "name": "Dustin Butler", + "age": 52, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Bird, Woods and Brown", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "remain", + "category": "card", + "price": 976.94, + "stock_quantity": 945 + }, + "customer": { + "name": "John Diaz", + "age": 74, + "country": "Micronesia" + } + }, + { + "natural_query": "What is the minimum quantity of all products for Jones-Hardin?", + "sql_query": "SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Jones-Hardin'", + "company": { + "name": "Jones-Hardin", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "blood", + "category": "friend", + "price": 773.55, + "stock_quantity": 50 + }, + "customer": { + "name": "Tina King", + "age": 42, + "country": "Angola" + } + }, + { + "natural_query": "What are the top 8 products by customers for Cooke, Hernandez and Hendricks this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Cooke, Hernandez and Hendricks' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8", + "company": { + "name": "Cooke, Hernandez and Hendricks", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "decide", + "category": "record", + "price": 192.77, + "stock_quantity": 145 + }, + "customer": { + "name": "Holly Perez", + "age": 35, + "country": "Anguilla" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Schneider, Hart and Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Schneider, Hart and Smith", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "happen", + "category": "project", + "price": 60.9, + "stock_quantity": 438 + }, + "customer": { + "name": "Edward Salazar", + "age": 72, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Yoder-Graham", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "other", + "category": "information", + "price": 22.24, + "stock_quantity": 187 + }, + "customer": { + "name": "Robert Franco", + "age": 59, + "country": "Greece" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'May, Bird and Beck'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "May, Bird and Beck", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "agent", + "category": "reach", + "price": 145.29, + "stock_quantity": 584 + }, + "customer": { + "name": "Jared Russo", + "age": 67, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Berg Inc", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "like", + "category": "voice", + "price": 790.89, + "stock_quantity": 996 + }, + "customer": { + "name": "Michael Riley", + "age": 58, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Brennan-Hill", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "generation", + "category": "travel", + "price": 600.38, + "stock_quantity": 803 + }, + "customer": { + "name": "Thomas Tanner", + "age": 79, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Brewer Group", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "field", + "category": "night", + "price": 796.36, + "stock_quantity": 586 + }, + "customer": { + "name": "Melanie Lee", + "age": 56, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Kim Ltd", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "success", + "category": "writer", + "price": 208.36, + "stock_quantity": 904 + }, + "customer": { + "name": "Alicia Carroll", + "age": 48, + "country": "Oman" + } + }, + { + "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'", + "company": { + "name": "Miller, Henderson and Riggs", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "would", + "category": "many", + "price": 730.8, + "stock_quantity": 571 + }, + "customer": { + "name": "Shirley Castro", + "age": 62, + "country": "Lao People's Democratic Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murillo, Charles and Henry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murillo, Charles and Henry", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "about", + "category": "agreement", + "price": 662.95, + "stock_quantity": 618 + }, + "customer": { + "name": "John Moore", + "age": 25, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Soto, Davidson and Keith", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "support", + "category": "process", + "price": 643.28, + "stock_quantity": 958 + }, + "customer": { + "name": "Jason Hebert", + "age": 31, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Richmond Group", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "Mr", + "category": "she", + "price": 79.58, + "stock_quantity": 505 + }, + "customer": { + "name": "Shelly Waters", + "age": 72, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Rodriguez-Dawson", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "with", + "category": "house", + "price": 183.25, + "stock_quantity": 355 + }, + "customer": { + "name": "Sandra Ford", + "age": 45, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Terry-Jenkins", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "life", + "category": "sit", + "price": 804.74, + "stock_quantity": 341 + }, + "customer": { + "name": "Anna Richards", + "age": 39, + "country": "Trinidad and Tobago" + } + }, + { + "natural_query": "List all products of Gomez, Edwards and Baldwin ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Gomez, Edwards and Baldwin' ORDER BY price ASC", + "company": { + "name": "Gomez, Edwards and Baldwin", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "across", + "category": "manager", + "price": 263.18, + "stock_quantity": 4 + }, + "customer": { + "name": "Mason Ramirez", + "age": 25, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Brown-Johnson", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "hot", + "category": "center", + "price": 784.31, + "stock_quantity": 90 + }, + "customer": { + "name": "Austin Hernandez", + "age": 26, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Roberts PLC", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "parent", + "category": "cold", + "price": 762.17, + "stock_quantity": 451 + }, + "customer": { + "name": "Sheila Johnson MD", + "age": 60, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Warren-Horne", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "best", + "category": "include", + "price": 48.39, + "stock_quantity": 415 + }, + "customer": { + "name": "Victoria Martin", + "age": 41, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Lindsey-Ortiz", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "up", + "category": "hold", + "price": 984.71, + "stock_quantity": 823 + }, + "customer": { + "name": "Christopher Brown", + "age": 43, + "country": "Angola" + } + }, + { + "natural_query": "What is the maximum price of all products for Stewart Ltd?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Stewart Ltd'", + "company": { + "name": "Stewart Ltd", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "today", + "category": "look", + "price": 534.01, + "stock_quantity": 716 + }, + "customer": { + "name": "Amy Estrada", + "age": 59, + "country": "Argentina" + } + }, + { + "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'", + "company": { + "name": "Gross-Trujillo", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "act", + "category": "because", + "price": 541.56, + "stock_quantity": 981 + }, + "customer": { + "name": "Lisa Munoz MD", + "age": 44, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Anderson PLC", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "Republican", + "category": "prepare", + "price": 281.36, + "stock_quantity": 699 + }, + "customer": { + "name": "Justin Jordan", + "age": 67, + "country": "New Zealand" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Phillips-Le for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Phillips-Le'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Phillips-Le", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "industry", + "category": "read", + "price": 257.43, + "stock_quantity": 850 + }, + "customer": { + "name": "Dalton Velez", + "age": 34, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Stewart-Elliott", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "adult", + "category": "worker", + "price": 776.62, + "stock_quantity": 103 + }, + "customer": { + "name": "Misty Robertson", + "age": 54, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Mendoza PLC", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "positive", + "category": "poor", + "price": 833.08, + "stock_quantity": 114 + }, + "customer": { + "name": "Terrance Allen", + "age": 22, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Martin-Russell", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "recognize", + "category": "either", + "price": 16.16, + "stock_quantity": 720 + }, + "customer": { + "name": "Mr. Tanner Norman IV", + "age": 60, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Webster Ltd", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "call", + "category": "great", + "price": 81.73, + "stock_quantity": 631 + }, + "customer": { + "name": "Heather Smith", + "age": 65, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Gonzalez, Cain and Hoffman", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "career", + "category": "building", + "price": 688.51, + "stock_quantity": 508 + }, + "customer": { + "name": "Ms. Lisa Smith", + "age": 38, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Williams Ltd", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "describe", + "category": "program", + "price": 431.33, + "stock_quantity": 901 + }, + "customer": { + "name": "Barbara Curry", + "age": 66, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Williams, Barnett and Walker", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "glass", + "category": "player", + "price": 680.71, + "stock_quantity": 135 + }, + "customer": { + "name": "Donna Soto", + "age": 53, + "country": "Netherlands" + } + }, + { + "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'", + "company": { + "name": "Hart-Salinas", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "only", + "category": "accept", + "price": 741.29, + "stock_quantity": 759 + }, + "customer": { + "name": "Valerie Harrington", + "age": 42, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Stevens, Hardy and Roberts", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "fill", + "category": "maybe", + "price": 863.23, + "stock_quantity": 767 + }, + "customer": { + "name": "Tyler Joseph", + "age": 76, + "country": "Ukraine" + } + }, + { + "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'", + "company": { + "name": "Martinez-Jones", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "quickly", + "category": "long", + "price": 160.41, + "stock_quantity": 589 + }, + "customer": { + "name": "Justin Diaz", + "age": 32, + "country": "Sierra Leone" + } + }, + { + "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'", + "company": { + "name": "Parker, Spencer and Bailey", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "reveal", + "category": "seat", + "price": 589.54, + "stock_quantity": 32 + }, + "customer": { + "name": "Robert Phillips", + "age": 19, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "Taylor, Lopez and Johnson", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "team", + "category": "remember", + "price": 333.04, + "stock_quantity": 611 + }, + "customer": { + "name": "Karen Wolfe", + "age": 24, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "Gonzales-Lewis", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "drug", + "category": "age", + "price": 541.37, + "stock_quantity": 46 + }, + "customer": { + "name": "Tony Thompson", + "age": 70, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Mcdonald Ltd", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "budget", + "category": "ten", + "price": 955.39, + "stock_quantity": 171 + }, + "customer": { + "name": "Molly Davidson", + "age": 49, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Shaffer-Jones", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "add", + "category": "memory", + "price": 846.3, + "stock_quantity": 522 + }, + "customer": { + "name": "Stacy Cox", + "age": 79, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Harrison, Bowen and Kelly", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "business", + "category": "into", + "price": 387.44, + "stock_quantity": 151 + }, + "customer": { + "name": "Kenneth Patel", + "age": 27, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Randall-Williams", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "like", + "category": "yeah", + "price": 490.22, + "stock_quantity": 609 + }, + "customer": { + "name": "George May", + "age": 66, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Cortez, Goodman and Smith", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "understand", + "category": "church", + "price": 728.81, + "stock_quantity": 708 + }, + "customer": { + "name": "Robert Smith", + "age": 67, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Mcconnell-Stewart", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "front", + "category": "reach", + "price": 854.66, + "stock_quantity": 695 + }, + "customer": { + "name": "William Smith", + "age": 30, + "country": "Liberia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sanchez, Boyd and Freeman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sanchez, Boyd and Freeman", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "company", + "category": "attorney", + "price": 980.54, + "stock_quantity": 733 + }, + "customer": { + "name": "Timothy Hayes", + "age": 18, + "country": "France" + } + }, + { + "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'", + "company": { + "name": "Hicks Ltd", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "question", + "category": "support", + "price": 440.62, + "stock_quantity": 222 + }, + "customer": { + "name": "Tamara Marshall", + "age": 71, + "country": "Palestinian Territory" + } + }, + { + "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'", + "company": { + "name": "Moore, Trevino and Doyle", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "town", + "category": "name", + "price": 975.67, + "stock_quantity": 849 + }, + "customer": { + "name": "Whitney Davenport", + "age": 47, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Walker PLC", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "to", + "category": "trade", + "price": 198.97, + "stock_quantity": 542 + }, + "customer": { + "name": "Lindsey Scott", + "age": 35, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Ward, Payne and Yates", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "community", + "category": "we", + "price": 188.24, + "stock_quantity": 257 + }, + "customer": { + "name": "Sara Smith", + "age": 18, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Hawkins, Garcia and Brown", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "public", + "category": "resource", + "price": 676.09, + "stock_quantity": 795 + }, + "customer": { + "name": "Steven Mason", + "age": 62, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Stevens, Collins and Jones", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "store", + "category": "huge", + "price": 428.62, + "stock_quantity": 554 + }, + "customer": { + "name": "James Evans", + "age": 30, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Burton Ltd", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "cut", + "category": "return", + "price": 450.92, + "stock_quantity": 917 + }, + "customer": { + "name": "Ebony Hudson", + "age": 72, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Ward, Carrillo and Vargas", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "speak", + "category": "soon", + "price": 283.47, + "stock_quantity": 111 + }, + "customer": { + "name": "Jessica Carr", + "age": 23, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Williams Group", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "institution", + "category": "meeting", + "price": 32.5, + "stock_quantity": 695 + }, + "customer": { + "name": "Donna Cook", + "age": 56, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Soto and Sons", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "morning", + "category": "technology", + "price": 516.97, + "stock_quantity": 868 + }, + "customer": { + "name": "Vanessa Day", + "age": 60, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Campbell, Briggs and Williams", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "window", + "category": "outside", + "price": 866.34, + "stock_quantity": 808 + }, + "customer": { + "name": "Martin Stanley", + "age": 49, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Brown, Jones and Calderon", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "traditional", + "category": "score", + "price": 157.76, + "stock_quantity": 913 + }, + "customer": { + "name": "Alexis Hudson", + "age": 63, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Holloway-Boyd", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "certainly", + "category": "maintain", + "price": 631.51, + "stock_quantity": 523 + }, + "customer": { + "name": "Jessica Pena", + "age": 67, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Fuller, Mccullough and Sparks", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "miss", + "category": "inside", + "price": 388.79, + "stock_quantity": 195 + }, + "customer": { + "name": "Julia Ryan DVM", + "age": 63, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Jones-Martin", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "doctor", + "category": "thousand", + "price": 342.34, + "stock_quantity": 41 + }, + "customer": { + "name": "Julie Garza", + "age": 25, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Lopez LLC", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "east", + "category": "style", + "price": 975.72, + "stock_quantity": 912 + }, + "customer": { + "name": "Abigail Ramirez", + "age": 20, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Moore, Johnson and Moore", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "police", + "category": "foot", + "price": 708.0, + "stock_quantity": 817 + }, + "customer": { + "name": "Marcus Reyes", + "age": 23, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Gardner Group", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "newspaper", + "category": "general", + "price": 852.76, + "stock_quantity": 929 + }, + "customer": { + "name": "Dominic Collins", + "age": 49, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Mcclain, Porter and Nguyen", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "somebody", + "category": "particularly", + "price": 301.29, + "stock_quantity": 205 + }, + "customer": { + "name": "Jeffrey Robertson", + "age": 51, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Richards, Guerrero and Gutierrez", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "tell", + "category": "call", + "price": 809.05, + "stock_quantity": 480 + }, + "customer": { + "name": "David Barnes", + "age": 19, + "country": "Iran" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Romero Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Romero Inc", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "trade", + "category": "southern", + "price": 137.89, + "stock_quantity": 370 + }, + "customer": { + "name": "Dale Lawrence", + "age": 74, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Taylor Ltd", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "power", + "category": "well", + "price": 916.65, + "stock_quantity": 606 + }, + "customer": { + "name": "Tracie Bernard", + "age": 61, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Reeves-Wilcox", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "maybe", + "category": "the", + "price": 243.59, + "stock_quantity": 848 + }, + "customer": { + "name": "Jennifer Henry", + "age": 35, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Parker, Strong and Munoz", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "until", + "category": "within", + "price": 526.24, + "stock_quantity": 494 + }, + "customer": { + "name": "Kimberly Ware", + "age": 68, + "country": "Equatorial Guinea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davidson-Ramirez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davidson-Ramirez", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "do", + "category": "fast", + "price": 864.98, + "stock_quantity": 414 + }, + "customer": { + "name": "Cathy Reed", + "age": 19, + "country": "Kyrgyz Republic" + } + }, + { + "natural_query": "List all products of Graham, Cook and Jackson ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Graham, Cook and Jackson' ORDER BY stock_quantity DESC", + "company": { + "name": "Graham, Cook and Jackson", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "gas", + "category": "thing", + "price": 284.57, + "stock_quantity": 516 + }, + "customer": { + "name": "Kristin Young", + "age": 59, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Mitchell Ltd", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "art", + "category": "can", + "price": 936.74, + "stock_quantity": 997 + }, + "customer": { + "name": "Kenneth Morton", + "age": 53, + "country": "Bahrain" + } + }, + { + "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'", + "company": { + "name": "Lynch-Moran", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "after", + "category": "history", + "price": 963.85, + "stock_quantity": 944 + }, + "customer": { + "name": "Zachary Orr", + "age": 68, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Jones PLC", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "let", + "category": "far", + "price": 847.96, + "stock_quantity": 707 + }, + "customer": { + "name": "Jason Fuentes", + "age": 53, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Anderson, Armstrong and Richardson", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "later", + "category": "rich", + "price": 599.12, + "stock_quantity": 274 + }, + "customer": { + "name": "Mr. Matthew Russo", + "age": 51, + "country": "Anguilla" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Snow-Wright for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Snow-Wright'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Snow-Wright", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "remember", + "category": "difficult", + "price": 468.04, + "stock_quantity": 2 + }, + "customer": { + "name": "Rose Webb", + "age": 19, + "country": "French Southern Territories" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Crawford-Koch'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Crawford-Koch", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "four", + "category": "night", + "price": 881.5, + "stock_quantity": 525 + }, + "customer": { + "name": "Andrea Robinson", + "age": 37, + "country": "Cayman Islands" + } + }, + { + "natural_query": "What is the total quantity of all products for Wilson-Wallace?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Wilson-Wallace'", + "company": { + "name": "Wilson-Wallace", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "owner", + "category": "lead", + "price": 866.33, + "stock_quantity": 22 + }, + "customer": { + "name": "Robert Moore", + "age": 62, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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'", + "company": { + "name": "Nielsen, Gilbert and Kirby", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "item", + "category": "first", + "price": 367.78, + "stock_quantity": 168 + }, + "customer": { + "name": "Lynn Alvarez", + "age": 67, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Walker-Diaz", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "age", + "category": "analysis", + "price": 668.73, + "stock_quantity": 12 + }, + "customer": { + "name": "Tracy Sullivan", + "age": 36, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Morrow LLC", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "idea", + "category": "direction", + "price": 94.02, + "stock_quantity": 717 + }, + "customer": { + "name": "Joseph Ramos", + "age": 62, + "country": "Jamaica" + } + }, + { + "natural_query": "List all customers and their total order value for Brown, Espinoza and Hampton.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Brown, Espinoza and Hampton' GROUP BY c.customer_id", + "company": { + "name": "Brown, Espinoza and Hampton", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "hold", + "category": "night", + "price": 83.33, + "stock_quantity": 641 + }, + "customer": { + "name": "Russell Key", + "age": 68, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Huff, Carney and Porter", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "water", + "category": "summer", + "price": 338.15, + "stock_quantity": 683 + }, + "customer": { + "name": "John Hill", + "age": 25, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Johnson, Mason and Watson", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "region", + "category": "order", + "price": 437.02, + "stock_quantity": 824 + }, + "customer": { + "name": "Corey Bradford", + "age": 66, + "country": "Anguilla" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez and Sons", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "return", + "category": "according", + "price": 807.75, + "stock_quantity": 281 + }, + "customer": { + "name": "Jaime Hawkins", + "age": 36, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Bautista, Church and Williamson", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "begin", + "category": "director", + "price": 512.51, + "stock_quantity": 674 + }, + "customer": { + "name": "Gabrielle Church", + "age": 56, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Barker-Green", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "base", + "category": "federal", + "price": 120.32, + "stock_quantity": 725 + }, + "customer": { + "name": "Wayne Benson", + "age": 80, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Pham-Hunter", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "political", + "category": "scientist", + "price": 432.56, + "stock_quantity": 707 + }, + "customer": { + "name": "Ryan Lewis", + "age": 40, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Harris, Sandoval and Frazier", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "early", + "category": "kitchen", + "price": 669.92, + "stock_quantity": 424 + }, + "customer": { + "name": "David Gutierrez MD", + "age": 72, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Smith Group", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "billion", + "category": "upon", + "price": 635.64, + "stock_quantity": 789 + }, + "customer": { + "name": "Kyle Thomas", + "age": 54, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Rose-Price", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "trial", + "category": "place", + "price": 808.7, + "stock_quantity": 416 + }, + "customer": { + "name": "Samantha Hill", + "age": 61, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Grant-Fuller", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "top", + "category": "authority", + "price": 574.91, + "stock_quantity": 187 + }, + "customer": { + "name": "Austin Smith", + "age": 35, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Butler-Adams", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "he", + "category": "Mrs", + "price": 418.26, + "stock_quantity": 833 + }, + "customer": { + "name": "Rachel Singleton", + "age": 36, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Olson-Huber", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "say", + "category": "get", + "price": 639.24, + "stock_quantity": 957 + }, + "customer": { + "name": "Melanie Maldonado", + "age": 65, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Boyd Group for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Boyd Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Boyd Group", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "write", + "category": "system", + "price": 334.36, + "stock_quantity": 940 + }, + "customer": { + "name": "Ashley Parsons", + "age": 42, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Kennedy, Mcguire and Robertson", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "style", + "category": "cup", + "price": 319.69, + "stock_quantity": 361 + }, + "customer": { + "name": "Elizabeth Miller", + "age": 58, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Sawyer, Berry and Flores", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "blue", + "category": "pass", + "price": 596.13, + "stock_quantity": 239 + }, + "customer": { + "name": "Nicole Turner", + "age": 50, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Miller, Hill and Myers", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "involve", + "category": "ask", + "price": 182.42, + "stock_quantity": 729 + }, + "customer": { + "name": "Lisa Walsh", + "age": 66, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Mendoza PLC", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "ever", + "category": "thought", + "price": 533.98, + "stock_quantity": 63 + }, + "customer": { + "name": "Amy Schneider", + "age": 59, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Houston-Cruz", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "hand", + "category": "budget", + "price": 56.82, + "stock_quantity": 419 + }, + "customer": { + "name": "Christopher Rhodes", + "age": 73, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Davis-Alexander", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "impact", + "category": "safe", + "price": 918.89, + "stock_quantity": 256 + }, + "customer": { + "name": "James Brown", + "age": 37, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Smith, Wilson and Fletcher", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "argue", + "category": "service", + "price": 372.65, + "stock_quantity": 656 + }, + "customer": { + "name": "William Francis", + "age": 50, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Ryan, Cunningham and Paul", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "factor", + "category": "memory", + "price": 12.04, + "stock_quantity": 353 + }, + "customer": { + "name": "Chad Gonzales", + "age": 58, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Wilson Inc", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "professor", + "category": "quickly", + "price": 220.1, + "stock_quantity": 147 + }, + "customer": { + "name": "Tyler Shields", + "age": 18, + "country": "Malaysia" + } + }, + { + "natural_query": "What is the total sales for each supplier in Marshall Ltd?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Marshall Ltd' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Marshall Ltd", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "cover", + "category": "run", + "price": 801.99, + "stock_quantity": 62 + }, + "customer": { + "name": "Kimberly Miller", + "age": 60, + "country": "Peru" + } + }, + { + "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'", + "company": { + "name": "Bowers, Wagner and Trevino", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "sort", + "category": "suffer", + "price": 768.19, + "stock_quantity": 560 + }, + "customer": { + "name": "Jerry Johnson", + "age": 44, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Harrison, Foster and Bass", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "age", + "category": "old", + "price": 311.36, + "stock_quantity": 697 + }, + "customer": { + "name": "Michelle Hernandez", + "age": 53, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Reed-Richards", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "system", + "category": "receive", + "price": 49.41, + "stock_quantity": 558 + }, + "customer": { + "name": "Levi Jones", + "age": 51, + "country": "Gabon" + } + }, + { + "natural_query": "How many orders were placed for Garcia, Wagner and Bridges between 2024-06-26 and 2024-07-18?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia, Wagner and Bridges' AND order_date BETWEEN '2024-06-26' AND '2024-07-18'", + "company": { + "name": "Garcia, Wagner and Bridges", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "citizen", + "category": "successful", + "price": 832.05, + "stock_quantity": 693 + }, + "customer": { + "name": "Kimberly Farrell", + "age": 56, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Anderson, Fowler and Gilbert", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "safe", + "category": "citizen", + "price": 376.56, + "stock_quantity": 484 + }, + "customer": { + "name": "James Larsen", + "age": 53, + "country": "Croatia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Nash-Campbell for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nash-Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nash-Campbell", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "everything", + "category": "nation", + "price": 640.43, + "stock_quantity": 299 + }, + "customer": { + "name": "Michelle Lee", + "age": 18, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Ramirez-Clarke", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "again", + "category": "spring", + "price": 323.92, + "stock_quantity": 245 + }, + "customer": { + "name": "Jennifer Bradford", + "age": 26, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Lewis-Macias", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "seven", + "category": "author", + "price": 756.25, + "stock_quantity": 341 + }, + "customer": { + "name": "Joshua Ibarra", + "age": 72, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Olsen Ltd", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "day", + "category": "move", + "price": 592.98, + "stock_quantity": 947 + }, + "customer": { + "name": "Steven Jackson", + "age": 23, + "country": "Brazil" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez-Hinton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez-Hinton", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "month", + "category": "build", + "price": 508.7, + "stock_quantity": 819 + }, + "customer": { + "name": "Sara Gibbs", + "age": 21, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Rogers", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "six", + "category": "marriage", + "price": 478.7, + "stock_quantity": 791 + }, + "customer": { + "name": "Sandy Wilson", + "age": 30, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Ford, Patel and Bryant", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "record", + "category": "station", + "price": 126.89, + "stock_quantity": 531 + }, + "customer": { + "name": "Timothy Banks Jr.", + "age": 25, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Whitney Group", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "trouble", + "category": "sit", + "price": 381.02, + "stock_quantity": 632 + }, + "customer": { + "name": "Tyler Meyer", + "age": 61, + "country": "Guam" + } + }, + { + "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", + "company": { + "name": "Boone Ltd", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "law", + "category": "knowledge", + "price": 267.51, + "stock_quantity": 843 + }, + "customer": { + "name": "George Harris", + "age": 41, + "country": "Canada" + } + }, + { + "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'", + "company": { + "name": "Davidson Group", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "meeting", + "category": "computer", + "price": 684.0, + "stock_quantity": 423 + }, + "customer": { + "name": "Matthew Todd DVM", + "age": 65, + "country": "Armenia" + } + }, + { + "natural_query": "What are the top 7 products by revenue for Meza Ltd this year?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Meza Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 7", + "company": { + "name": "Meza Ltd", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "daughter", + "category": "opportunity", + "price": 567.9, + "stock_quantity": 587 + }, + "customer": { + "name": "Denise Mcknight", + "age": 77, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Jones-Allen", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "certainly", + "category": "one", + "price": 132.29, + "stock_quantity": 462 + }, + "customer": { + "name": "Christopher Day", + "age": 23, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Flowers-Walker", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "decade", + "category": "sign", + "price": 640.19, + "stock_quantity": 745 + }, + "customer": { + "name": "Marc Glenn", + "age": 78, + "country": "Pitcairn Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lloyd Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lloyd Inc", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "fill", + "category": "debate", + "price": 491.96, + "stock_quantity": 458 + }, + "customer": { + "name": "Charles Day", + "age": 29, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Robinson-Armstrong", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "job", + "category": "opportunity", + "price": 470.42, + "stock_quantity": 279 + }, + "customer": { + "name": "Alisha Kelley", + "age": 71, + "country": "Japan" + } + }, + { + "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'", + "company": { + "name": "Mitchell and Sons", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "anything", + "category": "participant", + "price": 338.28, + "stock_quantity": 895 + }, + "customer": { + "name": "Colin Gilmore", + "age": 38, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Dyer LLC", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "population", + "category": "purpose", + "price": 365.35, + "stock_quantity": 37 + }, + "customer": { + "name": "Mrs. Tiffany Smith", + "age": 24, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Dougherty PLC", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "guess", + "category": "else", + "price": 362.32, + "stock_quantity": 40 + }, + "customer": { + "name": "Gary Hamilton", + "age": 35, + "country": "Syrian Arab Republic" + } + }, + { + "natural_query": "List all products of Yang-Blanchard ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Yang-Blanchard' ORDER BY rating ASC", + "company": { + "name": "Yang-Blanchard", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "organization", + "category": "glass", + "price": 257.69, + "stock_quantity": 98 + }, + "customer": { + "name": "Alyssa Ellis", + "age": 55, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Santiago-Barnes", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "grow", + "category": "word", + "price": 949.23, + "stock_quantity": 405 + }, + "customer": { + "name": "Mary Edwards", + "age": 50, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Gregory, Thompson and Cole", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "anyone", + "category": "simply", + "price": 203.51, + "stock_quantity": 576 + }, + "customer": { + "name": "Scott Lyons", + "age": 28, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Kelly, Morgan and Watkins", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "themselves", + "category": "son", + "price": 872.03, + "stock_quantity": 1000 + }, + "customer": { + "name": "Todd Myers", + "age": 45, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Anderson-Zhang", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "toward", + "category": "picture", + "price": 578.2, + "stock_quantity": 707 + }, + "customer": { + "name": "Mrs. Kerri Hanna MD", + "age": 55, + "country": "Czech Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Vance, Morris and Lucas'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Vance, Morris and Lucas", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "smile", + "category": "glass", + "price": 271.63, + "stock_quantity": 980 + }, + "customer": { + "name": "Patricia Holland", + "age": 18, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Barrett PLC", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "so", + "category": "across", + "price": 809.12, + "stock_quantity": 292 + }, + "customer": { + "name": "Brandi Young", + "age": 52, + "country": "Congo" + } + }, + { + "natural_query": "How many orders were placed for Sullivan-Johnson between 2024-07-04 and 2024-07-13?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Sullivan-Johnson' AND order_date BETWEEN '2024-07-04' AND '2024-07-13'", + "company": { + "name": "Sullivan-Johnson", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "poor", + "category": "quickly", + "price": 349.43, + "stock_quantity": 374 + }, + "customer": { + "name": "Melissa Trevino", + "age": 73, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Berger Group", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "also", + "category": "hard", + "price": 633.23, + "stock_quantity": 261 + }, + "customer": { + "name": "Michael Lowe", + "age": 38, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Johns, Warren and Moore", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "dog", + "category": "young", + "price": 679.89, + "stock_quantity": 728 + }, + "customer": { + "name": "Caroline Cook", + "age": 48, + "country": "Honduras" + } + }, + { + "natural_query": "List all customers and their total order value for Willis PLC.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Willis PLC' GROUP BY c.customer_id", + "company": { + "name": "Willis PLC", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "concern", + "category": "thought", + "price": 831.87, + "stock_quantity": 903 + }, + "customer": { + "name": "Jonathan Elliott", + "age": 55, + "country": "Afghanistan" + } + }, + { + "natural_query": "What are the top 7 products by customers for Reed Inc this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Reed Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7", + "company": { + "name": "Reed Inc", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "effect", + "category": "hit", + "price": 503.88, + "stock_quantity": 820 + }, + "customer": { + "name": "Thomas Bowers", + "age": 78, + "country": "Hungary" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stewart, Phillips and Richards'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stewart, Phillips and Richards", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "hit", + "category": "project", + "price": 490.37, + "stock_quantity": 249 + }, + "customer": { + "name": "Kimberly Garcia", + "age": 65, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Hawkins, Johnson and Burke", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "gas", + "category": "official", + "price": 655.65, + "stock_quantity": 955 + }, + "customer": { + "name": "Jeffrey Walker", + "age": 73, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Gordon-Adams", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "seek", + "category": "matter", + "price": 576.16, + "stock_quantity": 842 + }, + "customer": { + "name": "Christina Jones", + "age": 80, + "country": "Netherlands Antilles" + } + }, + { + "natural_query": "What are the top 10 products by sales for Wilson, Casey and Baker this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson, Casey and Baker' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10", + "company": { + "name": "Wilson, Casey and Baker", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "property", + "category": "site", + "price": 532.24, + "stock_quantity": 867 + }, + "customer": { + "name": "Elizabeth Bennett", + "age": 53, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Anderson-Reed", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "white", + "category": "production", + "price": 78.08, + "stock_quantity": 252 + }, + "customer": { + "name": "William Owen", + "age": 19, + "country": "Georgia" + } + }, + { + "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'", + "company": { + "name": "Rodriguez, Contreras and Taylor", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "so", + "category": "money", + "price": 916.37, + "stock_quantity": 814 + }, + "customer": { + "name": "Natasha Nguyen", + "age": 69, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Scott Inc", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "so", + "category": "wrong", + "price": 37.35, + "stock_quantity": 828 + }, + "customer": { + "name": "David Black", + "age": 34, + "country": "Romania" + } + }, + { + "natural_query": "List all customers and their total order value for Lewis, Edwards and Barrett.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Lewis, Edwards and Barrett' GROUP BY c.customer_id", + "company": { + "name": "Lewis, Edwards and Barrett", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "score", + "category": "social", + "price": 404.96, + "stock_quantity": 967 + }, + "customer": { + "name": "Rebecca Hampton", + "age": 72, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Krause, Velasquez and Perez", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "town", + "category": "to", + "price": 87.64, + "stock_quantity": 177 + }, + "customer": { + "name": "Robert Williams", + "age": 25, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Ortiz-Patterson", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "mind", + "category": "billion", + "price": 733.78, + "stock_quantity": 784 + }, + "customer": { + "name": "Jill Gallagher", + "age": 71, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Vasquez, Hess and Tran", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "spring", + "category": "what", + "price": 444.16, + "stock_quantity": 425 + }, + "customer": { + "name": "Christina Shelton", + "age": 24, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Stewart, Richard and Pratt", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "born", + "category": "daughter", + "price": 545.7, + "stock_quantity": 415 + }, + "customer": { + "name": "Justin Morgan", + "age": 19, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Frye-Taylor", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "left", + "category": "charge", + "price": 448.68, + "stock_quantity": 887 + }, + "customer": { + "name": "Ashley Harris", + "age": 41, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Oconnor Ltd", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "issue", + "category": "sister", + "price": 733.96, + "stock_quantity": 358 + }, + "customer": { + "name": "Karen Collins", + "age": 57, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Arnold PLC", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "shake", + "category": "figure", + "price": 485.34, + "stock_quantity": 224 + }, + "customer": { + "name": "Doris Harper", + "age": 55, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Cardenas-Davis", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "pretty", + "category": "several", + "price": 980.24, + "stock_quantity": 906 + }, + "customer": { + "name": "Christopher Riddle", + "age": 78, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Hays Inc", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "study", + "category": "federal", + "price": 164.52, + "stock_quantity": 239 + }, + "customer": { + "name": "Sarah Jones", + "age": 78, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Williams, Hudson and Ali", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "accept", + "category": "plant", + "price": 684.25, + "stock_quantity": 558 + }, + "customer": { + "name": "Latoya Ross", + "age": 79, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Thompson-Davis", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "see", + "category": "trip", + "price": 895.81, + "stock_quantity": 741 + }, + "customer": { + "name": "Michael Chen", + "age": 79, + "country": "Western Sahara" + } + }, + { + "natural_query": "Show me all products in the effort category with a price over $968.11.", + "sql_query": "SELECT * FROM products WHERE category = 'effort' AND price > 968.11", + "company": { + "name": "Lopez LLC", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "specific", + "category": "effort", + "price": 968.11, + "stock_quantity": 545 + }, + "customer": { + "name": "Spencer Guzman", + "age": 49, + "country": "Tunisia" + } + }, + { + "natural_query": "Show me all products in the team category with a price over $912.4.", + "sql_query": "SELECT * FROM products WHERE category = 'team' AND price > 912.4", + "company": { + "name": "Schmitt, Watson and Norris", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "car", + "category": "team", + "price": 912.4, + "stock_quantity": 582 + }, + "customer": { + "name": "Brianna Collier", + "age": 33, + "country": "Bulgaria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reese, Mitchell and Flores'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reese, Mitchell and Flores", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "method", + "category": "fact", + "price": 82.06, + "stock_quantity": 508 + }, + "customer": { + "name": "Laurie Pierce", + "age": 57, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Wilson-Vaughan", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "else", + "category": "factor", + "price": 896.54, + "stock_quantity": 320 + }, + "customer": { + "name": "Francisco Ward", + "age": 59, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "King, Castillo and Sullivan", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "produce", + "category": "American", + "price": 838.76, + "stock_quantity": 130 + }, + "customer": { + "name": "Joanna Bowman", + "age": 29, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Phillips Group", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "apply", + "category": "style", + "price": 284.98, + "stock_quantity": 687 + }, + "customer": { + "name": "Olivia Singh", + "age": 46, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Gilbert, Doyle and Miller", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "room", + "category": "hotel", + "price": 484.51, + "stock_quantity": 531 + }, + "customer": { + "name": "Brittany Frazier", + "age": 58, + "country": "India" + } + }, + { + "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'", + "company": { + "name": "Olsen, Baxter and Ortiz", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "film", + "category": "receive", + "price": 203.88, + "stock_quantity": 874 + }, + "customer": { + "name": "Robert Baker", + "age": 61, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Martinez-Krause", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "middle", + "category": "run", + "price": 462.91, + "stock_quantity": 270 + }, + "customer": { + "name": "Claudia Martinez", + "age": 77, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Gomez Group", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "writer", + "category": "thank", + "price": 847.81, + "stock_quantity": 2 + }, + "customer": { + "name": "Paul Gomez", + "age": 30, + "country": "Saint Lucia" + } + }, + { + "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'", + "company": { + "name": "Johnson Group", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "church", + "category": "upon", + "price": 124.06, + "stock_quantity": 933 + }, + "customer": { + "name": "Brooke Dixon", + "age": 48, + "country": "Lao People's Democratic Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gutierrez, Martinez and Bruce'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gutierrez, Martinez and Bruce", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "significant", + "category": "box", + "price": 447.17, + "stock_quantity": 968 + }, + "customer": { + "name": "Deanna Palmer", + "age": 37, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Gordon Group", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "something", + "category": "respond", + "price": 381.76, + "stock_quantity": 202 + }, + "customer": { + "name": "Eric Jackson", + "age": 32, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Garcia, Pierce and Anderson", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "tough", + "category": "throughout", + "price": 980.72, + "stock_quantity": 318 + }, + "customer": { + "name": "Sarah Whitney", + "age": 24, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Dorsey-Vaughn", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "these", + "category": "situation", + "price": 676.62, + "stock_quantity": 443 + }, + "customer": { + "name": "Alexandra Duncan", + "age": 56, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Ortega, Chaney and Alexander", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "according", + "category": "former", + "price": 79.81, + "stock_quantity": 692 + }, + "customer": { + "name": "Mr. Robert Velasquez", + "age": 51, + "country": "Israel" + } + }, + { + "natural_query": "What are the top 5 products by revenue for Martinez, Washington and Schmidt last quarter?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Martinez, Washington and Schmidt' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 5", + "company": { + "name": "Martinez, Washington and Schmidt", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "sea", + "category": "that", + "price": 164.15, + "stock_quantity": 169 + }, + "customer": { + "name": "Molly Hill", + "age": 74, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Brown-Lynch", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "among", + "category": "relate", + "price": 453.86, + "stock_quantity": 562 + }, + "customer": { + "name": "Donna Ali", + "age": 31, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Aguirre-Byrd", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "threat", + "category": "third", + "price": 598.28, + "stock_quantity": 692 + }, + "customer": { + "name": "Austin White", + "age": 59, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Hernandez PLC", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "sit", + "category": "store", + "price": 831.37, + "stock_quantity": 852 + }, + "customer": { + "name": "Annette Steele", + "age": 76, + "country": "Denmark" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Harmon-Franklin for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harmon-Franklin'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harmon-Franklin", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "different", + "category": "produce", + "price": 483.85, + "stock_quantity": 372 + }, + "customer": { + "name": "Alexander Roberts", + "age": 51, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Braun Ltd", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "anything", + "category": "eight", + "price": 58.37, + "stock_quantity": 896 + }, + "customer": { + "name": "Brad Bradford", + "age": 20, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Walls, Johnson and Beck", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "matter", + "category": "around", + "price": 307.71, + "stock_quantity": 1000 + }, + "customer": { + "name": "April Campbell", + "age": 62, + "country": "Equatorial Guinea" + } + }, + { + "natural_query": "Show me all products in the store category with a price over $295.86.", + "sql_query": "SELECT * FROM products WHERE category = 'store' AND price > 295.86", + "company": { + "name": "Foster, Parker and Brown", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "activity", + "category": "store", + "price": 295.86, + "stock_quantity": 311 + }, + "customer": { + "name": "Michael Campbell", + "age": 56, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Harper-Reyes", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "middle", + "category": "standard", + "price": 22.81, + "stock_quantity": 313 + }, + "customer": { + "name": "Savannah Cannon", + "age": 30, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Fischer LLC", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "sing", + "category": "defense", + "price": 134.28, + "stock_quantity": 622 + }, + "customer": { + "name": "Tina Atkins", + "age": 72, + "country": "Pakistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Porter, Weber and Hernandez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Porter, Weber and Hernandez", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "tell", + "category": "list", + "price": 329.92, + "stock_quantity": 551 + }, + "customer": { + "name": "Jesse Ford", + "age": 42, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Clayton, Baker and Sanchez", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "group", + "category": "dream", + "price": 180.13, + "stock_quantity": 855 + }, + "customer": { + "name": "Michael Brown", + "age": 27, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Flynn, Simpson and Curtis", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "face", + "category": "loss", + "price": 340.0, + "stock_quantity": 299 + }, + "customer": { + "name": "Brady Anderson", + "age": 53, + "country": "Ukraine" + } + }, + { + "natural_query": "What is the total profit for each country in Griffith LLC?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Griffith LLC' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Griffith LLC", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "goal", + "category": "player", + "price": 457.38, + "stock_quantity": 313 + }, + "customer": { + "name": "Phillip Larsen", + "age": 46, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Davis, Craig and Bender", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "when", + "category": "throughout", + "price": 63.11, + "stock_quantity": 317 + }, + "customer": { + "name": "Lauren Gutierrez", + "age": 26, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Trevino, Evans and Mclaughlin", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "total", + "category": "go", + "price": 141.94, + "stock_quantity": 888 + }, + "customer": { + "name": "Kimberly Reynolds", + "age": 35, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Patton Ltd", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "tend", + "category": "beautiful", + "price": 283.81, + "stock_quantity": 323 + }, + "customer": { + "name": "Andrea Norris", + "age": 63, + "country": "French Polynesia" + } + }, + { + "natural_query": "List all products of Lopez-Garcia ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Lopez-Garcia' ORDER BY rating DESC", + "company": { + "name": "Lopez-Garcia", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "foot", + "category": "least", + "price": 424.14, + "stock_quantity": 730 + }, + "customer": { + "name": "Kenneth Klein", + "age": 41, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Wilson-English", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "east", + "category": "machine", + "price": 414.29, + "stock_quantity": 559 + }, + "customer": { + "name": "Mark Hess MD", + "age": 57, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Mccoy-Williams", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "law", + "category": "which", + "price": 522.3, + "stock_quantity": 420 + }, + "customer": { + "name": "George Knight", + "age": 57, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Williams-Simpson", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "throughout", + "category": "high", + "price": 189.33, + "stock_quantity": 194 + }, + "customer": { + "name": "Lauren Kelley", + "age": 47, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Wells-Flowers", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "understand", + "category": "listen", + "price": 961.53, + "stock_quantity": 464 + }, + "customer": { + "name": "Dr. Brittany Dawson", + "age": 41, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Davis-Curtis", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "sing", + "category": "off", + "price": 39.62, + "stock_quantity": 227 + }, + "customer": { + "name": "Sabrina Smith", + "age": 79, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Mitchell-Thomas", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "pressure", + "category": "serve", + "price": 473.64, + "stock_quantity": 73 + }, + "customer": { + "name": "Micheal Davis III", + "age": 24, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Cole Inc", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "song", + "category": "computer", + "price": 35.84, + "stock_quantity": 750 + }, + "customer": { + "name": "Gregory Randall", + "age": 23, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Simmons LLC", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "grow", + "category": "carry", + "price": 823.45, + "stock_quantity": 599 + }, + "customer": { + "name": "Sierra Evans", + "age": 51, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Baker-Allen", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "reality", + "category": "fly", + "price": 32.67, + "stock_quantity": 25 + }, + "customer": { + "name": "Brian Brown", + "age": 79, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Miller, Hardy and Jones", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "particularly", + "category": "eight", + "price": 762.38, + "stock_quantity": 531 + }, + "customer": { + "name": "Johnathan Vaughn", + "age": 32, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Andrews, Schneider and Steele", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "leg", + "category": "she", + "price": 11.92, + "stock_quantity": 200 + }, + "customer": { + "name": "Allison Murray", + "age": 57, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Lambert, Stanton and Green", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "get", + "category": "stay", + "price": 412.44, + "stock_quantity": 658 + }, + "customer": { + "name": "Larry Frazier", + "age": 24, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Murray Ltd", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "her", + "category": "use", + "price": 254.3, + "stock_quantity": 22 + }, + "customer": { + "name": "Adam Marquez", + "age": 36, + "country": "Wallis and Futuna" + } + }, + { + "natural_query": "List all customers and their total order value for May-Barajas.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'May-Barajas' GROUP BY c.customer_id", + "company": { + "name": "May-Barajas", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "very", + "category": "life", + "price": 582.36, + "stock_quantity": 998 + }, + "customer": { + "name": "Dustin Blanchard", + "age": 68, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Bennett, Schneider and Hunter", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "economy", + "category": "call", + "price": 841.73, + "stock_quantity": 435 + }, + "customer": { + "name": "Raymond Scott", + "age": 20, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Lamb Inc", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "whole", + "category": "term", + "price": 243.05, + "stock_quantity": 632 + }, + "customer": { + "name": "Lindsay Hall", + "age": 62, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "King-Cameron", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "together", + "category": "as", + "price": 634.0, + "stock_quantity": 973 + }, + "customer": { + "name": "Cheryl Hicks", + "age": 57, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "Lozano PLC", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "would", + "category": "simple", + "price": 391.39, + "stock_quantity": 606 + }, + "customer": { + "name": "Dustin Arnold", + "age": 55, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Crawford and Sons", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "store", + "category": "recently", + "price": 914.79, + "stock_quantity": 805 + }, + "customer": { + "name": "Shannon Porter", + "age": 21, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Holmes-Vega", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "example", + "category": "old", + "price": 143.4, + "stock_quantity": 706 + }, + "customer": { + "name": "Courtney Torres", + "age": 63, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Edwards, Trevino and Wyatt", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "tell", + "category": "fight", + "price": 922.03, + "stock_quantity": 748 + }, + "customer": { + "name": "Jeremiah Jackson", + "age": 68, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Jordan, Boyd and Arnold", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "nice", + "category": "true", + "price": 824.06, + "stock_quantity": 569 + }, + "customer": { + "name": "Anthony Williams", + "age": 55, + "country": "Haiti" + } + }, + { + "natural_query": "List all products of Kennedy PLC ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Kennedy PLC' ORDER BY stock_quantity DESC", + "company": { + "name": "Kennedy PLC", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "discussion", + "category": "the", + "price": 725.35, + "stock_quantity": 373 + }, + "customer": { + "name": "Rachel Santos", + "age": 22, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Valdez and Sons", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "appear", + "category": "Congress", + "price": 938.22, + "stock_quantity": 268 + }, + "customer": { + "name": "Miranda Wang", + "age": 71, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Hernandez Group", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "its", + "category": "above", + "price": 335.83, + "stock_quantity": 794 + }, + "customer": { + "name": "Carl Williams", + "age": 76, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Arnold, Gutierrez and Walker", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "operation", + "category": "keep", + "price": 138.09, + "stock_quantity": 349 + }, + "customer": { + "name": "Michelle Porter", + "age": 69, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Garcia, Riddle and Norman", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "must", + "category": "management", + "price": 307.77, + "stock_quantity": 695 + }, + "customer": { + "name": "Melissa Wilson", + "age": 40, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Crosby PLC", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "condition", + "category": "per", + "price": 324.63, + "stock_quantity": 474 + }, + "customer": { + "name": "Michael Gardner", + "age": 64, + "country": "Guatemala" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gilbert, Ellis and Davis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gilbert, Ellis and Davis", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "cell", + "category": "clearly", + "price": 525.29, + "stock_quantity": 566 + }, + "customer": { + "name": "Tami Blair", + "age": 19, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Lynch Ltd", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "boy", + "category": "red", + "price": 503.75, + "stock_quantity": 611 + }, + "customer": { + "name": "Jennifer Wade", + "age": 18, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Bryant Inc", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "hope", + "category": "explain", + "price": 161.66, + "stock_quantity": 247 + }, + "customer": { + "name": "Samantha Anderson", + "age": 65, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Medina, Morales and Jones", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "water", + "category": "analysis", + "price": 684.53, + "stock_quantity": 166 + }, + "customer": { + "name": "Daniel Morales", + "age": 64, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Lee Ltd", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "trip", + "category": "direction", + "price": 218.34, + "stock_quantity": 572 + }, + "customer": { + "name": "Joshua Heath", + "age": 36, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Perry, Adams and Boyle", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "good", + "category": "major", + "price": 943.02, + "stock_quantity": 65 + }, + "customer": { + "name": "Ryan Woods", + "age": 62, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Patterson-Stevens", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "win", + "category": "accept", + "price": 125.8, + "stock_quantity": 90 + }, + "customer": { + "name": "Melissa Kennedy", + "age": 75, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Miller LLC", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "yes", + "category": "without", + "price": 17.81, + "stock_quantity": 482 + }, + "customer": { + "name": "Carol Novak", + "age": 67, + "country": "Bolivia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bradford-Stewart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bradford-Stewart", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "fine", + "category": "deal", + "price": 823.68, + "stock_quantity": 437 + }, + "customer": { + "name": "Joseph Cain", + "age": 67, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Swanson, Sharp and Young", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "wish", + "category": "low", + "price": 875.83, + "stock_quantity": 648 + }, + "customer": { + "name": "Whitney Newton", + "age": 24, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Rodriguez PLC", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "simple", + "category": "entire", + "price": 153.75, + "stock_quantity": 537 + }, + "customer": { + "name": "Jason Thompson", + "age": 20, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Harris, Holloway and Rivera", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "can", + "category": "election", + "price": 458.73, + "stock_quantity": 740 + }, + "customer": { + "name": "Nicole Jordan", + "age": 77, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Patrick and Key", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "son", + "category": "shake", + "price": 858.41, + "stock_quantity": 864 + }, + "customer": { + "name": "Daniel Nguyen", + "age": 47, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Hall, Miranda and Hernandez", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "human", + "category": "exist", + "price": 828.88, + "stock_quantity": 994 + }, + "customer": { + "name": "Austin Brown", + "age": 35, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Johnston Inc", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "million", + "category": "field", + "price": 723.28, + "stock_quantity": 77 + }, + "customer": { + "name": "Arthur Bradley", + "age": 73, + "country": "Togo" + } + }, + { + "natural_query": "What is the maximum price of all products for Snyder, Garcia and Daniel?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Snyder, Garcia and Daniel'", + "company": { + "name": "Snyder, Garcia and Daniel", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "car", + "category": "chair", + "price": 64.63, + "stock_quantity": 661 + }, + "customer": { + "name": "Vincent Brown", + "age": 76, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Wright Inc", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "site", + "category": "laugh", + "price": 582.2, + "stock_quantity": 275 + }, + "customer": { + "name": "Melissa Ray", + "age": 22, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Hernandez, Adkins and Lyons", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "special", + "category": "good", + "price": 612.21, + "stock_quantity": 618 + }, + "customer": { + "name": "Angela Garcia", + "age": 34, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Jones LLC", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "good", + "category": "debate", + "price": 932.92, + "stock_quantity": 99 + }, + "customer": { + "name": "Christopher Smith", + "age": 46, + "country": "Estonia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Garner Inc for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garner Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garner Inc", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "part", + "category": "forget", + "price": 216.38, + "stock_quantity": 712 + }, + "customer": { + "name": "Kevin Flowers", + "age": 62, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Bishop PLC", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "authority", + "category": "develop", + "price": 715.35, + "stock_quantity": 758 + }, + "customer": { + "name": "Paul Goodwin", + "age": 69, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Wallace, Williamson and Rhodes", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "force", + "category": "court", + "price": 141.0, + "stock_quantity": 679 + }, + "customer": { + "name": "Kelly Anderson", + "age": 22, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Ryan Group", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "travel", + "category": "adult", + "price": 222.72, + "stock_quantity": 686 + }, + "customer": { + "name": "Russell Johnson", + "age": 78, + "country": "Antigua and Barbuda" + } + }, + { + "natural_query": "List all customers and their total order value for Anderson and Sons.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Anderson and Sons' GROUP BY c.customer_id", + "company": { + "name": "Anderson and Sons", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "authority", + "category": "small", + "price": 572.93, + "stock_quantity": 404 + }, + "customer": { + "name": "Misty Norman", + "age": 67, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Esparza Group", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "property", + "category": "perhaps", + "price": 368.45, + "stock_quantity": 535 + }, + "customer": { + "name": "Joseph Hill", + "age": 55, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Moran-Harris", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "parent", + "category": "visit", + "price": 405.48, + "stock_quantity": 52 + }, + "customer": { + "name": "Suzanne Mora", + "age": 22, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Ward PLC", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "school", + "category": "candidate", + "price": 574.55, + "stock_quantity": 734 + }, + "customer": { + "name": "Amy Landry", + "age": 72, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Green Inc", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "time", + "category": "success", + "price": 92.0, + "stock_quantity": 348 + }, + "customer": { + "name": "Olivia Campbell", + "age": 51, + "country": "Andorra" + } + }, + { + "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'", + "company": { + "name": "Medina, Lewis and Jenkins", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "foot", + "category": "cut", + "price": 832.74, + "stock_quantity": 818 + }, + "customer": { + "name": "Laura Maldonado", + "age": 52, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Mendez, Phillips and Thompson", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "glass", + "category": "note", + "price": 447.32, + "stock_quantity": 244 + }, + "customer": { + "name": "Dean Barber", + "age": 36, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Odonnell Inc", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "community", + "category": "wait", + "price": 744.86, + "stock_quantity": 283 + }, + "customer": { + "name": "Caitlin Bailey", + "age": 77, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Williams, Rose and Hurley", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "near", + "category": "detail", + "price": 51.41, + "stock_quantity": 344 + }, + "customer": { + "name": "Mr. William Berger", + "age": 73, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Wang, Mendoza and Farley", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "citizen", + "category": "purpose", + "price": 13.37, + "stock_quantity": 724 + }, + "customer": { + "name": "Jason Brown", + "age": 24, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Schultz Inc", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "position", + "category": "short", + "price": 485.99, + "stock_quantity": 205 + }, + "customer": { + "name": "Nicole Martinez", + "age": 51, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Briggs, Turner and Garcia", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "real", + "category": "land", + "price": 634.19, + "stock_quantity": 33 + }, + "customer": { + "name": "Mr. Frank Miller", + "age": 64, + "country": "Holy See (Vatican City State)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shea, Mitchell and Hall'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shea, Mitchell and Hall", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "story", + "category": "particular", + "price": 750.98, + "stock_quantity": 374 + }, + "customer": { + "name": "Stephen Nichols", + "age": 20, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Howard and Sons", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "work", + "category": "turn", + "price": 967.87, + "stock_quantity": 820 + }, + "customer": { + "name": "Rachel Gordon", + "age": 55, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Chavez, Lopez and Price", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "ability", + "category": "thousand", + "price": 951.43, + "stock_quantity": 508 + }, + "customer": { + "name": "Kelly Boyd", + "age": 41, + "country": "New Caledonia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Perez and Watson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Perez and Watson", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "near", + "category": "item", + "price": 944.58, + "stock_quantity": 581 + }, + "customer": { + "name": "David Wilson", + "age": 71, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Thompson Ltd", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "figure", + "category": "according", + "price": 368.74, + "stock_quantity": 684 + }, + "customer": { + "name": "Chelsea Baker", + "age": 19, + "country": "Timor-Leste" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Lee, Curtis and Carpenter for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lee, Curtis and Carpenter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lee, Curtis and Carpenter", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "hand", + "category": "never", + "price": 827.59, + "stock_quantity": 807 + }, + "customer": { + "name": "Julie Anthony", + "age": 53, + "country": "Mongolia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Webb-Perkins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Webb-Perkins", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "throughout", + "category": "recognize", + "price": 846.84, + "stock_quantity": 973 + }, + "customer": { + "name": "Lori Carroll", + "age": 58, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Carter, Johnson and Peters", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "million", + "category": "main", + "price": 42.11, + "stock_quantity": 718 + }, + "customer": { + "name": "Jennifer Hughes", + "age": 26, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Robertson and Sons", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "chance", + "category": "indicate", + "price": 318.43, + "stock_quantity": 80 + }, + "customer": { + "name": "Christopher Orozco", + "age": 57, + "country": "Poland" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Pena LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pena LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pena LLC", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "which", + "category": "year", + "price": 225.68, + "stock_quantity": 29 + }, + "customer": { + "name": "Alyssa Kane", + "age": 18, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Molina and Lee", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "stuff", + "category": "person", + "price": 499.63, + "stock_quantity": 337 + }, + "customer": { + "name": "Kayla French", + "age": 47, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Leach, Warner and Gonzales", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "quickly", + "category": "body", + "price": 77.13, + "stock_quantity": 618 + }, + "customer": { + "name": "Heather Nelson", + "age": 78, + "country": "Germany" + } + }, + { + "natural_query": "Show me all products in the fast category with a price over $588.27.", + "sql_query": "SELECT * FROM products WHERE category = 'fast' AND price > 588.27", + "company": { + "name": "Robinson-Butler", + "sector": "PLC", + "founded_year": "2009" + }, + "product": { + "name": "show", + "category": "fast", + "price": 588.27, + "stock_quantity": 0 + }, + "customer": { + "name": "Matthew Nichols", + "age": 53, + "country": "Saint Helena" + } + }, + { + "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'", + "company": { + "name": "Thomas-Craig", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "nation", + "category": "without", + "price": 770.86, + "stock_quantity": 383 + }, + "customer": { + "name": "Robert Simmons", + "age": 24, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Robinson, Moore and Smith", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "very", + "category": "development", + "price": 957.61, + "stock_quantity": 639 + }, + "customer": { + "name": "Benjamin Wheeler", + "age": 76, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Gray Inc", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "war", + "category": "peace", + "price": 761.7, + "stock_quantity": 793 + }, + "customer": { + "name": "Timothy Fox", + "age": 30, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Robertson-Rice", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "south", + "category": "safe", + "price": 862.87, + "stock_quantity": 372 + }, + "customer": { + "name": "Sara Johnson PhD", + "age": 33, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Stevens, Fuentes and Lloyd", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "remain", + "category": "others", + "price": 937.12, + "stock_quantity": 989 + }, + "customer": { + "name": "Andrew Sanchez", + "age": 65, + "country": "Macao" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Howard, Delgado and Martinez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Howard, Delgado and Martinez", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "someone", + "category": "theory", + "price": 328.04, + "stock_quantity": 805 + }, + "customer": { + "name": "Gregory Morales", + "age": 52, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Smith-Williams", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "clear", + "category": "budget", + "price": 942.08, + "stock_quantity": 502 + }, + "customer": { + "name": "Christopher Hester", + "age": 28, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Russell, Gonzalez and Campbell", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "care", + "category": "democratic", + "price": 770.49, + "stock_quantity": 770 + }, + "customer": { + "name": "Brian Alvarez", + "age": 25, + "country": "New Caledonia" + } + }, + { + "natural_query": "Show me all products in the organization category with a price over $380.12.", + "sql_query": "SELECT * FROM products WHERE category = 'organization' AND price > 380.12", + "company": { + "name": "Gonzalez-Aguilar", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "yard", + "category": "organization", + "price": 380.12, + "stock_quantity": 662 + }, + "customer": { + "name": "Melissa Becker", + "age": 30, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Nunez-Powell", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "but", + "category": "system", + "price": 295.76, + "stock_quantity": 350 + }, + "customer": { + "name": "Jean Atkinson", + "age": 30, + "country": "Netherlands Antilles" + } + }, + { + "natural_query": "What is the total profit for each country in Leach, Rivera and Valdez?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Leach, Rivera and Valdez' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Leach, Rivera and Valdez", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "idea", + "category": "check", + "price": 962.99, + "stock_quantity": 771 + }, + "customer": { + "name": "Rebecca Cain", + "age": 21, + "country": "India" + } + }, + { + "natural_query": "List all products of Davis, Keith and Richardson ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Davis, Keith and Richardson' ORDER BY stock_quantity ASC", + "company": { + "name": "Davis, Keith and Richardson", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "not", + "category": "year", + "price": 231.0, + "stock_quantity": 273 + }, + "customer": { + "name": "Mary Carter", + "age": 28, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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'", + "company": { + "name": "Ayers, Lewis and Barrett", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "space", + "category": "onto", + "price": 429.82, + "stock_quantity": 244 + }, + "customer": { + "name": "Matthew Flynn", + "age": 26, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Dillon, Daugherty and Alexander", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "lay", + "category": "daughter", + "price": 114.85, + "stock_quantity": 701 + }, + "customer": { + "name": "Michelle Day", + "age": 52, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Austin PLC", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "mother", + "category": "dog", + "price": 443.09, + "stock_quantity": 75 + }, + "customer": { + "name": "Joshua Perry", + "age": 71, + "country": "Nepal" + } + }, + { + "natural_query": "List all customers and their total order value for Fletcher-Green.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Fletcher-Green' GROUP BY c.customer_id", + "company": { + "name": "Fletcher-Green", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "time", + "category": "people", + "price": 758.8, + "stock_quantity": 837 + }, + "customer": { + "name": "Gregory Hayes", + "age": 28, + "country": "Cambodia" + } + }, + { + "natural_query": "What are the top 9 products by sales for Jones-Martinez this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Jones-Martinez' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9", + "company": { + "name": "Jones-Martinez", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "name", + "category": "finally", + "price": 574.22, + "stock_quantity": 30 + }, + "customer": { + "name": "Whitney Francis", + "age": 72, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Becker, Rodgers and Jones", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "response", + "category": "us", + "price": 576.76, + "stock_quantity": 9 + }, + "customer": { + "name": "Gregory Schultz", + "age": 53, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Gross PLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "seek", + "category": "baby", + "price": 18.69, + "stock_quantity": 572 + }, + "customer": { + "name": "Benjamin Bowen", + "age": 36, + "country": "Guernsey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Burgess LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Burgess LLC", + "sector": "and Sons", + "founded_year": "2022" + }, + "product": { + "name": "crime", + "category": "reduce", + "price": 300.41, + "stock_quantity": 178 + }, + "customer": { + "name": "William Perez", + "age": 62, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Monroe, Stone and Hendricks", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "senior", + "category": "study", + "price": 43.14, + "stock_quantity": 865 + }, + "customer": { + "name": "Mathew Espinoza", + "age": 40, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Watts-Lucas", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "its", + "category": "alone", + "price": 482.07, + "stock_quantity": 449 + }, + "customer": { + "name": "Carol Davis", + "age": 36, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Patel-Carson", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "pass", + "category": "east", + "price": 882.59, + "stock_quantity": 108 + }, + "customer": { + "name": "Melinda Hernandez", + "age": 73, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Murray-Nguyen", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "religious", + "category": "wind", + "price": 39.98, + "stock_quantity": 270 + }, + "customer": { + "name": "Andrew Baird", + "age": 49, + "country": "Albania" + } + }, + { + "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'", + "company": { + "name": "Rosales PLC", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "choice", + "category": "opportunity", + "price": 293.62, + "stock_quantity": 792 + }, + "customer": { + "name": "Jermaine Gordon", + "age": 47, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Huffman Group", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "contain", + "category": "scene", + "price": 653.07, + "stock_quantity": 320 + }, + "customer": { + "name": "Sandra Vasquez", + "age": 55, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Ward, Boone and David", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "arrive", + "category": "off", + "price": 365.32, + "stock_quantity": 59 + }, + "customer": { + "name": "Julia Jackson", + "age": 42, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Curry-Hammond", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "let", + "category": "machine", + "price": 344.81, + "stock_quantity": 574 + }, + "customer": { + "name": "Jamie Robertson", + "age": 63, + "country": "France" + } + }, + { + "natural_query": "Show me all products in the can category with a price over $104.2.", + "sql_query": "SELECT * FROM products WHERE category = 'can' AND price > 104.2", + "company": { + "name": "Vincent-Bennett", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "north", + "category": "can", + "price": 104.2, + "stock_quantity": 883 + }, + "customer": { + "name": "Joshua Hamilton", + "age": 67, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Williams and Sons", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "serious", + "category": "while", + "price": 16.82, + "stock_quantity": 26 + }, + "customer": { + "name": "Samuel Schultz", + "age": 78, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Richards, Yates and Carney", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "play", + "category": "field", + "price": 548.0, + "stock_quantity": 296 + }, + "customer": { + "name": "Tyler Cruz", + "age": 20, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Perkins-Atkins", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "experience", + "category": "rest", + "price": 860.35, + "stock_quantity": 369 + }, + "customer": { + "name": "Matthew Rose", + "age": 34, + "country": "Honduras" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Zhang Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Zhang Group", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "available", + "category": "college", + "price": 566.52, + "stock_quantity": 702 + }, + "customer": { + "name": "Tyler Knight", + "age": 43, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Dean LLC", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "traditional", + "category": "top", + "price": 638.62, + "stock_quantity": 992 + }, + "customer": { + "name": "Andrew Cole", + "age": 62, + "country": "Faroe Islands" + } + }, + { + "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'", + "company": { + "name": "Mosley LLC", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "responsibility", + "category": "whether", + "price": 356.15, + "stock_quantity": 310 + }, + "customer": { + "name": "Kristy Herman", + "age": 36, + "country": "Cape Verde" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hobbs, Little and Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hobbs, Little and Moore", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "say", + "category": "water", + "price": 847.08, + "stock_quantity": 153 + }, + "customer": { + "name": "Christian Walters", + "age": 28, + "country": "Kiribati" + } + }, + { + "natural_query": "Show me all products in the vote category with a price over $950.01.", + "sql_query": "SELECT * FROM products WHERE category = 'vote' AND price > 950.01", + "company": { + "name": "Stevenson-Benson", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "call", + "category": "vote", + "price": 950.01, + "stock_quantity": 919 + }, + "customer": { + "name": "Christopher Gibson", + "age": 60, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Wright Inc", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "term", + "category": "support", + "price": 780.56, + "stock_quantity": 228 + }, + "customer": { + "name": "Sharon Bowman", + "age": 77, + "country": "Lesotho" + } + }, + { + "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'", + "company": { + "name": "Haley-Shelton", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "item", + "category": "page", + "price": 256.78, + "stock_quantity": 829 + }, + "customer": { + "name": "Sierra Morris", + "age": 46, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Reynolds-Rodriguez", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "particularly", + "category": "pattern", + "price": 895.53, + "stock_quantity": 468 + }, + "customer": { + "name": "Ronald Myers", + "age": 45, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Davis, Davis and Lang", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "me", + "category": "reason", + "price": 190.89, + "stock_quantity": 348 + }, + "customer": { + "name": "Kristina Lawson", + "age": 41, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gordon-Taylor'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gordon-Taylor", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "town", + "category": "policy", + "price": 386.29, + "stock_quantity": 399 + }, + "customer": { + "name": "Michael Rodriguez", + "age": 27, + "country": "Ecuador" + } + }, + { + "natural_query": "What is the minimum rating of all products for Lee, Johnson and Jones?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Lee, Johnson and Jones'", + "company": { + "name": "Lee, Johnson and Jones", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "government", + "category": "perform", + "price": 495.09, + "stock_quantity": 813 + }, + "customer": { + "name": "Rachel Torres", + "age": 62, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Ortiz Ltd", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "center", + "category": "night", + "price": 171.73, + "stock_quantity": 703 + }, + "customer": { + "name": "Joseph Allen", + "age": 56, + "country": "Morocco" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gonzalez LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gonzalez LLC", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "under", + "category": "easy", + "price": 865.21, + "stock_quantity": 791 + }, + "customer": { + "name": "Melissa Neal", + "age": 28, + "country": "Nigeria" + } + }, + { + "natural_query": "What is the total profit for each supplier in Yates-White?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Yates-White' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Yates-White", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "something", + "category": "gas", + "price": 897.35, + "stock_quantity": 498 + }, + "customer": { + "name": "Sara Thompson", + "age": 26, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Dodson Group", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "quality", + "category": "between", + "price": 295.74, + "stock_quantity": 325 + }, + "customer": { + "name": "Chelsea Mason", + "age": 44, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Tucker Group", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "four", + "category": "short", + "price": 14.13, + "stock_quantity": 617 + }, + "customer": { + "name": "Tyrone Jones", + "age": 79, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Barber Inc", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "once", + "category": "hope", + "price": 654.35, + "stock_quantity": 87 + }, + "customer": { + "name": "Jessica Bishop", + "age": 47, + "country": "Western Sahara" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones, Doyle and Anderson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones, Doyle and Anderson", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "him", + "category": "number", + "price": 483.34, + "stock_quantity": 385 + }, + "customer": { + "name": "James Fry", + "age": 47, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Jones, Hammond and Stevenson", + "sector": "Ltd", + "founded_year": "2007" + }, + "product": { + "name": "allow", + "category": "explain", + "price": 654.93, + "stock_quantity": 952 + }, + "customer": { + "name": "Heather Richards", + "age": 22, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Solomon, Martin and Aguilar", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "nothing", + "category": "lead", + "price": 731.21, + "stock_quantity": 496 + }, + "customer": { + "name": "Robin Kelley", + "age": 37, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Walls-Ramirez", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "number", + "category": "accept", + "price": 299.58, + "stock_quantity": 476 + }, + "customer": { + "name": "Lindsay Moreno", + "age": 59, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Clark-Hodge", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "share", + "category": "budget", + "price": 586.82, + "stock_quantity": 86 + }, + "customer": { + "name": "Ms. Anna Bennett MD", + "age": 63, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Sullivan, Welch and Brown", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "clearly", + "category": "college", + "price": 575.82, + "stock_quantity": 309 + }, + "customer": { + "name": "Stephanie Valdez", + "age": 76, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Maldonado Ltd", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "walk", + "category": "practice", + "price": 196.98, + "stock_quantity": 732 + }, + "customer": { + "name": "Bruce Christensen", + "age": 73, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Morales Group", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "record", + "category": "like", + "price": 57.66, + "stock_quantity": 4 + }, + "customer": { + "name": "Kimberly Arnold", + "age": 80, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Jenkins Group", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "three", + "category": "evidence", + "price": 359.01, + "stock_quantity": 634 + }, + "customer": { + "name": "Gabriela Harding", + "age": 34, + "country": "Philippines" + } + }, + { + "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'", + "company": { + "name": "Bennett Inc", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "receive", + "category": "face", + "price": 755.09, + "stock_quantity": 674 + }, + "customer": { + "name": "Joanna Hampton", + "age": 70, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Reyes-Kaufman", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "Democrat", + "category": "poor", + "price": 467.5, + "stock_quantity": 13 + }, + "customer": { + "name": "Amanda Rowe", + "age": 56, + "country": "Guinea-Bissau" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Hull-Garcia?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Hull-Garcia'", + "company": { + "name": "Hull-Garcia", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "feel", + "category": "growth", + "price": 259.81, + "stock_quantity": 263 + }, + "customer": { + "name": "Sarah Porter", + "age": 67, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Santos-Deleon", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "ahead", + "category": "their", + "price": 517.64, + "stock_quantity": 256 + }, + "customer": { + "name": "Timothy Gonzalez", + "age": 23, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Lam Inc", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "arm", + "category": "quite", + "price": 249.71, + "stock_quantity": 685 + }, + "customer": { + "name": "Tiffany Edwards", + "age": 58, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Todd-Gray", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "total", + "category": "network", + "price": 687.59, + "stock_quantity": 642 + }, + "customer": { + "name": "Vicki Barnes", + "age": 67, + "country": "Grenada" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Torres Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Torres Inc", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "language", + "category": "discover", + "price": 818.74, + "stock_quantity": 869 + }, + "customer": { + "name": "Richard Bartlett", + "age": 43, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Thornton PLC", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "address", + "category": "financial", + "price": 587.45, + "stock_quantity": 999 + }, + "customer": { + "name": "Timothy Curry", + "age": 47, + "country": "Guam" + } + }, + { + "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'", + "company": { + "name": "Cole-Tucker", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "team", + "category": "generation", + "price": 510.7, + "stock_quantity": 462 + }, + "customer": { + "name": "Max Barrett", + "age": 22, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Harrington, Zuniga and Bennett", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "throughout", + "category": "letter", + "price": 601.96, + "stock_quantity": 482 + }, + "customer": { + "name": "Michael Chen", + "age": 62, + "country": "Jordan" + } + }, + { + "natural_query": "How many orders were placed for Gilbert, Smith and Adams between 2024-07-17 and 2024-08-13?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gilbert, Smith and Adams' AND order_date BETWEEN '2024-07-17' AND '2024-08-13'", + "company": { + "name": "Gilbert, Smith and Adams", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "cut", + "category": "fight", + "price": 651.79, + "stock_quantity": 905 + }, + "customer": { + "name": "Crystal Colon", + "age": 18, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "draw", + "category": "expert", + "price": 893.53, + "stock_quantity": 339 + }, + "customer": { + "name": "Matthew Hardin", + "age": 73, + "country": "Djibouti" + } + }, + { + "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'", + "company": { + "name": "Miles Group", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "much", + "category": "eight", + "price": 553.46, + "stock_quantity": 729 + }, + "customer": { + "name": "Gerald Wells", + "age": 29, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Underwood-Castillo", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "half", + "category": "course", + "price": 575.99, + "stock_quantity": 642 + }, + "customer": { + "name": "Patricia Villarreal", + "age": 66, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Molina-Rhodes", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "our", + "category": "minute", + "price": 641.69, + "stock_quantity": 299 + }, + "customer": { + "name": "Toni Hanson", + "age": 52, + "country": "Uruguay" + } + }, + { + "natural_query": "List all customers and their total order value for Perkins-Schaefer.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Perkins-Schaefer' GROUP BY c.customer_id", + "company": { + "name": "Perkins-Schaefer", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "wide", + "category": "card", + "price": 448.02, + "stock_quantity": 518 + }, + "customer": { + "name": "Jill Gallegos", + "age": 64, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "natural_query": "What is the minimum price of all products for Foster, Willis and Bennett?", + "sql_query": "SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Foster, Willis and Bennett'", + "company": { + "name": "Foster, Willis and Bennett", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "scene", + "category": "recent", + "price": 562.45, + "stock_quantity": 217 + }, + "customer": { + "name": "Heather Lopez", + "age": 76, + "country": "Suriname" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thornton, Clark and Jimenez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thornton, Clark and Jimenez", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "statement", + "category": "population", + "price": 943.21, + "stock_quantity": 736 + }, + "customer": { + "name": "Daniel Alexander", + "age": 73, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Winters LLC", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "western", + "category": "name", + "price": 246.16, + "stock_quantity": 905 + }, + "customer": { + "name": "Jacqueline Murray", + "age": 72, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Vasquez-Chambers", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "sign", + "category": "attorney", + "price": 731.82, + "stock_quantity": 802 + }, + "customer": { + "name": "Dr. Jessica Nelson", + "age": 49, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Collins Group", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "current", + "category": "meet", + "price": 603.01, + "stock_quantity": 943 + }, + "customer": { + "name": "David Gray", + "age": 63, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Mccall, Rhodes and Case", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "court", + "category": "coach", + "price": 34.25, + "stock_quantity": 661 + }, + "customer": { + "name": "Kelli Chen", + "age": 52, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Moran Ltd", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "citizen", + "category": "key", + "price": 528.86, + "stock_quantity": 866 + }, + "customer": { + "name": "Craig Black", + "age": 19, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Hughes Inc", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "could", + "category": "us", + "price": 460.2, + "stock_quantity": 513 + }, + "customer": { + "name": "Brian Li", + "age": 26, + "country": "Kazakhstan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ramirez-Hart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ramirez-Hart", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "last", + "category": "crime", + "price": 356.17, + "stock_quantity": 664 + }, + "customer": { + "name": "Stephanie Rodriguez", + "age": 20, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Gibson, Adams and Davis", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "lead", + "category": "necessary", + "price": 306.72, + "stock_quantity": 4 + }, + "customer": { + "name": "Preston Fitzpatrick", + "age": 50, + "country": "Vietnam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martin LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martin LLC", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "idea", + "category": "space", + "price": 634.94, + "stock_quantity": 344 + }, + "customer": { + "name": "Bruce Moreno", + "age": 20, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Arroyo, Perez and Stewart", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "manager", + "category": "will", + "price": 507.59, + "stock_quantity": 594 + }, + "customer": { + "name": "Deanna Perry", + "age": 58, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Brown-White", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "television", + "category": "series", + "price": 439.07, + "stock_quantity": 413 + }, + "customer": { + "name": "Beth Brown", + "age": 66, + "country": "Belgium" + } + }, + { + "natural_query": "Show me all products in the not category with a price over $683.77.", + "sql_query": "SELECT * FROM products WHERE category = 'not' AND price > 683.77", + "company": { + "name": "Thompson Group", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "reach", + "category": "not", + "price": 683.77, + "stock_quantity": 902 + }, + "customer": { + "name": "Tammy Dixon", + "age": 27, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Kelly-Yoder", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "available", + "category": "garden", + "price": 384.39, + "stock_quantity": 175 + }, + "customer": { + "name": "Ashley Simpson", + "age": 43, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Rogers-Harris", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "in", + "category": "pass", + "price": 476.94, + "stock_quantity": 413 + }, + "customer": { + "name": "Jeffrey Burton", + "age": 76, + "country": "Heard Island and McDonald Islands" + } + }, + { + "natural_query": "How many orders were placed for Reynolds-Foster between 2024-03-27 and 2024-09-07?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Reynolds-Foster' AND order_date BETWEEN '2024-03-27' AND '2024-09-07'", + "company": { + "name": "Reynolds-Foster", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "present", + "category": "sure", + "price": 406.3, + "stock_quantity": 989 + }, + "customer": { + "name": "Kaitlyn Hayden", + "age": 46, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Hicks, Livingston and Woodward", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "nation", + "category": "save", + "price": 408.94, + "stock_quantity": 954 + }, + "customer": { + "name": "Dr. Kimberly Carter MD", + "age": 26, + "country": "Nicaragua" + } + }, + { + "natural_query": "List all customers and their total order value for Jones, Hanson and James.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Jones, Hanson and James' GROUP BY c.customer_id", + "company": { + "name": "Jones, Hanson and James", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "board", + "category": "natural", + "price": 23.97, + "stock_quantity": 716 + }, + "customer": { + "name": "James White", + "age": 73, + "country": "Benin" + } + }, + { + "natural_query": "List all customers and their total order value for Meadows-Ramirez.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Meadows-Ramirez' GROUP BY c.customer_id", + "company": { + "name": "Meadows-Ramirez", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "card", + "category": "pull", + "price": 680.98, + "stock_quantity": 194 + }, + "customer": { + "name": "Peter Fleming", + "age": 77, + "country": "Namibia" + } + }, + { + "natural_query": "List all customers and their total order value for Stone Inc.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Stone Inc' GROUP BY c.customer_id", + "company": { + "name": "Stone Inc", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "order", + "category": "your", + "price": 479.99, + "stock_quantity": 851 + }, + "customer": { + "name": "Nicole Mayo", + "age": 32, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Anderson PLC", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "table", + "category": "hospital", + "price": 85.87, + "stock_quantity": 129 + }, + "customer": { + "name": "Dawn Perez", + "age": 50, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Silva, Haney and Hernandez", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "Democrat", + "category": "arrive", + "price": 294.43, + "stock_quantity": 161 + }, + "customer": { + "name": "Joseph Harvey", + "age": 60, + "country": "Luxembourg" + } + }, + { + "natural_query": "What is the total sales for each country in Bates-Boone?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Bates-Boone' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Bates-Boone", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "under", + "category": "soon", + "price": 84.09, + "stock_quantity": 814 + }, + "customer": { + "name": "Amanda Simpson", + "age": 41, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "James-Carson", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "final", + "category": "catch", + "price": 87.32, + "stock_quantity": 969 + }, + "customer": { + "name": "Jill Powell", + "age": 47, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Ward Ltd", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "what", + "category": "light", + "price": 80.19, + "stock_quantity": 972 + }, + "customer": { + "name": "David Fuentes", + "age": 33, + "country": "Luxembourg" + } + }, + { + "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'", + "company": { + "name": "Robles-Mccarty", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "college", + "category": "total", + "price": 400.2, + "stock_quantity": 444 + }, + "customer": { + "name": "Colin Castillo", + "age": 53, + "country": "Faroe Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'King, Hines and Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "King, Hines and Miller", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "trade", + "category": "break", + "price": 942.47, + "stock_quantity": 93 + }, + "customer": { + "name": "Gina Nguyen", + "age": 62, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Gilmore-Dennis", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "onto", + "category": "though", + "price": 485.07, + "stock_quantity": 123 + }, + "customer": { + "name": "Christian Taylor", + "age": 50, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Martinez, Martin and Jimenez", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "know", + "category": "kid", + "price": 858.63, + "stock_quantity": 220 + }, + "customer": { + "name": "Jonathan Ray", + "age": 65, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "Hammond-Jackson", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "expert", + "category": "industry", + "price": 580.11, + "stock_quantity": 293 + }, + "customer": { + "name": "Kayla Robinson", + "age": 67, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Miller Group", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "despite", + "category": "affect", + "price": 751.77, + "stock_quantity": 733 + }, + "customer": { + "name": "Veronica Hall", + "age": 35, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Guzman, Wolf and Price", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "Republican", + "category": "film", + "price": 949.14, + "stock_quantity": 899 + }, + "customer": { + "name": "Dalton Ali", + "age": 79, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Meyer, Valentine and Klein", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "important", + "category": "reality", + "price": 576.76, + "stock_quantity": 876 + }, + "customer": { + "name": "Jerry Simon", + "age": 55, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Hicks Ltd", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "evening", + "category": "continue", + "price": 672.85, + "stock_quantity": 345 + }, + "customer": { + "name": "Sierra Campbell", + "age": 55, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Lewis-Pitts", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "behind", + "category": "able", + "price": 816.23, + "stock_quantity": 372 + }, + "customer": { + "name": "Jeffrey Maldonado", + "age": 19, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Ferguson Group", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "number", + "category": "run", + "price": 367.85, + "stock_quantity": 281 + }, + "customer": { + "name": "Luis Bryant", + "age": 59, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Murphy-Thomas", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "suggest", + "category": "learn", + "price": 955.54, + "stock_quantity": 539 + }, + "customer": { + "name": "Curtis Wilson", + "age": 79, + "country": "Guatemala" + } + }, + { + "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'", + "company": { + "name": "Copeland Inc", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "job", + "category": "exist", + "price": 386.56, + "stock_quantity": 476 + }, + "customer": { + "name": "Lauren Bartlett", + "age": 29, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Peterson and Sons", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "unit", + "category": "everybody", + "price": 957.5, + "stock_quantity": 638 + }, + "customer": { + "name": "Jared Thomas", + "age": 69, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "natural_query": "What is the average price of all products for Hobbs-Peters?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Hobbs-Peters'", + "company": { + "name": "Hobbs-Peters", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "professor", + "category": "focus", + "price": 497.02, + "stock_quantity": 136 + }, + "customer": { + "name": "Katie Phelps", + "age": 80, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Martin-Reed", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "voice", + "category": "price", + "price": 394.2, + "stock_quantity": 290 + }, + "customer": { + "name": "Gerald Rivers", + "age": 49, + "country": "Denmark" + } + }, + { + "natural_query": "How many orders were placed for Hunter, Williams and Sullivan between 2024-08-21 and 2024-08-24?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Hunter, Williams and Sullivan' AND order_date BETWEEN '2024-08-21' AND '2024-08-24'", + "company": { + "name": "Hunter, Williams and Sullivan", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "open", + "category": "bad", + "price": 329.02, + "stock_quantity": 789 + }, + "customer": { + "name": "Amber Brown", + "age": 58, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Gibson LLC", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "fight", + "category": "it", + "price": 117.99, + "stock_quantity": 347 + }, + "customer": { + "name": "John Robinson", + "age": 31, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Franklin LLC", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "walk", + "category": "American", + "price": 443.14, + "stock_quantity": 83 + }, + "customer": { + "name": "Frank Owens", + "age": 29, + "country": "Bahamas" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stanley, Henderson and Ritter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stanley, Henderson and Ritter", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "better", + "category": "it", + "price": 879.26, + "stock_quantity": 271 + }, + "customer": { + "name": "Amy Lamb", + "age": 77, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Davenport-Gardner", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "often", + "category": "seem", + "price": 285.35, + "stock_quantity": 323 + }, + "customer": { + "name": "Jeffrey Nelson", + "age": 44, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Harris Inc", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "debate", + "category": "business", + "price": 634.9, + "stock_quantity": 286 + }, + "customer": { + "name": "Susan Larson", + "age": 78, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Acosta, Farrell and Jordan", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "all", + "category": "production", + "price": 389.93, + "stock_quantity": 233 + }, + "customer": { + "name": "Amy Thomas", + "age": 27, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Lee-Rodriguez", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "detail", + "category": "recognize", + "price": 389.86, + "stock_quantity": 721 + }, + "customer": { + "name": "Michael Cabrera", + "age": 63, + "country": "Gabon" + } + }, + { + "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'", + "company": { + "name": "Larson-Parker", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "personal", + "category": "dog", + "price": 925.84, + "stock_quantity": 322 + }, + "customer": { + "name": "Michael Cook", + "age": 19, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Perez Group", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "authority", + "category": "end", + "price": 830.45, + "stock_quantity": 816 + }, + "customer": { + "name": "Jessica Evans", + "age": 65, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Allen-Williams", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "institution", + "category": "couple", + "price": 852.77, + "stock_quantity": 761 + }, + "customer": { + "name": "Jacob Frank", + "age": 69, + "country": "Western Sahara" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Woods-Morgan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Woods-Morgan", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "cost", + "category": "this", + "price": 275.77, + "stock_quantity": 743 + }, + "customer": { + "name": "Matthew Alexander", + "age": 55, + "country": "Kazakhstan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sparks, Hogan and Robbins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sparks, Hogan and Robbins", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "risk", + "category": "woman", + "price": 586.25, + "stock_quantity": 266 + }, + "customer": { + "name": "Martha Allen", + "age": 67, + "country": "French Polynesia" + } + }, + { + "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'", + "company": { + "name": "Baker and Sons", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "off", + "category": "man", + "price": 30.86, + "stock_quantity": 221 + }, + "customer": { + "name": "Jane Lamb", + "age": 34, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Cooper, Gonzales and James", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "somebody", + "category": "we", + "price": 249.76, + "stock_quantity": 785 + }, + "customer": { + "name": "Charles Gilbert", + "age": 77, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Garcia-Murray", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "final", + "category": "religious", + "price": 32.58, + "stock_quantity": 286 + }, + "customer": { + "name": "Crystal Cobb", + "age": 42, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Smith, Harrison and Gibson", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "assume", + "category": "wind", + "price": 392.16, + "stock_quantity": 16 + }, + "customer": { + "name": "April Collins", + "age": 60, + "country": "Somalia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Griffin and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Griffin and Sons", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "top", + "category": "learn", + "price": 514.34, + "stock_quantity": 291 + }, + "customer": { + "name": "Laura Ellis", + "age": 65, + "country": "Fiji" + } + }, + { + "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", + "company": { + "name": "Sanford LLC", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "fire", + "category": "certain", + "price": 936.22, + "stock_quantity": 732 + }, + "customer": { + "name": "David Reese", + "age": 64, + "country": "Algeria" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Randolph Group for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Randolph Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Randolph Group", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "program", + "category": "friend", + "price": 272.12, + "stock_quantity": 812 + }, + "customer": { + "name": "Scott Hunter", + "age": 56, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Alexander, Bass and Rich", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "hold", + "category": "success", + "price": 316.85, + "stock_quantity": 578 + }, + "customer": { + "name": "Bridget Foster", + "age": 51, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Hart-Simpson", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "attorney", + "category": "could", + "price": 722.52, + "stock_quantity": 395 + }, + "customer": { + "name": "Michael Travis", + "age": 76, + "country": "Iran" + } + }, + { + "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'", + "company": { + "name": "Jackson Group", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "consumer", + "category": "success", + "price": 443.22, + "stock_quantity": 558 + }, + "customer": { + "name": "Melissa Bush", + "age": 58, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Navarro Group", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "value", + "category": "government", + "price": 867.98, + "stock_quantity": 178 + }, + "customer": { + "name": "Aimee Bradford", + "age": 49, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Reynolds Group", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "large", + "category": "available", + "price": 270.75, + "stock_quantity": 451 + }, + "customer": { + "name": "Nicole Chandler", + "age": 20, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Fowler-Nelson", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "director", + "category": "hour", + "price": 924.75, + "stock_quantity": 343 + }, + "customer": { + "name": "Barbara Phillips", + "age": 69, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Hodges, Hardy and Crawford", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "human", + "category": "career", + "price": 247.4, + "stock_quantity": 303 + }, + "customer": { + "name": "Hector Green", + "age": 42, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Moore, Zimmerman and Jackson", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "fall", + "category": "win", + "price": 918.92, + "stock_quantity": 247 + }, + "customer": { + "name": "Stephen Baldwin", + "age": 42, + "country": "Russian Federation" + } + }, + { + "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", + "company": { + "name": "Bowman-Higgins", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "a", + "category": "edge", + "price": 860.79, + "stock_quantity": 25 + }, + "customer": { + "name": "Anna Owens", + "age": 37, + "country": "Suriname" + } + }, + { + "natural_query": "What is the total sales for each supplier in Carlson, Weaver and Meyer?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carlson, Weaver and Meyer' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Carlson, Weaver and Meyer", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "stage", + "category": "blood", + "price": 791.21, + "stock_quantity": 639 + }, + "customer": { + "name": "Joshua Lewis", + "age": 69, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Campbell-Gomez", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "spend", + "category": "likely", + "price": 787.68, + "stock_quantity": 445 + }, + "customer": { + "name": "Katherine Shaw", + "age": 56, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Wade Group", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "from", + "category": "man", + "price": 676.33, + "stock_quantity": 107 + }, + "customer": { + "name": "Emily Johnson", + "age": 47, + "country": "Nicaragua" + } + }, + { + "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'", + "company": { + "name": "Ruiz-Harding", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "see", + "category": "throughout", + "price": 63.62, + "stock_quantity": 570 + }, + "customer": { + "name": "Brett Payne", + "age": 68, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Lewis-Mclaughlin", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "major", + "category": "personal", + "price": 986.57, + "stock_quantity": 148 + }, + "customer": { + "name": "Amanda Lewis", + "age": 18, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Davies, Washington and Perez", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "doctor", + "category": "explain", + "price": 727.52, + "stock_quantity": 671 + }, + "customer": { + "name": "Jeremy Myers", + "age": 31, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Matthews, Sullivan and Rose", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "beautiful", + "category": "current", + "price": 619.2, + "stock_quantity": 680 + }, + "customer": { + "name": "Peter Long", + "age": 60, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Williams-Keith", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "guess", + "category": "live", + "price": 690.15, + "stock_quantity": 367 + }, + "customer": { + "name": "Brian Smith", + "age": 58, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Moore, King and Howell", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "blue", + "category": "morning", + "price": 157.59, + "stock_quantity": 664 + }, + "customer": { + "name": "Nancy Shaw", + "age": 66, + "country": "Mali" + } + }, + { + "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", + "company": { + "name": "Wade-Thompson", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "call", + "category": "message", + "price": 572.91, + "stock_quantity": 50 + }, + "customer": { + "name": "Danny Deleon", + "age": 60, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Taylor Group", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "country", + "category": "reveal", + "price": 751.35, + "stock_quantity": 908 + }, + "customer": { + "name": "Scott Atkins", + "age": 52, + "country": "Congo" + } + }, + { + "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'", + "company": { + "name": "Hogan-Wong", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "five", + "category": "building", + "price": 201.6, + "stock_quantity": 170 + }, + "customer": { + "name": "Seth Wade", + "age": 77, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Martinez-Orozco", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "decade", + "category": "song", + "price": 715.23, + "stock_quantity": 43 + }, + "customer": { + "name": "Melanie Madden", + "age": 52, + "country": "Sri Lanka" + } + }, + { + "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'", + "company": { + "name": "Becker and Sons", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "billion", + "category": "letter", + "price": 258.64, + "stock_quantity": 7 + }, + "customer": { + "name": "Kristen Lam", + "age": 45, + "country": "Mozambique" + } + }, + { + "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'", + "company": { + "name": "Jones-Nelson", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "catch", + "category": "test", + "price": 808.38, + "stock_quantity": 241 + }, + "customer": { + "name": "Johnny Sosa", + "age": 40, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Watson-Macias", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "rule", + "category": "nation", + "price": 339.12, + "stock_quantity": 490 + }, + "customer": { + "name": "Stephanie Morris", + "age": 35, + "country": "Dominican Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lee Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lee Group", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "small", + "category": "vote", + "price": 967.05, + "stock_quantity": 82 + }, + "customer": { + "name": "Mark Harmon", + "age": 18, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Lamb, Hudson and Carpenter", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "model", + "category": "series", + "price": 249.72, + "stock_quantity": 640 + }, + "customer": { + "name": "Brittany Walker", + "age": 46, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Martin, Garcia and Hamilton", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "smile", + "category": "very", + "price": 133.15, + "stock_quantity": 664 + }, + "customer": { + "name": "Patrick Burns", + "age": 29, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Ramirez Inc", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "professional", + "category": "take", + "price": 202.84, + "stock_quantity": 379 + }, + "customer": { + "name": "Gregory Boone", + "age": 29, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Valdez LLC", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "bar", + "category": "back", + "price": 566.73, + "stock_quantity": 982 + }, + "customer": { + "name": "Jennifer Rogers", + "age": 76, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Mann, Parker and Kline", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "science", + "category": "physical", + "price": 141.07, + "stock_quantity": 39 + }, + "customer": { + "name": "Rebecca Patton", + "age": 57, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Copeland and Sons", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "minute", + "category": "cover", + "price": 193.59, + "stock_quantity": 96 + }, + "customer": { + "name": "Amber Lopez", + "age": 34, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Bruce Ltd", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "believe", + "category": "ball", + "price": 167.81, + "stock_quantity": 872 + }, + "customer": { + "name": "Daniel Warren", + "age": 62, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Jones, Reed and Robertson", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "along", + "category": "clear", + "price": 414.1, + "stock_quantity": 760 + }, + "customer": { + "name": "Christopher May", + "age": 68, + "country": "Netherlands Antilles" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Goodman, Todd and Walton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Goodman, Todd and Walton", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "strategy", + "category": "nice", + "price": 767.2, + "stock_quantity": 29 + }, + "customer": { + "name": "Michael Gibbs", + "age": 72, + "country": "Vietnam" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Dillon, Rice and West for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dillon, Rice and West'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dillon, Rice and West", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "line", + "category": "career", + "price": 862.22, + "stock_quantity": 336 + }, + "customer": { + "name": "Tyler Park", + "age": 50, + "country": "Tajikistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Braun LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Braun LLC", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "back", + "category": "necessary", + "price": 44.34, + "stock_quantity": 608 + }, + "customer": { + "name": "Brandon Hernandez", + "age": 60, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Flynn, Jackson and Sandoval", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "floor", + "category": "exist", + "price": 174.26, + "stock_quantity": 372 + }, + "customer": { + "name": "Madison Castro", + "age": 66, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Miller PLC", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "yard", + "category": "lawyer", + "price": 293.15, + "stock_quantity": 200 + }, + "customer": { + "name": "Alicia Davis", + "age": 23, + "country": "Iran" + } + }, + { + "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'", + "company": { + "name": "Klein PLC", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "else", + "category": "night", + "price": 423.35, + "stock_quantity": 613 + }, + "customer": { + "name": "Jamie Hill", + "age": 29, + "country": "Iran" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Vasquez PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Vasquez PLC", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "bill", + "category": "project", + "price": 892.9, + "stock_quantity": 372 + }, + "customer": { + "name": "Gregory Barr", + "age": 69, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Soto Group", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "detail", + "category": "area", + "price": 168.25, + "stock_quantity": 423 + }, + "customer": { + "name": "Russell Cummings", + "age": 58, + "country": "Qatar" + } + }, + { + "natural_query": "Show me all products in the have category with a price over $281.93.", + "sql_query": "SELECT * FROM products WHERE category = 'have' AND price > 281.93", + "company": { + "name": "Spears PLC", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "town", + "category": "have", + "price": 281.93, + "stock_quantity": 56 + }, + "customer": { + "name": "James Berg", + "age": 28, + "country": "American Samoa" + } + }, + { + "natural_query": "What are the top 3 products by customers for Sampson-Williamson this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sampson-Williamson' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3", + "company": { + "name": "Sampson-Williamson", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "job", + "category": "although", + "price": 861.84, + "stock_quantity": 625 + }, + "customer": { + "name": "Matthew Moreno", + "age": 35, + "country": "Honduras" + } + }, + { + "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'", + "company": { + "name": "Mahoney, Williams and Craig", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "focus", + "category": "many", + "price": 319.62, + "stock_quantity": 831 + }, + "customer": { + "name": "Erika Carter", + "age": 55, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Price, Reeves and Cooper", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "perhaps", + "category": "respond", + "price": 566.64, + "stock_quantity": 100 + }, + "customer": { + "name": "Amanda Hoffman", + "age": 72, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Howard Inc", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "sister", + "category": "statement", + "price": 52.72, + "stock_quantity": 513 + }, + "customer": { + "name": "Dominic Sweeney", + "age": 43, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Griffin Group", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "him", + "category": "care", + "price": 808.78, + "stock_quantity": 727 + }, + "customer": { + "name": "Valerie Matthews", + "age": 20, + "country": "Northern Mariana Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lawrence-West'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lawrence-West", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "customer", + "category": "attention", + "price": 259.18, + "stock_quantity": 423 + }, + "customer": { + "name": "John Meyer", + "age": 68, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Berry PLC", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "wall", + "category": "itself", + "price": 461.34, + "stock_quantity": 279 + }, + "customer": { + "name": "Todd Aguilar", + "age": 19, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Vasquez PLC", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "animal", + "category": "since", + "price": 884.88, + "stock_quantity": 283 + }, + "customer": { + "name": "Amanda Peters", + "age": 44, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Shepherd PLC", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "social", + "category": "institution", + "price": 395.36, + "stock_quantity": 799 + }, + "customer": { + "name": "Douglas Moore", + "age": 48, + "country": "Switzerland" + } + }, + { + "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'", + "company": { + "name": "Campbell, Brown and Owens", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "or", + "category": "admit", + "price": 529.66, + "stock_quantity": 480 + }, + "customer": { + "name": "Sophia Martin", + "age": 34, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Thomas Ltd", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "bank", + "category": "continue", + "price": 801.43, + "stock_quantity": 659 + }, + "customer": { + "name": "Desiree Mahoney", + "age": 66, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Wolfe, Scott and Miller", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "western", + "category": "eye", + "price": 624.85, + "stock_quantity": 330 + }, + "customer": { + "name": "Tyler Garcia", + "age": 29, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Powell-Lewis", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "million", + "category": "voice", + "price": 992.45, + "stock_quantity": 342 + }, + "customer": { + "name": "James Holmes", + "age": 19, + "country": "Oman" + } + }, + { + "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", + "company": { + "name": "Gaines-Sandoval", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "brother", + "category": "about", + "price": 716.0, + "stock_quantity": 672 + }, + "customer": { + "name": "Kelly Goodman", + "age": 24, + "country": "Malta" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams, Anderson and Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams, Anderson and Campbell", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "foreign", + "category": "rule", + "price": 250.5, + "stock_quantity": 353 + }, + "customer": { + "name": "Robert Boyle", + "age": 62, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Garrett-Hernandez", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "letter", + "category": "huge", + "price": 696.84, + "stock_quantity": 42 + }, + "customer": { + "name": "Lorraine York", + "age": 71, + "country": "Germany" + } + }, + { + "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'", + "company": { + "name": "Cortez Group", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "project", + "category": "try", + "price": 315.62, + "stock_quantity": 948 + }, + "customer": { + "name": "Kenneth Martin", + "age": 54, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Greene-Hood", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "able", + "category": "others", + "price": 638.58, + "stock_quantity": 261 + }, + "customer": { + "name": "Martin Wheeler", + "age": 18, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller-Ward'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller-Ward", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "popular", + "category": "reveal", + "price": 266.93, + "stock_quantity": 85 + }, + "customer": { + "name": "Brooke Lewis", + "age": 71, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Gonzalez, Garcia and Gonzalez", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "card", + "category": "million", + "price": 508.9, + "stock_quantity": 845 + }, + "customer": { + "name": "Gloria Coleman", + "age": 27, + "country": "Barbados" + } + }, + { + "natural_query": "How many orders were placed for Clark, Kelly and Curry between 2023-11-27 and 2024-04-22?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Clark, Kelly and Curry' AND order_date BETWEEN '2023-11-27' AND '2024-04-22'", + "company": { + "name": "Clark, Kelly and Curry", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "you", + "category": "despite", + "price": 192.91, + "stock_quantity": 81 + }, + "customer": { + "name": "Arthur Perez", + "age": 48, + "country": "United States Minor Outlying Islands" + } + }, + { + "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'", + "company": { + "name": "French-Shaw", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "American", + "category": "support", + "price": 906.73, + "stock_quantity": 270 + }, + "customer": { + "name": "Joshua Duran", + "age": 24, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "Morales, Page and Lloyd", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "fall", + "category": "front", + "price": 346.09, + "stock_quantity": 937 + }, + "customer": { + "name": "Christopher Walton", + "age": 40, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Wilcox-Martin", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "effort", + "category": "kid", + "price": 369.89, + "stock_quantity": 207 + }, + "customer": { + "name": "Andres Gonzalez", + "age": 72, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Johnson, Myers and Austin", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "establish", + "category": "each", + "price": 11.86, + "stock_quantity": 65 + }, + "customer": { + "name": "Daniel Morales", + "age": 28, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Johnson and Sons", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "short", + "category": "final", + "price": 798.79, + "stock_quantity": 134 + }, + "customer": { + "name": "Kaitlyn Simpson", + "age": 63, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "House Inc", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "until", + "category": "day", + "price": 135.87, + "stock_quantity": 415 + }, + "customer": { + "name": "Christopher Richards", + "age": 31, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Salinas-Holloway", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "whole", + "category": "note", + "price": 197.47, + "stock_quantity": 481 + }, + "customer": { + "name": "Margaret Williams", + "age": 34, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Jackson PLC", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "mission", + "category": "miss", + "price": 826.72, + "stock_quantity": 928 + }, + "customer": { + "name": "Laura Stone", + "age": 51, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Cook PLC", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "successful", + "category": "north", + "price": 11.65, + "stock_quantity": 778 + }, + "customer": { + "name": "Lori Horn", + "age": 28, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Paul Inc", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "hour", + "category": "people", + "price": 891.42, + "stock_quantity": 138 + }, + "customer": { + "name": "Daniel Boone", + "age": 59, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Long, Turner and Richards", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "general", + "category": "low", + "price": 396.67, + "stock_quantity": 652 + }, + "customer": { + "name": "Nicholas Martin", + "age": 43, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Nelson-Riley", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "he", + "category": "pay", + "price": 352.1, + "stock_quantity": 188 + }, + "customer": { + "name": "Tracey Hickman", + "age": 75, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Wilson-Yoder", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "site", + "category": "this", + "price": 753.97, + "stock_quantity": 431 + }, + "customer": { + "name": "Dr. Emily Brown MD", + "age": 80, + "country": "Mali" + } + }, + { + "natural_query": "What is the average price of all products for Collins, English and Wright?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Collins, English and Wright'", + "company": { + "name": "Collins, English and Wright", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "small", + "category": "teach", + "price": 531.02, + "stock_quantity": 805 + }, + "customer": { + "name": "Brenda Howe", + "age": 34, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Becker, Brooks and Huang", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "risk", + "category": "discover", + "price": 400.47, + "stock_quantity": 160 + }, + "customer": { + "name": "Richard French", + "age": 69, + "country": "Angola" + } + }, + { + "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'", + "company": { + "name": "Alvarez-Jones", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "top", + "category": "result", + "price": 297.59, + "stock_quantity": 451 + }, + "customer": { + "name": "Mark Johnson", + "age": 51, + "country": "Bosnia and Herzegovina" + } + }, + { + "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'", + "company": { + "name": "Carter PLC", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "summer", + "category": "eye", + "price": 847.78, + "stock_quantity": 327 + }, + "customer": { + "name": "Derek Yang", + "age": 26, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Green-Roman", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "already", + "category": "station", + "price": 712.47, + "stock_quantity": 704 + }, + "customer": { + "name": "Anthony Reid", + "age": 18, + "country": "Vanuatu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hurst, Craig and Hernandez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hurst, Craig and Hernandez", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "family", + "category": "middle", + "price": 664.88, + "stock_quantity": 956 + }, + "customer": { + "name": "Julie Burton", + "age": 36, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Palmer-Cummings", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "despite", + "category": "size", + "price": 500.74, + "stock_quantity": 138 + }, + "customer": { + "name": "Teresa Perez", + "age": 35, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Crawford-Moon", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "last", + "category": "position", + "price": 664.57, + "stock_quantity": 7 + }, + "customer": { + "name": "Meghan Crane", + "age": 34, + "country": "Swaziland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis-Frazier'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis-Frazier", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "maintain", + "category": "floor", + "price": 534.56, + "stock_quantity": 226 + }, + "customer": { + "name": "Carly Novak", + "age": 70, + "country": "Wallis and Futuna" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hughes Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hughes Group", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "sign", + "category": "rate", + "price": 121.76, + "stock_quantity": 943 + }, + "customer": { + "name": "Cheryl Henderson", + "age": 34, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Howard Inc", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "true", + "category": "require", + "price": 937.28, + "stock_quantity": 203 + }, + "customer": { + "name": "Jessica Brown", + "age": 20, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Ellis-Hoffman", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "save", + "category": "happen", + "price": 613.6, + "stock_quantity": 161 + }, + "customer": { + "name": "Alex Simon", + "age": 78, + "country": "Ethiopia" + } + }, + { + "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'", + "company": { + "name": "Nichols-Holland", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "instead", + "category": "black", + "price": 856.4, + "stock_quantity": 60 + }, + "customer": { + "name": "Brandon Parker", + "age": 74, + "country": "Lebanon" + } + }, + { + "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'", + "company": { + "name": "Martin, Collins and Martin", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "middle", + "category": "despite", + "price": 814.26, + "stock_quantity": 999 + }, + "customer": { + "name": "Michael Rose", + "age": 45, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Bailey-Cole", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "task", + "category": "figure", + "price": 865.78, + "stock_quantity": 619 + }, + "customer": { + "name": "Adam Hall", + "age": 39, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Williams and Sons", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "however", + "category": "when", + "price": 699.34, + "stock_quantity": 998 + }, + "customer": { + "name": "Anthony Smith", + "age": 71, + "country": "Northern Mariana Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis, Bright and Wiggins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis, Bright and Wiggins", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "song", + "category": "sea", + "price": 694.85, + "stock_quantity": 707 + }, + "customer": { + "name": "Jose Brown", + "age": 45, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Bond, Bridges and Lowery", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "room", + "category": "behind", + "price": 102.12, + "stock_quantity": 739 + }, + "customer": { + "name": "Jenna Garcia", + "age": 52, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Wilson, Jones and Kaufman", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "majority", + "category": "example", + "price": 255.38, + "stock_quantity": 775 + }, + "customer": { + "name": "Steven Rodriguez", + "age": 62, + "country": "Saint Martin" + } + }, + { + "natural_query": "List all products of Daniels Group ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Daniels Group' ORDER BY price ASC", + "company": { + "name": "Daniels Group", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "campaign", + "category": "determine", + "price": 807.04, + "stock_quantity": 525 + }, + "customer": { + "name": "April Benitez", + "age": 61, + "country": "Albania" + } + }, + { + "natural_query": "What is the total quantity for each supplier in Munoz-Hammond?", + "sql_query": "SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Munoz-Hammond' GROUP BY supplier ORDER BY total_quantity DESC", + "company": { + "name": "Munoz-Hammond", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "energy", + "category": "blue", + "price": 263.45, + "stock_quantity": 323 + }, + "customer": { + "name": "Lawrence Johnson", + "age": 33, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Smith, Erickson and Williams", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "bit", + "category": "during", + "price": 35.35, + "stock_quantity": 716 + }, + "customer": { + "name": "Keith Evans", + "age": 62, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Hansen PLC", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "lawyer", + "category": "improve", + "price": 818.24, + "stock_quantity": 49 + }, + "customer": { + "name": "Anne May", + "age": 63, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Serrano-Kim", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "or", + "category": "rest", + "price": 794.21, + "stock_quantity": 698 + }, + "customer": { + "name": "Stephanie Myers", + "age": 47, + "country": "Sri Lanka" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith Group", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "no", + "category": "raise", + "price": 78.46, + "stock_quantity": 393 + }, + "customer": { + "name": "Jodi Perez", + "age": 32, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Collins-Brown", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "main", + "category": "value", + "price": 47.98, + "stock_quantity": 815 + }, + "customer": { + "name": "Brandon Ray", + "age": 80, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Owens PLC", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "agency", + "category": "either", + "price": 215.37, + "stock_quantity": 343 + }, + "customer": { + "name": "Nicole Jones", + "age": 29, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Jenkins, Kelley and Green", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "accept", + "category": "develop", + "price": 329.33, + "stock_quantity": 796 + }, + "customer": { + "name": "Tracy Johnston", + "age": 46, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Brown Inc", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "again", + "category": "inside", + "price": 415.37, + "stock_quantity": 976 + }, + "customer": { + "name": "Craig Lee", + "age": 74, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Parker-Tate", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "marriage", + "category": "grow", + "price": 531.71, + "stock_quantity": 750 + }, + "customer": { + "name": "Andrew Frederick", + "age": 28, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Jackson-Stevens", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "item", + "category": "figure", + "price": 826.66, + "stock_quantity": 986 + }, + "customer": { + "name": "William Chavez", + "age": 75, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Allen Ltd", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "quality", + "category": "behind", + "price": 90.39, + "stock_quantity": 117 + }, + "customer": { + "name": "Sydney Meyer", + "age": 21, + "country": "San Marino" + } + }, + { + "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'", + "company": { + "name": "Malone-Stewart", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "fill", + "category": "house", + "price": 252.5, + "stock_quantity": 568 + }, + "customer": { + "name": "Kim Brown", + "age": 48, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Smith Ltd", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "policy", + "category": "gas", + "price": 308.25, + "stock_quantity": 560 + }, + "customer": { + "name": "Erin Smith", + "age": 71, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Bennett-Kelly", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "budget", + "category": "community", + "price": 437.08, + "stock_quantity": 374 + }, + "customer": { + "name": "Vanessa Cross", + "age": 30, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Salas PLC", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "travel", + "category": "boy", + "price": 655.89, + "stock_quantity": 472 + }, + "customer": { + "name": "Jason Clark", + "age": 58, + "country": "France" + } + }, + { + "natural_query": "What are the top 10 products by sales for Hobbs-Santiago this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hobbs-Santiago' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10", + "company": { + "name": "Hobbs-Santiago", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "ago", + "category": "trial", + "price": 954.05, + "stock_quantity": 608 + }, + "customer": { + "name": "Jeffrey Martin DDS", + "age": 19, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "natural_query": "What is the average price of all products for Pratt, Watkins and Johnson?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Pratt, Watkins and Johnson'", + "company": { + "name": "Pratt, Watkins and Johnson", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "sign", + "category": "sit", + "price": 630.67, + "stock_quantity": 551 + }, + "customer": { + "name": "Dana Perez", + "age": 35, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Anderson-Russell", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "father", + "category": "nothing", + "price": 224.35, + "stock_quantity": 865 + }, + "customer": { + "name": "Angela Peterson", + "age": 46, + "country": "Guinea-Bissau" + } + }, + { + "natural_query": "What is the maximum quantity of all products for Nichols, Roberts and Clayton?", + "sql_query": "SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Nichols, Roberts and Clayton'", + "company": { + "name": "Nichols, Roberts and Clayton", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "camera", + "category": "anyone", + "price": 778.6, + "stock_quantity": 241 + }, + "customer": { + "name": "Daniel Cox", + "age": 49, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Saunders, Cohen and Nunez", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "account", + "category": "seem", + "price": 883.92, + "stock_quantity": 665 + }, + "customer": { + "name": "Jimmy Moore", + "age": 40, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'George-Perry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "George-Perry", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "what", + "category": "affect", + "price": 156.36, + "stock_quantity": 596 + }, + "customer": { + "name": "Destiny Gonzalez", + "age": 49, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Martinez, Weeks and Graham", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "item", + "category": "almost", + "price": 427.15, + "stock_quantity": 692 + }, + "customer": { + "name": "Nicholas Khan", + "age": 30, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Elliott, Jones and Gonzalez", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "why", + "category": "true", + "price": 229.84, + "stock_quantity": 885 + }, + "customer": { + "name": "Karina Liu", + "age": 64, + "country": "Chile" + } + }, + { + "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", + "company": { + "name": "Hickman, Austin and Bean", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "fear", + "category": "term", + "price": 284.05, + "stock_quantity": 832 + }, + "customer": { + "name": "Darren Smith", + "age": 31, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Ortiz-Smith", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "however", + "category": "money", + "price": 253.03, + "stock_quantity": 10 + }, + "customer": { + "name": "Joshua Hunter", + "age": 79, + "country": "Chile" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jefferson and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jefferson and Sons", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "summer", + "category": "everything", + "price": 369.65, + "stock_quantity": 302 + }, + "customer": { + "name": "Dawn Koch", + "age": 57, + "country": "Andorra" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson PLC", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "choice", + "category": "alone", + "price": 723.46, + "stock_quantity": 285 + }, + "customer": { + "name": "Brian Bradley", + "age": 36, + "country": "Greece" + } + }, + { + "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'", + "company": { + "name": "Smith, Cooper and Jordan", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "situation", + "category": "article", + "price": 521.48, + "stock_quantity": 362 + }, + "customer": { + "name": "Stephanie Mueller", + "age": 53, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Woods, Smith and Gutierrez", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "off", + "category": "last", + "price": 293.54, + "stock_quantity": 846 + }, + "customer": { + "name": "Amanda Wilson", + "age": 49, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Clark and Sons", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "thousand", + "category": "up", + "price": 330.68, + "stock_quantity": 147 + }, + "customer": { + "name": "Tiffany Rodriguez", + "age": 62, + "country": "Cook Islands" + } + }, + { + "natural_query": "List all customers and their total order value for Sutton Group.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Sutton Group' GROUP BY c.customer_id", + "company": { + "name": "Sutton Group", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "increase", + "category": "time", + "price": 833.13, + "stock_quantity": 776 + }, + "customer": { + "name": "Brendan Vaughn", + "age": 75, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Wilson, Peterson and Wilson", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "discover", + "category": "baby", + "price": 813.91, + "stock_quantity": 28 + }, + "customer": { + "name": "Jessica Francis", + "age": 32, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "James LLC", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "why", + "category": "moment", + "price": 421.27, + "stock_quantity": 999 + }, + "customer": { + "name": "Jesse Lopez", + "age": 47, + "country": "Isle of Man" + } + }, + { + "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'", + "company": { + "name": "Campbell, Garcia and Reese", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "inside", + "category": "size", + "price": 830.67, + "stock_quantity": 489 + }, + "customer": { + "name": "Kelly Gordon", + "age": 53, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Palmer LLC", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "hot", + "category": "whose", + "price": 568.29, + "stock_quantity": 469 + }, + "customer": { + "name": "Brian Bird", + "age": 60, + "country": "Uruguay" + } + }, + { + "natural_query": "List all products of Hill LLC ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Hill LLC' ORDER BY price ASC", + "company": { + "name": "Hill LLC", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "next", + "category": "bar", + "price": 916.45, + "stock_quantity": 522 + }, + "customer": { + "name": "Dave Fitzpatrick", + "age": 55, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Mooney PLC", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "simple", + "category": "there", + "price": 444.66, + "stock_quantity": 68 + }, + "customer": { + "name": "Julie Evans", + "age": 61, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Howard and Sons", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "fast", + "category": "clear", + "price": 300.5, + "stock_quantity": 79 + }, + "customer": { + "name": "Lorraine Hernandez", + "age": 77, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Porter Group", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "myself", + "category": "reason", + "price": 710.08, + "stock_quantity": 38 + }, + "customer": { + "name": "Justin Davis", + "age": 65, + "country": "Tuvalu" + } + }, + { + "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", + "company": { + "name": "Wilson-Mendoza", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "opportunity", + "category": "energy", + "price": 969.89, + "stock_quantity": 924 + }, + "customer": { + "name": "Natalie Norman", + "age": 55, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Stuart-Perez", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "she", + "category": "treat", + "price": 966.81, + "stock_quantity": 249 + }, + "customer": { + "name": "Nathan Campbell", + "age": 48, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Fry, Garcia and Lee", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "education", + "category": "everybody", + "price": 909.84, + "stock_quantity": 334 + }, + "customer": { + "name": "Jennifer Francis", + "age": 28, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Howard-Greene", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "be", + "category": "raise", + "price": 351.07, + "stock_quantity": 242 + }, + "customer": { + "name": "Debbie Werner", + "age": 34, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Smith-Wallace", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "society", + "category": "court", + "price": 634.11, + "stock_quantity": 606 + }, + "customer": { + "name": "Jeremy Garner", + "age": 31, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Myers and Sons", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "brother", + "category": "debate", + "price": 680.74, + "stock_quantity": 374 + }, + "customer": { + "name": "Michele Holmes", + "age": 67, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Weiss Group", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "arrive", + "category": "debate", + "price": 167.7, + "stock_quantity": 865 + }, + "customer": { + "name": "Linda Benton", + "age": 50, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Alexander-Mueller", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "sure", + "category": "low", + "price": 287.52, + "stock_quantity": 318 + }, + "customer": { + "name": "Laura Peterson", + "age": 59, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Smith-Cooley", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "seem", + "category": "important", + "price": 306.91, + "stock_quantity": 841 + }, + "customer": { + "name": "Connie Salazar", + "age": 42, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Kelly, Wang and Phillips", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "strong", + "category": "mother", + "price": 541.76, + "stock_quantity": 977 + }, + "customer": { + "name": "Debra Stone", + "age": 80, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Roach-Holmes", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "director", + "category": "keep", + "price": 783.68, + "stock_quantity": 925 + }, + "customer": { + "name": "Amanda Baker", + "age": 80, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Berry, Solomon and Leonard", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "down", + "category": "actually", + "price": 832.89, + "stock_quantity": 546 + }, + "customer": { + "name": "Haley Hunt", + "age": 44, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Vasquez Inc", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "yes", + "category": "few", + "price": 135.06, + "stock_quantity": 218 + }, + "customer": { + "name": "Heather Gibson", + "age": 25, + "country": "Fiji" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hines Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hines Inc", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "also", + "category": "history", + "price": 127.15, + "stock_quantity": 826 + }, + "customer": { + "name": "Mary Reyes", + "age": 25, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Miller-Young", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "score", + "category": "result", + "price": 773.72, + "stock_quantity": 137 + }, + "customer": { + "name": "Angela Farrell", + "age": 70, + "country": "Benin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ellison Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ellison Inc", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "try", + "category": "life", + "price": 940.27, + "stock_quantity": 773 + }, + "customer": { + "name": "Jo Aguirre", + "age": 43, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Walker, Hale and Walker", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "sister", + "category": "national", + "price": 328.43, + "stock_quantity": 3 + }, + "customer": { + "name": "Jeff Mcmillan", + "age": 59, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Gallegos, Bullock and Wilson", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "me", + "category": "eye", + "price": 513.16, + "stock_quantity": 721 + }, + "customer": { + "name": "Cynthia Welch", + "age": 69, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Harper, Mcdowell and Watson", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "hotel", + "category": "politics", + "price": 160.82, + "stock_quantity": 751 + }, + "customer": { + "name": "Todd Martin", + "age": 62, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Weber, Hansen and Long", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "hand", + "category": "cover", + "price": 522.67, + "stock_quantity": 770 + }, + "customer": { + "name": "Deborah Russell", + "age": 63, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Walls-Bailey", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "start", + "category": "history", + "price": 954.88, + "stock_quantity": 19 + }, + "customer": { + "name": "Joshua Neal", + "age": 79, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Johnson-Rivera", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "buy", + "category": "avoid", + "price": 767.26, + "stock_quantity": 61 + }, + "customer": { + "name": "Christina Reed", + "age": 45, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Smith, Evans and Hardin", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "under", + "category": "fast", + "price": 459.54, + "stock_quantity": 614 + }, + "customer": { + "name": "Tara Patterson", + "age": 34, + "country": "Papua New Guinea" + } + }, + { + "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'", + "company": { + "name": "Young, Ayala and Perez", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "common", + "category": "role", + "price": 80.33, + "stock_quantity": 217 + }, + "customer": { + "name": "Diana Landry", + "age": 20, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Bishop, Heath and Miller", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "around", + "category": "source", + "price": 138.11, + "stock_quantity": 639 + }, + "customer": { + "name": "Tina Salazar", + "age": 33, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "George Ltd", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "activity", + "category": "break", + "price": 904.2, + "stock_quantity": 595 + }, + "customer": { + "name": "Randall Caldwell", + "age": 44, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Jones Ltd", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "beyond", + "category": "again", + "price": 900.54, + "stock_quantity": 681 + }, + "customer": { + "name": "Michael Fisher", + "age": 57, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Hays-Alvarez", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "total", + "category": "about", + "price": 555.17, + "stock_quantity": 299 + }, + "customer": { + "name": "Jason Wilson", + "age": 70, + "country": "Barbados" + } + }, + { + "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'", + "company": { + "name": "Mclean and Sons", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "reduce", + "category": "among", + "price": 375.06, + "stock_quantity": 526 + }, + "customer": { + "name": "Jessica Hunter", + "age": 72, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Johnson-Cooper", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "here", + "category": "candidate", + "price": 844.22, + "stock_quantity": 898 + }, + "customer": { + "name": "Steven Oconnor", + "age": 42, + "country": "Tanzania" + } + }, + { + "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'", + "company": { + "name": "Bryan-Davis", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "glass", + "category": "might", + "price": 454.4, + "stock_quantity": 218 + }, + "customer": { + "name": "Dylan Griffin", + "age": 24, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Smith and Gill", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "head", + "category": "good", + "price": 597.51, + "stock_quantity": 545 + }, + "customer": { + "name": "Kathleen Joseph", + "age": 21, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Yates, Ferguson and Bryant", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "market", + "category": "forward", + "price": 654.88, + "stock_quantity": 84 + }, + "customer": { + "name": "Ian Durham", + "age": 25, + "country": "Montenegro" + } + }, + { + "natural_query": "Show me all products in the young category with a price over $891.5.", + "sql_query": "SELECT * FROM products WHERE category = 'young' AND price > 891.5", + "company": { + "name": "Martin-Graham", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "require", + "category": "young", + "price": 891.5, + "stock_quantity": 591 + }, + "customer": { + "name": "Sherry Fuentes", + "age": 70, + "country": "Lebanon" + } + }, + { + "natural_query": "What are the top 9 products by customers for Patrick-Fischer all time?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Patrick-Fischer' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9", + "company": { + "name": "Patrick-Fischer", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "total", + "category": "argue", + "price": 739.4, + "stock_quantity": 329 + }, + "customer": { + "name": "Mr. Juan Fleming", + "age": 71, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Williams Group", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "discuss", + "category": "off", + "price": 233.66, + "stock_quantity": 166 + }, + "customer": { + "name": "Michael Burns", + "age": 28, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Walton-Jones", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "bank", + "category": "care", + "price": 973.17, + "stock_quantity": 55 + }, + "customer": { + "name": "Dr. Leslie Fischer", + "age": 35, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Hale, Thomas and Smith", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "what", + "category": "media", + "price": 403.3, + "stock_quantity": 197 + }, + "customer": { + "name": "Christopher Johnston", + "age": 76, + "country": "Puerto Rico" + } + }, + { + "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'", + "company": { + "name": "Reid-Saunders", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "summer", + "category": "attorney", + "price": 780.92, + "stock_quantity": 884 + }, + "customer": { + "name": "Wendy Gomez", + "age": 58, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Smith, Vaughan and Estrada", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "realize", + "category": "public", + "price": 519.13, + "stock_quantity": 287 + }, + "customer": { + "name": "Harold Nelson", + "age": 49, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Edwards LLC", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "claim", + "category": "return", + "price": 639.23, + "stock_quantity": 228 + }, + "customer": { + "name": "Jorge Harrison", + "age": 19, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Newman Inc", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "ago", + "category": "move", + "price": 776.66, + "stock_quantity": 458 + }, + "customer": { + "name": "Eric Kim", + "age": 39, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Briggs, Gould and Horton", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "relationship", + "category": "dinner", + "price": 751.17, + "stock_quantity": 451 + }, + "customer": { + "name": "Robert Green", + "age": 31, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Morales Ltd", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "race", + "category": "continue", + "price": 425.53, + "stock_quantity": 580 + }, + "customer": { + "name": "Jessica Gill", + "age": 62, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Palmer PLC", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "buy", + "category": "pattern", + "price": 764.64, + "stock_quantity": 337 + }, + "customer": { + "name": "Edwin Russell", + "age": 69, + "country": "Norway" + } + }, + { + "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'", + "company": { + "name": "Lewis, Gray and Knight", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "power", + "category": "of", + "price": 667.51, + "stock_quantity": 219 + }, + "customer": { + "name": "James Lopez", + "age": 31, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Elliott Ltd", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "up", + "category": "green", + "price": 146.97, + "stock_quantity": 36 + }, + "customer": { + "name": "Timothy Sanchez", + "age": 56, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Thomas, Saunders and Juarez", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "let", + "category": "speak", + "price": 547.58, + "stock_quantity": 744 + }, + "customer": { + "name": "Desiree Anderson MD", + "age": 77, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Wells LLC", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "learn", + "category": "agreement", + "price": 995.32, + "stock_quantity": 975 + }, + "customer": { + "name": "Christopher Anderson", + "age": 31, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Reed Ltd", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "drop", + "category": "argue", + "price": 929.31, + "stock_quantity": 513 + }, + "customer": { + "name": "Wendy Johnson", + "age": 36, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Robertson LLC", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "always", + "category": "question", + "price": 655.46, + "stock_quantity": 186 + }, + "customer": { + "name": "Alyssa Cervantes", + "age": 44, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Castro, Moore and Matthews", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "check", + "category": "door", + "price": 406.64, + "stock_quantity": 30 + }, + "customer": { + "name": "Teresa Mullins", + "age": 50, + "country": "Nauru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Chang, Brooks and Hamilton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Chang, Brooks and Hamilton", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "we", + "category": "street", + "price": 568.25, + "stock_quantity": 912 + }, + "customer": { + "name": "Kevin Roberts", + "age": 33, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Medina-Rosario", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "staff", + "category": "force", + "price": 219.61, + "stock_quantity": 200 + }, + "customer": { + "name": "Christopher Perry", + "age": 73, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Bean-Thompson", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "training", + "category": "consider", + "price": 989.22, + "stock_quantity": 644 + }, + "customer": { + "name": "Stacey Clark", + "age": 26, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Walker, Rodriguez and Cooper", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "record", + "category": "child", + "price": 489.31, + "stock_quantity": 811 + }, + "customer": { + "name": "Steve Simpson", + "age": 20, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Chavez, Hunt and Wallace", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "yard", + "category": "teach", + "price": 242.04, + "stock_quantity": 773 + }, + "customer": { + "name": "Sandra Carpenter", + "age": 36, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Smith Inc", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "reflect", + "category": "their", + "price": 883.48, + "stock_quantity": 155 + }, + "customer": { + "name": "Amanda Jackson", + "age": 52, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Mccann-Holland", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "peace", + "category": "story", + "price": 763.63, + "stock_quantity": 622 + }, + "customer": { + "name": "David Thomas", + "age": 72, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Smith, Bradshaw and Chavez", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "mention", + "category": "impact", + "price": 733.1, + "stock_quantity": 655 + }, + "customer": { + "name": "Andrew Holloway", + "age": 28, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Moore-Chase", + "sector": "Group", + "founded_year": "1987" + }, + "product": { + "name": "magazine", + "category": "about", + "price": 137.18, + "stock_quantity": 550 + }, + "customer": { + "name": "Richard Morrison", + "age": 72, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Bates, Dominguez and Lee", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "nearly", + "category": "against", + "price": 214.82, + "stock_quantity": 219 + }, + "customer": { + "name": "Amber Keith", + "age": 74, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Miller, Humphrey and Gomez", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "care", + "category": "also", + "price": 269.89, + "stock_quantity": 7 + }, + "customer": { + "name": "Mario Rogers", + "age": 58, + "country": "Netherlands Antilles" + } + }, + { + "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'", + "company": { + "name": "Ray PLC", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "seat", + "category": "camera", + "price": 238.13, + "stock_quantity": 427 + }, + "customer": { + "name": "Jennifer Case", + "age": 24, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Carlson Inc", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "turn", + "category": "together", + "price": 116.73, + "stock_quantity": 767 + }, + "customer": { + "name": "Stephanie Richardson", + "age": 30, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Stephens-Rios", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "various", + "category": "knowledge", + "price": 190.23, + "stock_quantity": 444 + }, + "customer": { + "name": "Grace Hicks", + "age": 74, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Young-James", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "security", + "category": "something", + "price": 649.34, + "stock_quantity": 372 + }, + "customer": { + "name": "Alyssa Simmons", + "age": 73, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Mccoy Ltd", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "a", + "category": "one", + "price": 438.97, + "stock_quantity": 397 + }, + "customer": { + "name": "Kathryn Singleton", + "age": 45, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Powell, Bauer and Stevens", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "bank", + "category": "I", + "price": 697.0, + "stock_quantity": 509 + }, + "customer": { + "name": "Kenneth Johnson DVM", + "age": 49, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Savage, Wiggins and Miller", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "woman", + "category": "present", + "price": 353.66, + "stock_quantity": 320 + }, + "customer": { + "name": "Andrew Farrell", + "age": 71, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Rollins LLC", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "allow", + "category": "professional", + "price": 206.03, + "stock_quantity": 48 + }, + "customer": { + "name": "Gregory Murphy", + "age": 62, + "country": "Maldives" + } + }, + { + "natural_query": "Show me all products in the person category with a price over $585.6.", + "sql_query": "SELECT * FROM products WHERE category = 'person' AND price > 585.6", + "company": { + "name": "Morton, Silva and Castillo", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "people", + "category": "person", + "price": 585.6, + "stock_quantity": 590 + }, + "customer": { + "name": "Charles Gibson", + "age": 79, + "country": "Panama" + } + }, + { + "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'", + "company": { + "name": "Edwards Inc", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "parent", + "category": "knowledge", + "price": 282.82, + "stock_quantity": 148 + }, + "customer": { + "name": "Kaitlyn Hampton", + "age": 22, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Patterson-Brown", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "political", + "category": "despite", + "price": 312.52, + "stock_quantity": 212 + }, + "customer": { + "name": "Teresa Williams", + "age": 80, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Bishop Group", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "serve", + "category": "identify", + "price": 809.71, + "stock_quantity": 737 + }, + "customer": { + "name": "Michelle Walter", + "age": 43, + "country": "Myanmar" + } + }, + { + "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'", + "company": { + "name": "Stuart PLC", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "region", + "category": "artist", + "price": 547.29, + "stock_quantity": 782 + }, + "customer": { + "name": "Shane Logan", + "age": 42, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Hull-Waters", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "painting", + "category": "action", + "price": 135.55, + "stock_quantity": 622 + }, + "customer": { + "name": "David Lowery", + "age": 23, + "country": "Cayman Islands" + } + }, + { + "natural_query": "What is the total sales for each country in Walker, Nguyen and Knox?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Walker, Nguyen and Knox' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Walker, Nguyen and Knox", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "kid", + "category": "anything", + "price": 46.32, + "stock_quantity": 659 + }, + "customer": { + "name": "Matthew Cabrera", + "age": 71, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Herman, Moore and Gonzalez", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "into", + "category": "clearly", + "price": 701.6, + "stock_quantity": 588 + }, + "customer": { + "name": "Jennifer Kramer", + "age": 41, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Wright Inc", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "mission", + "category": "identify", + "price": 488.68, + "stock_quantity": 208 + }, + "customer": { + "name": "Adam Hernandez", + "age": 75, + "country": "Colombia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Watkins LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Watkins LLC", + "sector": "and Sons", + "founded_year": "1980" + }, + "product": { + "name": "discuss", + "category": "call", + "price": 563.09, + "stock_quantity": 996 + }, + "customer": { + "name": "Jennifer Ayala", + "age": 60, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Richards Inc", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "whole", + "category": "subject", + "price": 936.66, + "stock_quantity": 446 + }, + "customer": { + "name": "Kyle Jensen", + "age": 48, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Osborne-Cameron", + "sector": "PLC", + "founded_year": "1987" + }, + "product": { + "name": "game", + "category": "miss", + "price": 701.56, + "stock_quantity": 784 + }, + "customer": { + "name": "Nancy Hernandez", + "age": 69, + "country": "Iraq" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wiggins Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wiggins Ltd", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "stage", + "category": "former", + "price": 853.35, + "stock_quantity": 486 + }, + "customer": { + "name": "Cynthia Sullivan", + "age": 39, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Anderson, Johnson and Huynh", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "quickly", + "category": "political", + "price": 881.25, + "stock_quantity": 239 + }, + "customer": { + "name": "Shirley Coleman", + "age": 49, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Bush Ltd", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "after", + "category": "enter", + "price": 706.39, + "stock_quantity": 238 + }, + "customer": { + "name": "Victoria Larson", + "age": 56, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Taylor, Griffin and Richards", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "nature", + "category": "west", + "price": 85.83, + "stock_quantity": 473 + }, + "customer": { + "name": "Christian Proctor", + "age": 19, + "country": "Honduras" + } + }, + { + "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'", + "company": { + "name": "Ingram-Fitzpatrick", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "wrong", + "category": "south", + "price": 939.51, + "stock_quantity": 613 + }, + "customer": { + "name": "Daniel Sheppard", + "age": 24, + "country": "Uruguay" + } + }, + { + "natural_query": "List all customers and their total order value for Johnson-Ruiz.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Johnson-Ruiz' GROUP BY c.customer_id", + "company": { + "name": "Johnson-Ruiz", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "service", + "category": "line", + "price": 446.31, + "stock_quantity": 42 + }, + "customer": { + "name": "Jose Holmes", + "age": 46, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lee LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lee LLC", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "prevent", + "category": "agree", + "price": 497.08, + "stock_quantity": 675 + }, + "customer": { + "name": "Jenna Bowers", + "age": 24, + "country": "Croatia" + } + }, + { + "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'", + "company": { + "name": "Ramirez-Carter", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "first", + "category": "cultural", + "price": 189.34, + "stock_quantity": 878 + }, + "customer": { + "name": "Brianna Collier", + "age": 19, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Thomas, Thomas and Phillips", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "develop", + "category": "task", + "price": 106.35, + "stock_quantity": 244 + }, + "customer": { + "name": "Shawn Diaz", + "age": 73, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Taylor-Garza", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "pay", + "category": "method", + "price": 693.86, + "stock_quantity": 257 + }, + "customer": { + "name": "Ms. Samantha Lamb", + "age": 30, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Humphrey, Barnett and White", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "ask", + "category": "song", + "price": 57.05, + "stock_quantity": 869 + }, + "customer": { + "name": "Juan Anderson", + "age": 39, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Rose-Young", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "positive", + "category": "before", + "price": 199.58, + "stock_quantity": 391 + }, + "customer": { + "name": "Lauren Wise", + "age": 66, + "country": "Saint Martin" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Parsons LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Parsons LLC", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "writer", + "category": "oil", + "price": 207.94, + "stock_quantity": 339 + }, + "customer": { + "name": "Alexis Proctor", + "age": 40, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Diaz-Ross", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "administration", + "category": "subject", + "price": 92.32, + "stock_quantity": 394 + }, + "customer": { + "name": "John Dunn", + "age": 45, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Hammond, Foster and Rodriguez", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "leg", + "category": "edge", + "price": 503.0, + "stock_quantity": 458 + }, + "customer": { + "name": "Robert Hoffman", + "age": 36, + "country": "Singapore" + } + }, + { + "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'", + "company": { + "name": "Thompson-Reynolds", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "cold", + "category": "week", + "price": 674.82, + "stock_quantity": 474 + }, + "customer": { + "name": "James Mccullough", + "age": 39, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Vaughan-Nolan", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "nature", + "category": "always", + "price": 755.15, + "stock_quantity": 751 + }, + "customer": { + "name": "Joshua Ward", + "age": 76, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Walters and Sons", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "resource", + "category": "kind", + "price": 772.54, + "stock_quantity": 158 + }, + "customer": { + "name": "Roger Mccall", + "age": 76, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Singleton, Woods and Cook", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "meeting", + "category": "throughout", + "price": 308.34, + "stock_quantity": 404 + }, + "customer": { + "name": "Tammy White", + "age": 51, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Perry-Kennedy", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "fight", + "category": "respond", + "price": 818.64, + "stock_quantity": 87 + }, + "customer": { + "name": "Ruben Davis", + "age": 51, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Lee PLC", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "new", + "category": "administration", + "price": 936.21, + "stock_quantity": 745 + }, + "customer": { + "name": "Elizabeth Sanchez", + "age": 55, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Horton Ltd", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "specific", + "category": "within", + "price": 989.32, + "stock_quantity": 887 + }, + "customer": { + "name": "Suzanne Browning", + "age": 45, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Morales, Davis and Leonard", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "painting", + "category": "land", + "price": 43.44, + "stock_quantity": 725 + }, + "customer": { + "name": "Douglas Calhoun", + "age": 36, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Williams, Smith and Wilkins", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "respond", + "category": "system", + "price": 490.89, + "stock_quantity": 732 + }, + "customer": { + "name": "Donna Coffey", + "age": 78, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Gray, Gonzales and Burgess", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "special", + "category": "blue", + "price": 175.89, + "stock_quantity": 493 + }, + "customer": { + "name": "Randy Cameron", + "age": 22, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Castro, Smith and Scott", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "southern", + "category": "despite", + "price": 804.37, + "stock_quantity": 694 + }, + "customer": { + "name": "James Cohen", + "age": 75, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Jackson, Walters and Miller", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "want", + "category": "with", + "price": 627.72, + "stock_quantity": 625 + }, + "customer": { + "name": "Ariel Myers", + "age": 77, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Williams, Smith and Rivera", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "trouble", + "category": "experience", + "price": 565.02, + "stock_quantity": 108 + }, + "customer": { + "name": "Amanda Lee", + "age": 51, + "country": "Cambodia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Watkins Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Watkins Ltd", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "team", + "category": "hospital", + "price": 345.23, + "stock_quantity": 10 + }, + "customer": { + "name": "Jennifer Newton", + "age": 65, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Jacobs, Harris and Smith", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "return", + "category": "become", + "price": 75.93, + "stock_quantity": 662 + }, + "customer": { + "name": "Leslie Peterson", + "age": 79, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Smith-Robertson", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "physical", + "category": "myself", + "price": 785.78, + "stock_quantity": 127 + }, + "customer": { + "name": "Jordan Short", + "age": 76, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Evans, Phillips and Davis", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "ready", + "category": "very", + "price": 889.25, + "stock_quantity": 616 + }, + "customer": { + "name": "Edward Moore", + "age": 73, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Stein-Richardson", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "news", + "category": "yet", + "price": 759.06, + "stock_quantity": 967 + }, + "customer": { + "name": "Julie Welch", + "age": 31, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Williamson PLC", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "action", + "category": "thus", + "price": 676.18, + "stock_quantity": 43 + }, + "customer": { + "name": "Dennis Frank", + "age": 18, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Smith and Sons", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "spend", + "category": "food", + "price": 874.76, + "stock_quantity": 161 + }, + "customer": { + "name": "Amy Smith", + "age": 54, + "country": "Namibia" + } + }, + { + "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'", + "company": { + "name": "Jones Inc", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "left", + "category": "maybe", + "price": 294.5, + "stock_quantity": 98 + }, + "customer": { + "name": "Benjamin Hughes", + "age": 35, + "country": "Belarus" + } + }, + { + "natural_query": "What is the total sales for each supplier in Johnson PLC?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson PLC' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Johnson PLC", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "behind", + "category": "teach", + "price": 481.2, + "stock_quantity": 3 + }, + "customer": { + "name": "Kelly Austin DVM", + "age": 28, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Rivera-Melendez", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "win", + "category": "offer", + "price": 114.4, + "stock_quantity": 208 + }, + "customer": { + "name": "Emily Webster MD", + "age": 40, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Johnson, Garcia and Crosby", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "he", + "category": "break", + "price": 243.99, + "stock_quantity": 158 + }, + "customer": { + "name": "David Campbell", + "age": 42, + "country": "Tokelau" + } + }, + { + "natural_query": "What is the total sales for each country in Hill PLC?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hill PLC' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Hill PLC", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "Mrs", + "category": "fact", + "price": 283.79, + "stock_quantity": 605 + }, + "customer": { + "name": "Lisa Turner", + "age": 77, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Solomon-Harris", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "single", + "category": "past", + "price": 37.43, + "stock_quantity": 331 + }, + "customer": { + "name": "Tony Richardson", + "age": 42, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Murray Group", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "ball", + "category": "continue", + "price": 203.42, + "stock_quantity": 418 + }, + "customer": { + "name": "William Lucero", + "age": 61, + "country": "Guam" + } + }, + { + "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'", + "company": { + "name": "Gilmore LLC", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "laugh", + "category": "plan", + "price": 433.15, + "stock_quantity": 803 + }, + "customer": { + "name": "Deborah Sanchez", + "age": 56, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Wallace-Gaines", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "expert", + "category": "base", + "price": 355.29, + "stock_quantity": 607 + }, + "customer": { + "name": "Shannon Tucker", + "age": 38, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Campbell, Flores and Schaefer", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "writer", + "category": "take", + "price": 468.97, + "stock_quantity": 681 + }, + "customer": { + "name": "Amber Martin", + "age": 67, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Burton Inc", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "result", + "category": "night", + "price": 350.07, + "stock_quantity": 314 + }, + "customer": { + "name": "Dennis Scott", + "age": 65, + "country": "Portugal" + } + }, + { + "natural_query": "What is the total profit for each country in Rogers-Clark?", + "sql_query": "SELECT country, SUM(profit) as total_profit FROM sales WHERE company_name = 'Rogers-Clark' GROUP BY country ORDER BY total_profit DESC", + "company": { + "name": "Rogers-Clark", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "occur", + "category": "instead", + "price": 926.44, + "stock_quantity": 142 + }, + "customer": { + "name": "Jared Short", + "age": 36, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Henry-Cohen", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "accept", + "category": "matter", + "price": 453.71, + "stock_quantity": 21 + }, + "customer": { + "name": "Lee Drake", + "age": 20, + "country": "Taiwan" + } + }, + { + "natural_query": "List all products of Martinez-Farrell ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Martinez-Farrell' ORDER BY stock_quantity DESC", + "company": { + "name": "Martinez-Farrell", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "day", + "category": "Democrat", + "price": 574.49, + "stock_quantity": 338 + }, + "customer": { + "name": "Daniel Kelley", + "age": 58, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Davis, Green and Miller", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "line", + "category": "concern", + "price": 749.8, + "stock_quantity": 764 + }, + "customer": { + "name": "Emily Mccall", + "age": 70, + "country": "Argentina" + } + }, + { + "natural_query": "What is the total quantity of all products for Paul-Williams?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Paul-Williams'", + "company": { + "name": "Paul-Williams", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "dog", + "category": "fact", + "price": 31.49, + "stock_quantity": 584 + }, + "customer": { + "name": "Amy Kim", + "age": 41, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Galloway-Cook", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "possible", + "category": "general", + "price": 83.21, + "stock_quantity": 609 + }, + "customer": { + "name": "Rebecca Olsen", + "age": 32, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Simmons, Hawkins and Singh", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "air", + "category": "fear", + "price": 713.37, + "stock_quantity": 788 + }, + "customer": { + "name": "Elaine Smith", + "age": 80, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Taylor, Daugherty and Stewart", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "church", + "category": "commercial", + "price": 617.19, + "stock_quantity": 659 + }, + "customer": { + "name": "Amanda Hicks", + "age": 58, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Merritt-Martin", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "amount", + "category": "size", + "price": 498.46, + "stock_quantity": 614 + }, + "customer": { + "name": "Timothy Frederick", + "age": 63, + "country": "Christmas Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Anderson LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Anderson LLC", + "sector": "Ltd", + "founded_year": "2024" + }, + "product": { + "name": "car", + "category": "price", + "price": 693.55, + "stock_quantity": 940 + }, + "customer": { + "name": "Jennifer Perry", + "age": 22, + "country": "Slovenia" + } + }, + { + "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'", + "company": { + "name": "Hughes PLC", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "feeling", + "category": "certain", + "price": 971.39, + "stock_quantity": 791 + }, + "customer": { + "name": "Anne Mullins", + "age": 50, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Murillo LLC", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "management", + "category": "suddenly", + "price": 511.83, + "stock_quantity": 21 + }, + "customer": { + "name": "Kayla Cooper", + "age": 30, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "raise", + "category": "cost", + "price": 451.61, + "stock_quantity": 675 + }, + "customer": { + "name": "Kathryn Ingram", + "age": 58, + "country": "Mexico" + } + }, + { + "natural_query": "What is the total quantity of all products for Pacheco, Perez and Wright?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Pacheco, Perez and Wright'", + "company": { + "name": "Pacheco, Perez and Wright", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "government", + "category": "south", + "price": 781.34, + "stock_quantity": 278 + }, + "customer": { + "name": "Jacqueline Wallace", + "age": 35, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Smith-Howard", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "accept", + "category": "partner", + "price": 748.38, + "stock_quantity": 254 + }, + "customer": { + "name": "Alicia Villegas", + "age": 63, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Zamora-Mcdaniel", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "collection", + "category": "team", + "price": 285.65, + "stock_quantity": 739 + }, + "customer": { + "name": "Brittany Jackson", + "age": 24, + "country": "Liberia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'White, Adkins and Gonzales'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "White, Adkins and Gonzales", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "anyone", + "category": "play", + "price": 746.25, + "stock_quantity": 366 + }, + "customer": { + "name": "Paula Stevens", + "age": 27, + "country": "Mauritania" + } + }, + { + "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'", + "company": { + "name": "Welch-Ibarra", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "eye", + "category": "factor", + "price": 59.3, + "stock_quantity": 748 + }, + "customer": { + "name": "Nicholas Montes", + "age": 80, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Murray-Davidson", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "use", + "category": "bed", + "price": 631.8, + "stock_quantity": 744 + }, + "customer": { + "name": "Christine Pratt", + "age": 37, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Howard-Austin", + "sector": "LLC", + "founded_year": "1972" + }, + "product": { + "name": "past", + "category": "she", + "price": 759.24, + "stock_quantity": 535 + }, + "customer": { + "name": "Kimberly Cox", + "age": 20, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Mejia-Rivera", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "north", + "category": "perhaps", + "price": 579.97, + "stock_quantity": 510 + }, + "customer": { + "name": "Jason Monroe", + "age": 19, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Cohen-Johnson", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "again", + "category": "role", + "price": 876.62, + "stock_quantity": 34 + }, + "customer": { + "name": "Kevin Henderson", + "age": 67, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Thompson Group", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "impact", + "category": "opportunity", + "price": 270.91, + "stock_quantity": 617 + }, + "customer": { + "name": "Jennifer Lee", + "age": 69, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Terry LLC", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "why", + "category": "trial", + "price": 988.41, + "stock_quantity": 509 + }, + "customer": { + "name": "Jenna Young", + "age": 67, + "country": "Saint Helena" + } + }, + { + "natural_query": "What are the top 6 products by sales for Mercer-Greene this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Mercer-Greene' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6", + "company": { + "name": "Mercer-Greene", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "some", + "category": "assume", + "price": 325.74, + "stock_quantity": 606 + }, + "customer": { + "name": "Seth Knapp", + "age": 75, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Braun and Sons", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "provide", + "category": "purpose", + "price": 839.66, + "stock_quantity": 138 + }, + "customer": { + "name": "Gabriel Clark", + "age": 63, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Sanchez, Wells and Burke", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "street", + "category": "job", + "price": 610.06, + "stock_quantity": 513 + }, + "customer": { + "name": "Candace Lee", + "age": 20, + "country": "Israel" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thomas and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thomas and Sons", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "just", + "category": "very", + "price": 918.34, + "stock_quantity": 422 + }, + "customer": { + "name": "Elizabeth Malone", + "age": 26, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Strickland, Jarvis and Schultz", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "make", + "category": "issue", + "price": 508.5, + "stock_quantity": 28 + }, + "customer": { + "name": "Edward Farrell", + "age": 26, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "natural_query": "What is the total sales for each country in Allen, Graham and Torres?", + "sql_query": "SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Allen, Graham and Torres' GROUP BY country ORDER BY total_sales DESC", + "company": { + "name": "Allen, Graham and Torres", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "direction", + "category": "design", + "price": 93.24, + "stock_quantity": 331 + }, + "customer": { + "name": "Bobby Landry", + "age": 40, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Mitchell, Gonzalez and Arnold", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "rich", + "category": "tonight", + "price": 393.49, + "stock_quantity": 384 + }, + "customer": { + "name": "Connie Meyers", + "age": 62, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Walker-Harrison", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "sell", + "category": "husband", + "price": 13.12, + "stock_quantity": 440 + }, + "customer": { + "name": "Sarah Collins", + "age": 80, + "country": "British Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Thompson Group", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "much", + "category": "leave", + "price": 229.77, + "stock_quantity": 853 + }, + "customer": { + "name": "Toni Larsen", + "age": 19, + "country": "Brazil" + } + }, + { + "natural_query": "List all customers and their total order value for Walker, Rodriguez and Davis.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Walker, Rodriguez and Davis' GROUP BY c.customer_id", + "company": { + "name": "Walker, Rodriguez and Davis", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "who", + "category": "water", + "price": 555.2, + "stock_quantity": 170 + }, + "customer": { + "name": "Matthew Thompson", + "age": 71, + "country": "Iraq" + } + }, + { + "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'", + "company": { + "name": "Howell Group", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "among", + "category": "side", + "price": 230.87, + "stock_quantity": 724 + }, + "customer": { + "name": "Leslie Hernandez", + "age": 71, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Peters, Porter and Harper", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "century", + "category": "forget", + "price": 93.66, + "stock_quantity": 323 + }, + "customer": { + "name": "Jason Torres", + "age": 62, + "country": "Switzerland" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Dyer-Ayers for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dyer-Ayers'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dyer-Ayers", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "about", + "category": "collection", + "price": 610.09, + "stock_quantity": 200 + }, + "customer": { + "name": "Elizabeth Lewis", + "age": 19, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Bates and Sons", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "large", + "category": "major", + "price": 841.57, + "stock_quantity": 579 + }, + "customer": { + "name": "James Marquez", + "age": 48, + "country": "Palau" + } + }, + { + "natural_query": "What are the top 8 products by customers for Gonzalez-Hall this month?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Gonzalez-Hall' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 8", + "company": { + "name": "Gonzalez-Hall", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "surface", + "category": "matter", + "price": 827.51, + "stock_quantity": 82 + }, + "customer": { + "name": "Jeffrey Bryan", + "age": 27, + "country": "Mongolia" + } + }, + { + "natural_query": "List all products of Delgado, Hernandez and Adams ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Delgado, Hernandez and Adams' ORDER BY rating DESC", + "company": { + "name": "Delgado, Hernandez and Adams", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "response", + "category": "fall", + "price": 491.92, + "stock_quantity": 305 + }, + "customer": { + "name": "John Hughes", + "age": 22, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Bates Inc", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "provide", + "category": "difference", + "price": 630.11, + "stock_quantity": 734 + }, + "customer": { + "name": "Sarah Brooks", + "age": 61, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Mullins-Gray", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "key", + "category": "worker", + "price": 52.51, + "stock_quantity": 836 + }, + "customer": { + "name": "Andrew Stevenson", + "age": 18, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Murray, Mccall and Wagner", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "sense", + "category": "create", + "price": 91.24, + "stock_quantity": 305 + }, + "customer": { + "name": "William Ray", + "age": 41, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Holland Inc", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "set", + "category": "thank", + "price": 965.18, + "stock_quantity": 709 + }, + "customer": { + "name": "Ronald Irwin", + "age": 20, + "country": "Taiwan" + } + }, + { + "natural_query": "Show me all products in the throughout category with a price over $656.64.", + "sql_query": "SELECT * FROM products WHERE category = 'throughout' AND price > 656.64", + "company": { + "name": "Ray LLC", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "issue", + "category": "throughout", + "price": 656.64, + "stock_quantity": 322 + }, + "customer": { + "name": "Christine Black", + "age": 52, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Williams, Burns and York", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "cold", + "category": "cold", + "price": 921.58, + "stock_quantity": 985 + }, + "customer": { + "name": "Veronica Wong", + "age": 65, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Harrison, Cummings and Lee'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Harrison, Cummings and Lee", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "force", + "category": "road", + "price": 920.87, + "stock_quantity": 342 + }, + "customer": { + "name": "Yvonne Dean", + "age": 56, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Jackson, Solomon and Hartman", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "develop", + "category": "tend", + "price": 428.31, + "stock_quantity": 733 + }, + "customer": { + "name": "Gregory Spencer", + "age": 24, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Estes, Hernandez and Christensen", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "job", + "category": "history", + "price": 53.97, + "stock_quantity": 981 + }, + "customer": { + "name": "Robert Kerr", + "age": 50, + "country": "Congo" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Potts, Miller and Hawkins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Potts, Miller and Hawkins", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "player", + "category": "wear", + "price": 208.23, + "stock_quantity": 849 + }, + "customer": { + "name": "Robin Waters", + "age": 74, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Phillips Group", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "pretty", + "category": "least", + "price": 49.67, + "stock_quantity": 363 + }, + "customer": { + "name": "Steven Wilson", + "age": 74, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "White Group", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "degree", + "category": "similar", + "price": 753.3, + "stock_quantity": 971 + }, + "customer": { + "name": "Tonya Blake", + "age": 31, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Russell and Sons", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "born", + "category": "article", + "price": 558.82, + "stock_quantity": 929 + }, + "customer": { + "name": "Tyler Jimenez", + "age": 40, + "country": "South Africa" + } + }, + { + "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'", + "company": { + "name": "Hardin Inc", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "sing", + "category": "where", + "price": 809.05, + "stock_quantity": 446 + }, + "customer": { + "name": "Erika Turner", + "age": 57, + "country": "Turkey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Allen Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Allen Ltd", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "view", + "category": "law", + "price": 911.05, + "stock_quantity": 843 + }, + "customer": { + "name": "Amanda Watson", + "age": 80, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Allison, Fernandez and Lee", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "laugh", + "category": "service", + "price": 385.75, + "stock_quantity": 476 + }, + "customer": { + "name": "Jonathan Sims", + "age": 33, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Mathis Group", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "fish", + "category": "son", + "price": 24.88, + "stock_quantity": 129 + }, + "customer": { + "name": "Robert Wallace", + "age": 45, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Montgomery LLC", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "amount", + "category": "participant", + "price": 657.99, + "stock_quantity": 555 + }, + "customer": { + "name": "Laura Hughes", + "age": 72, + "country": "French Polynesia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Dennis and Sons for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dennis and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dennis and Sons", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "note", + "category": "various", + "price": 31.78, + "stock_quantity": 34 + }, + "customer": { + "name": "Stephanie Werner", + "age": 19, + "country": "Thailand" + } + }, + { + "natural_query": "What is the total quantity for each country in Frank Ltd?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Frank Ltd' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Frank Ltd", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "player", + "category": "eight", + "price": 773.05, + "stock_quantity": 881 + }, + "customer": { + "name": "Ronald Middleton", + "age": 40, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Haynes-Gomez", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "large", + "category": "however", + "price": 179.94, + "stock_quantity": 501 + }, + "customer": { + "name": "Douglas Brown", + "age": 63, + "country": "Lebanon" + } + }, + { + "natural_query": "How many orders were placed for Miller PLC between 2023-10-24 and 2024-06-04?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Miller PLC' AND order_date BETWEEN '2023-10-24' AND '2024-06-04'", + "company": { + "name": "Miller PLC", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "book", + "category": "no", + "price": 130.51, + "stock_quantity": 427 + }, + "customer": { + "name": "Benjamin Olson", + "age": 78, + "country": "Philippines" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gutierrez and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gutierrez and Sons", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "return", + "category": "whatever", + "price": 610.45, + "stock_quantity": 835 + }, + "customer": { + "name": "Julie James", + "age": 20, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Cole-Dennis", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "word", + "category": "like", + "price": 709.57, + "stock_quantity": 945 + }, + "customer": { + "name": "Scott Lopez", + "age": 41, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Rios Group", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "show", + "category": "firm", + "price": 204.59, + "stock_quantity": 885 + }, + "customer": { + "name": "John Johnson", + "age": 30, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Williams-House", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "edge", + "category": "pretty", + "price": 821.66, + "stock_quantity": 525 + }, + "customer": { + "name": "Jillian Berry", + "age": 37, + "country": "Angola" + } + }, + { + "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'", + "company": { + "name": "Kline-Scott", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "section", + "category": "sense", + "price": 517.13, + "stock_quantity": 443 + }, + "customer": { + "name": "Danielle Espinoza", + "age": 20, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Reed-Lynn", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "fine", + "category": "street", + "price": 545.97, + "stock_quantity": 434 + }, + "customer": { + "name": "Emily Smith", + "age": 30, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Beltran, Lopez and Martinez", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "garden", + "category": "although", + "price": 82.08, + "stock_quantity": 269 + }, + "customer": { + "name": "Lucas Kim", + "age": 74, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Taylor-King", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "moment", + "category": "indicate", + "price": 918.93, + "stock_quantity": 362 + }, + "customer": { + "name": "Robert Jimenez", + "age": 58, + "country": "Vietnam" + } + }, + { + "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'", + "company": { + "name": "Stone Inc", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "year", + "category": "past", + "price": 577.15, + "stock_quantity": 307 + }, + "customer": { + "name": "Casey Garcia", + "age": 41, + "country": "China" + } + }, + { + "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'", + "company": { + "name": "Crosby, Arnold and Buck", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "difference", + "category": "conference", + "price": 689.32, + "stock_quantity": 600 + }, + "customer": { + "name": "George Hurst", + "age": 72, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Gordon Inc", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "possible", + "category": "training", + "price": 897.68, + "stock_quantity": 917 + }, + "customer": { + "name": "Raymond Morrison", + "age": 38, + "country": "United States Minor Outlying Islands" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Campbell-Smith for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Campbell-Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Campbell-Smith", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "weight", + "category": "citizen", + "price": 781.77, + "stock_quantity": 41 + }, + "customer": { + "name": "Gary Maxwell", + "age": 50, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Smith Group", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "pick", + "category": "big", + "price": 920.9, + "stock_quantity": 497 + }, + "customer": { + "name": "Abigail Pennington", + "age": 51, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Arnold-Taylor", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "economy", + "category": "good", + "price": 876.16, + "stock_quantity": 609 + }, + "customer": { + "name": "Dr. Mary Harrison", + "age": 27, + "country": "Madagascar" + } + }, + { + "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'", + "company": { + "name": "Smith, Lewis and Mooney", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "past", + "category": "federal", + "price": 928.36, + "stock_quantity": 556 + }, + "customer": { + "name": "Cameron Young", + "age": 70, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Jensen PLC", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "enough", + "category": "head", + "price": 656.62, + "stock_quantity": 309 + }, + "customer": { + "name": "Brandon Wilson", + "age": 39, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Schneider-Morris", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "miss", + "category": "wide", + "price": 504.98, + "stock_quantity": 509 + }, + "customer": { + "name": "David Johnson", + "age": 36, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Le-Lee", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "together", + "category": "receive", + "price": 309.84, + "stock_quantity": 111 + }, + "customer": { + "name": "Linda Stewart", + "age": 51, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "French and Sons", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "why", + "category": "or", + "price": 311.06, + "stock_quantity": 34 + }, + "customer": { + "name": "David Tucker", + "age": 51, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Maldonado-Fowler", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "teach", + "category": "clear", + "price": 178.14, + "stock_quantity": 442 + }, + "customer": { + "name": "Robert Joseph", + "age": 75, + "country": "Netherlands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williams LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williams LLC", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "such", + "category": "rise", + "price": 656.29, + "stock_quantity": 597 + }, + "customer": { + "name": "Erik Riley", + "age": 20, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Osborn, Robinson and Atkinson", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "treatment", + "category": "visit", + "price": 186.59, + "stock_quantity": 65 + }, + "customer": { + "name": "James Cooper", + "age": 67, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Adams LLC", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "rule", + "category": "section", + "price": 971.99, + "stock_quantity": 599 + }, + "customer": { + "name": "Mary Hart", + "age": 45, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Johnson-Ford", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "character", + "category": "call", + "price": 314.56, + "stock_quantity": 319 + }, + "customer": { + "name": "Ronald Adams", + "age": 57, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Grant PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Grant PLC", + "sector": "PLC", + "founded_year": "1996" + }, + "product": { + "name": "camera", + "category": "hear", + "price": 503.96, + "stock_quantity": 698 + }, + "customer": { + "name": "Joshua Davis", + "age": 48, + "country": "Comoros" + } + }, + { + "natural_query": "List all products of Carter, Pineda and Goodman ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Carter, Pineda and Goodman' ORDER BY price ASC", + "company": { + "name": "Carter, Pineda and Goodman", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "purpose", + "category": "process", + "price": 797.04, + "stock_quantity": 75 + }, + "customer": { + "name": "Kyle French", + "age": 18, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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'", + "company": { + "name": "Davis-Clark", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "prepare", + "category": "need", + "price": 420.89, + "stock_quantity": 193 + }, + "customer": { + "name": "Anthony Moore", + "age": 34, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Stanley, Young and Vaughan", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "item", + "category": "together", + "price": 742.16, + "stock_quantity": 129 + }, + "customer": { + "name": "Cynthia Myers", + "age": 63, + "country": "Madagascar" + } + }, + { + "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'", + "company": { + "name": "Duran and Sons", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "black", + "category": "you", + "price": 53.77, + "stock_quantity": 56 + }, + "customer": { + "name": "Lindsey Jackson", + "age": 65, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Martinez-Duarte", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "popular", + "category": "dark", + "price": 515.46, + "stock_quantity": 420 + }, + "customer": { + "name": "Margaret Jensen", + "age": 51, + "country": "Congo" + } + }, + { + "natural_query": "How many orders were placed for Vincent, Scott and Hall between 2024-01-03 and 2024-04-02?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Vincent, Scott and Hall' AND order_date BETWEEN '2024-01-03' AND '2024-04-02'", + "company": { + "name": "Vincent, Scott and Hall", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "page", + "category": "this", + "price": 252.35, + "stock_quantity": 256 + }, + "customer": { + "name": "Jeffery Allen", + "age": 52, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Flores Group", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "listen", + "category": "data", + "price": 30.36, + "stock_quantity": 369 + }, + "customer": { + "name": "David Morgan", + "age": 19, + "country": "Cuba" + } + }, + { + "natural_query": "Show me all products in the reach category with a price over $490.45.", + "sql_query": "SELECT * FROM products WHERE category = 'reach' AND price > 490.45", + "company": { + "name": "Stanton, Williams and Yang", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "his", + "category": "reach", + "price": 490.45, + "stock_quantity": 653 + }, + "customer": { + "name": "Dr. Emily Graham MD", + "age": 19, + "country": "Palau" + } + }, + { + "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'", + "company": { + "name": "Simpson, Schroeder and Joseph", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "name", + "category": "challenge", + "price": 628.19, + "stock_quantity": 110 + }, + "customer": { + "name": "Derrick Perez", + "age": 55, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Conrad, Malone and Tran", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "case", + "category": "must", + "price": 635.42, + "stock_quantity": 972 + }, + "customer": { + "name": "Steven Bowen", + "age": 67, + "country": "Costa Rica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stone Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stone Group", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "young", + "category": "media", + "price": 989.81, + "stock_quantity": 753 + }, + "customer": { + "name": "Becky Jones", + "age": 27, + "country": "Netherlands Antilles" + } + }, + { + "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'", + "company": { + "name": "Medina, Wade and Warren", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "at", + "category": "political", + "price": 875.71, + "stock_quantity": 385 + }, + "customer": { + "name": "Jennifer Fletcher", + "age": 75, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Wright Inc", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "piece", + "category": "billion", + "price": 637.28, + "stock_quantity": 894 + }, + "customer": { + "name": "Sarah Perez", + "age": 37, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Lawson Ltd", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "trouble", + "category": "force", + "price": 487.92, + "stock_quantity": 980 + }, + "customer": { + "name": "Alexandra Morgan", + "age": 42, + "country": "Saudi Arabia" + } + }, + { + "natural_query": "Show me all products in the medical category with a price over $487.23.", + "sql_query": "SELECT * FROM products WHERE category = 'medical' AND price > 487.23", + "company": { + "name": "Holloway-Jackson", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "feeling", + "category": "medical", + "price": 487.23, + "stock_quantity": 164 + }, + "customer": { + "name": "Kevin Wilcox", + "age": 39, + "country": "Barbados" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Blackwell, Jones and Fox'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Blackwell, Jones and Fox", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "media", + "category": "standard", + "price": 571.93, + "stock_quantity": 381 + }, + "customer": { + "name": "Elizabeth Miller", + "age": 21, + "country": "Madagascar" + } + }, + { + "natural_query": "What are the top 7 products by customers for Thompson, Harper and Richardson last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Thompson, Harper and Richardson' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7", + "company": { + "name": "Thompson, Harper and Richardson", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "structure", + "category": "sea", + "price": 492.56, + "stock_quantity": 619 + }, + "customer": { + "name": "John Benjamin", + "age": 50, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Green, Rodriguez and Chavez", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "gas", + "category": "right", + "price": 163.01, + "stock_quantity": 480 + }, + "customer": { + "name": "Nicole Vazquez", + "age": 67, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Williams Inc", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "meet", + "category": "issue", + "price": 942.99, + "stock_quantity": 409 + }, + "customer": { + "name": "Kathy Harris", + "age": 60, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Hernandez LLC", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "wait", + "category": "run", + "price": 646.77, + "stock_quantity": 39 + }, + "customer": { + "name": "Kathleen Owen", + "age": 61, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Wagner, Hughes and Reed", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "recognize", + "category": "offer", + "price": 388.31, + "stock_quantity": 299 + }, + "customer": { + "name": "Nicholas Reed", + "age": 74, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Stewart-Whitehead", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "drop", + "category": "century", + "price": 280.12, + "stock_quantity": 874 + }, + "customer": { + "name": "Erin Vargas", + "age": 30, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Powers and Sons", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "what", + "category": "cut", + "price": 722.72, + "stock_quantity": 42 + }, + "customer": { + "name": "Shelly Blanchard", + "age": 39, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Graham-Moore", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "appear", + "category": "which", + "price": 701.49, + "stock_quantity": 282 + }, + "customer": { + "name": "Dennis Mendez", + "age": 44, + "country": "France" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Munoz Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Munoz Inc", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "start", + "category": "surface", + "price": 476.02, + "stock_quantity": 832 + }, + "customer": { + "name": "Nicole Fisher", + "age": 26, + "country": "Montenegro" + } + }, + { + "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'", + "company": { + "name": "Collins, Brady and Mcmahon", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "eat", + "category": "decade", + "price": 529.93, + "stock_quantity": 982 + }, + "customer": { + "name": "Raymond Woods", + "age": 49, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Rhodes, French and Robertson", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "loss", + "category": "get", + "price": 607.0, + "stock_quantity": 481 + }, + "customer": { + "name": "Ashley Allen", + "age": 24, + "country": "Kyrgyz Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hopkins Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hopkins Ltd", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "quickly", + "category": "son", + "price": 34.61, + "stock_quantity": 797 + }, + "customer": { + "name": "John Brown", + "age": 32, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Santiago, Morgan and Baker", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "safe", + "category": "light", + "price": 888.27, + "stock_quantity": 917 + }, + "customer": { + "name": "Maria Mueller", + "age": 65, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Williams-Palmer", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "cup", + "category": "home", + "price": 719.53, + "stock_quantity": 302 + }, + "customer": { + "name": "Erin Hancock", + "age": 47, + "country": "United States Virgin Islands" + } + }, + { + "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", + "company": { + "name": "King, Simpson and Ellis", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "whom", + "category": "change", + "price": 602.34, + "stock_quantity": 972 + }, + "customer": { + "name": "Jason Frazier", + "age": 52, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Smith-Lewis", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "quickly", + "category": "they", + "price": 752.49, + "stock_quantity": 679 + }, + "customer": { + "name": "Renee Wright", + "age": 33, + "country": "South Africa" + } + }, + { + "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'", + "company": { + "name": "Peters, Holt and Gutierrez", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "board", + "category": "economy", + "price": 724.57, + "stock_quantity": 279 + }, + "customer": { + "name": "Kathryn Flores", + "age": 51, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Byrd Inc", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "grow", + "category": "conference", + "price": 973.12, + "stock_quantity": 169 + }, + "customer": { + "name": "Kimberly Cross", + "age": 76, + "country": "Mali" + } + }, + { + "natural_query": "List all products of Bell-Russell ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Bell-Russell' ORDER BY stock_quantity ASC", + "company": { + "name": "Bell-Russell", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "still", + "category": "hope", + "price": 22.88, + "stock_quantity": 338 + }, + "customer": { + "name": "Cameron Hall", + "age": 64, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Bailey, Porter and Jackson", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "him", + "category": "nothing", + "price": 31.37, + "stock_quantity": 918 + }, + "customer": { + "name": "Daniel Mcknight", + "age": 18, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Arroyo-Hill", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "serve", + "category": "nothing", + "price": 708.2, + "stock_quantity": 580 + }, + "customer": { + "name": "Brenda Oliver", + "age": 62, + "country": "Zambia" + } + }, + { + "natural_query": "What is the total quantity of all products for Mckenzie-Fowler?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Mckenzie-Fowler'", + "company": { + "name": "Mckenzie-Fowler", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "rule", + "category": "candidate", + "price": 403.71, + "stock_quantity": 921 + }, + "customer": { + "name": "Jennifer Kennedy", + "age": 45, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Chan PLC", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "doctor", + "category": "than", + "price": 209.83, + "stock_quantity": 861 + }, + "customer": { + "name": "Taylor James", + "age": 47, + "country": "Niue" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Marshall-Lopez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Marshall-Lopez", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "born", + "category": "gas", + "price": 417.74, + "stock_quantity": 391 + }, + "customer": { + "name": "Dr. Elizabeth Ford", + "age": 70, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Perry-Powers", + "sector": "Group", + "founded_year": "1971" + }, + "product": { + "name": "against", + "category": "mind", + "price": 394.93, + "stock_quantity": 716 + }, + "customer": { + "name": "Valerie Rodriguez", + "age": 53, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Brown-Gonzalez", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "organization", + "category": "hand", + "price": 406.94, + "stock_quantity": 73 + }, + "customer": { + "name": "Danielle Shelton", + "age": 49, + "country": "Gibraltar" + } + }, + { + "natural_query": "What is the average quantity of all products for Ramirez LLC?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Ramirez LLC'", + "company": { + "name": "Ramirez LLC", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "child", + "category": "expert", + "price": 480.39, + "stock_quantity": 157 + }, + "customer": { + "name": "Joseph Freeman", + "age": 29, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Walters Inc", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "long", + "category": "different", + "price": 717.41, + "stock_quantity": 827 + }, + "customer": { + "name": "Michelle Cabrera", + "age": 66, + "country": "South Africa" + } + }, + { + "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'", + "company": { + "name": "Parker-Sheppard", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "could", + "category": "teacher", + "price": 124.56, + "stock_quantity": 475 + }, + "customer": { + "name": "Jasmine Stanley", + "age": 77, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Henderson-Hoffman", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "those", + "category": "way", + "price": 613.89, + "stock_quantity": 35 + }, + "customer": { + "name": "Ashlee Mcgee", + "age": 44, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Payne, Lloyd and Acosta", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "special", + "category": "player", + "price": 895.95, + "stock_quantity": 643 + }, + "customer": { + "name": "Daryl Thompson", + "age": 29, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Brown, Elliott and Black", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "family", + "category": "happy", + "price": 693.91, + "stock_quantity": 293 + }, + "customer": { + "name": "Daniel Harris", + "age": 25, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Vasquez Inc", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "store", + "category": "this", + "price": 417.32, + "stock_quantity": 115 + }, + "customer": { + "name": "Dawn Myers", + "age": 31, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Davies LLC", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "life", + "category": "mission", + "price": 48.31, + "stock_quantity": 727 + }, + "customer": { + "name": "Kyle Nixon", + "age": 68, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Thomas-Marshall", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "by", + "category": "cause", + "price": 270.99, + "stock_quantity": 71 + }, + "customer": { + "name": "Summer Yang", + "age": 68, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Park, Smith and Cobb", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "partner", + "category": "reveal", + "price": 379.38, + "stock_quantity": 431 + }, + "customer": { + "name": "Melissa Curtis", + "age": 28, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Sawyer Ltd", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "property", + "category": "when", + "price": 949.47, + "stock_quantity": 542 + }, + "customer": { + "name": "James Campbell", + "age": 33, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Montoya-Hansen", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "indeed", + "category": "remember", + "price": 902.73, + "stock_quantity": 459 + }, + "customer": { + "name": "Christopher Meza", + "age": 22, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Fisher PLC", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "keep", + "category": "population", + "price": 457.95, + "stock_quantity": 924 + }, + "customer": { + "name": "David Palmer", + "age": 79, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Garrison, Andrews and Nash", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "loss", + "category": "lose", + "price": 964.69, + "stock_quantity": 878 + }, + "customer": { + "name": "Barbara Huff", + "age": 63, + "country": "Japan" + } + }, + { + "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'", + "company": { + "name": "Davenport-Lara", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "American", + "category": "subject", + "price": 932.16, + "stock_quantity": 834 + }, + "customer": { + "name": "Michael Martinez", + "age": 20, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Kramer-Robinson", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "industry", + "category": "just", + "price": 859.35, + "stock_quantity": 60 + }, + "customer": { + "name": "Jerry Crawford Jr.", + "age": 53, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Acosta, Arellano and Guerra", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "environment", + "category": "toward", + "price": 50.1, + "stock_quantity": 545 + }, + "customer": { + "name": "Meredith Wilson", + "age": 26, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Ortiz, Henry and Deleon", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "leader", + "category": "street", + "price": 272.5, + "stock_quantity": 692 + }, + "customer": { + "name": "Shawn Smith", + "age": 23, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Reynolds PLC", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "including", + "category": "both", + "price": 639.36, + "stock_quantity": 572 + }, + "customer": { + "name": "Robert Black", + "age": 69, + "country": "South Africa" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Booth, Flores and Conner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Booth, Flores and Conner", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "product", + "category": "site", + "price": 162.1, + "stock_quantity": 873 + }, + "customer": { + "name": "David Stephenson", + "age": 52, + "country": "Jordan" + } + }, + { + "natural_query": "What is the maximum rating of all products for Hopkins Ltd?", + "sql_query": "SELECT MAXIMUM(rating) as result FROM products WHERE company_name = 'Hopkins Ltd'", + "company": { + "name": "Hopkins Ltd", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "money", + "category": "blood", + "price": 666.5, + "stock_quantity": 517 + }, + "customer": { + "name": "Cindy Vang", + "age": 59, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Schneider, Good and Moore", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "every", + "category": "central", + "price": 783.89, + "stock_quantity": 786 + }, + "customer": { + "name": "James Oneal", + "age": 60, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Smith-Compton", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "away", + "category": "get", + "price": 36.5, + "stock_quantity": 174 + }, + "customer": { + "name": "Jennifer Robinson", + "age": 18, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Ellis-Miller", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "fall", + "category": "line", + "price": 566.58, + "stock_quantity": 130 + }, + "customer": { + "name": "Rachel Hernandez", + "age": 33, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Castillo, Ayala and Russo", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "recognize", + "category": "from", + "price": 714.49, + "stock_quantity": 979 + }, + "customer": { + "name": "Tammie Knight", + "age": 47, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Castillo-Cole", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "strategy", + "category": "four", + "price": 709.46, + "stock_quantity": 466 + }, + "customer": { + "name": "Daniel Ford", + "age": 52, + "country": "Colombia" + } + }, + { + "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'", + "company": { + "name": "Villegas-Anderson", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "short", + "category": "only", + "price": 480.67, + "stock_quantity": 466 + }, + "customer": { + "name": "Robert Middleton", + "age": 56, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Johnson Ltd", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "discuss", + "category": "I", + "price": 141.85, + "stock_quantity": 751 + }, + "customer": { + "name": "Patricia Butler", + "age": 22, + "country": "Iceland" + } + }, + { + "natural_query": "What is the total quantity of all products for Andrews and Sons?", + "sql_query": "SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Andrews and Sons'", + "company": { + "name": "Andrews and Sons", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "say", + "category": "pretty", + "price": 669.82, + "stock_quantity": 143 + }, + "customer": { + "name": "Sherri Dodson DDS", + "age": 51, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Melendez, Davis and Chen", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "security", + "category": "analysis", + "price": 289.2, + "stock_quantity": 434 + }, + "customer": { + "name": "Steven Bradshaw", + "age": 29, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Parsons-Johnson", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "worker", + "category": "wife", + "price": 144.34, + "stock_quantity": 955 + }, + "customer": { + "name": "David Wilcox", + "age": 56, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Wells-Rich", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "tend", + "category": "indicate", + "price": 677.25, + "stock_quantity": 158 + }, + "customer": { + "name": "Marissa Flores", + "age": 40, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Jackson PLC", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "wonder", + "category": "baby", + "price": 261.52, + "stock_quantity": 411 + }, + "customer": { + "name": "Tracy Manning", + "age": 68, + "country": "French Polynesia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cameron, Jacobs and Price'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cameron, Jacobs and Price", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "set", + "category": "box", + "price": 618.3, + "stock_quantity": 72 + }, + "customer": { + "name": "Harold Terrell", + "age": 56, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Carey, Grant and Nelson", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "senior", + "category": "cost", + "price": 515.05, + "stock_quantity": 419 + }, + "customer": { + "name": "Angel Torres", + "age": 58, + "country": "Mauritius" + } + }, + { + "natural_query": "List all products of Wilson Ltd ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Wilson Ltd' ORDER BY price DESC", + "company": { + "name": "Wilson Ltd", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "class", + "category": "cell", + "price": 338.96, + "stock_quantity": 268 + }, + "customer": { + "name": "Eric Gonzalez", + "age": 70, + "country": "Greece" + } + }, + { + "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'", + "company": { + "name": "Cobb PLC", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "court", + "category": "try", + "price": 534.45, + "stock_quantity": 976 + }, + "customer": { + "name": "Carlos James", + "age": 33, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Wilson-Brown", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "really", + "category": "behavior", + "price": 441.74, + "stock_quantity": 543 + }, + "customer": { + "name": "Mark Mills MD", + "age": 46, + "country": "New Caledonia" + } + }, + { + "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'", + "company": { + "name": "Gutierrez, Conley and Beard", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "fight", + "category": "Mr", + "price": 616.0, + "stock_quantity": 542 + }, + "customer": { + "name": "Andrew Smith", + "age": 62, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Davis, Hayden and Smith", + "sector": "LLC", + "founded_year": "1998" + }, + "product": { + "name": "impact", + "category": "any", + "price": 464.74, + "stock_quantity": 701 + }, + "customer": { + "name": "Peter Perkins", + "age": 52, + "country": "Chad" + } + }, + { + "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", + "company": { + "name": "Hoffman, Mathis and Morris", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "list", + "category": "data", + "price": 203.87, + "stock_quantity": 380 + }, + "customer": { + "name": "Taylor Contreras", + "age": 51, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Jones, Allen and Miller", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "trade", + "category": "already", + "price": 308.3, + "stock_quantity": 880 + }, + "customer": { + "name": "Kendra Santos", + "age": 35, + "country": "Austria" + } + }, + { + "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", + "company": { + "name": "Moore-Oliver", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "road", + "category": "most", + "price": 554.38, + "stock_quantity": 599 + }, + "customer": { + "name": "Hannah Brown", + "age": 43, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Herrera LLC", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "culture", + "category": "win", + "price": 720.09, + "stock_quantity": 165 + }, + "customer": { + "name": "Kristen Owens", + "age": 60, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Best-Bowman", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "maintain", + "category": "any", + "price": 936.24, + "stock_quantity": 950 + }, + "customer": { + "name": "Leonard Brown", + "age": 20, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Vaughn Inc", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "environmental", + "category": "project", + "price": 18.98, + "stock_quantity": 446 + }, + "customer": { + "name": "Allison Hinton", + "age": 52, + "country": "Mayotte" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Dyer Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Dyer Inc", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "floor", + "category": "sometimes", + "price": 231.3, + "stock_quantity": 804 + }, + "customer": { + "name": "Laura Harris", + "age": 52, + "country": "United Arab Emirates" + } + }, + { + "natural_query": "List all customers and their total order value for Vargas, Rivera and Horton.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Vargas, Rivera and Horton' GROUP BY c.customer_id", + "company": { + "name": "Vargas, Rivera and Horton", + "sector": "PLC", + "founded_year": "1992" + }, + "product": { + "name": "page", + "category": "treat", + "price": 145.94, + "stock_quantity": 269 + }, + "customer": { + "name": "Rebekah Fry", + "age": 40, + "country": "Ireland" + } + }, + { + "natural_query": "List all products of Fleming, Thomas and Knight ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Fleming, Thomas and Knight' ORDER BY rating DESC", + "company": { + "name": "Fleming, Thomas and Knight", + "sector": "Group", + "founded_year": "2001" + }, + "product": { + "name": "behind", + "category": "sea", + "price": 892.38, + "stock_quantity": 940 + }, + "customer": { + "name": "Kim Chen", + "age": 74, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Webb, Williams and Baker", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "want", + "category": "laugh", + "price": 968.95, + "stock_quantity": 320 + }, + "customer": { + "name": "Julie Mendoza", + "age": 37, + "country": "Barbados" + } + }, + { + "natural_query": "What are the top 5 products by orders for Johnson, Dunn and Davis last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Johnson, Dunn and Davis' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5", + "company": { + "name": "Johnson, Dunn and Davis", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "general", + "category": "one", + "price": 836.12, + "stock_quantity": 438 + }, + "customer": { + "name": "Joshua Jones", + "age": 61, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Sullivan Group", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "special", + "category": "science", + "price": 86.62, + "stock_quantity": 919 + }, + "customer": { + "name": "Emily Davis", + "age": 77, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Turner and Sons", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "dark", + "category": "director", + "price": 667.7, + "stock_quantity": 896 + }, + "customer": { + "name": "Kristin Nelson", + "age": 77, + "country": "Tunisia" + } + }, + { + "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", + "company": { + "name": "Jimenez Group", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "worry", + "category": "deep", + "price": 401.71, + "stock_quantity": 29 + }, + "customer": { + "name": "Tina Rich", + "age": 53, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Gray, Allen and Gray", + "sector": "and Sons", + "founded_year": "2008" + }, + "product": { + "name": "feel", + "category": "be", + "price": 104.43, + "stock_quantity": 854 + }, + "customer": { + "name": "Shawn Valdez", + "age": 37, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Garcia, Young and Hernandez", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "education", + "category": "alone", + "price": 159.69, + "stock_quantity": 446 + }, + "customer": { + "name": "James Ward", + "age": 21, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Anderson, Singh and Horne", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "list", + "category": "term", + "price": 324.61, + "stock_quantity": 960 + }, + "customer": { + "name": "Timothy Morgan", + "age": 48, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Wagner Group", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "kid", + "category": "international", + "price": 555.27, + "stock_quantity": 859 + }, + "customer": { + "name": "Sean Morgan", + "age": 69, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Davidson, Bradley and Harris", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "know", + "category": "federal", + "price": 46.23, + "stock_quantity": 816 + }, + "customer": { + "name": "Kristen Lara", + "age": 69, + "country": "Cayman Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cole-Castillo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cole-Castillo", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "throw", + "category": "imagine", + "price": 863.93, + "stock_quantity": 218 + }, + "customer": { + "name": "Nicholas Wright", + "age": 60, + "country": "Tuvalu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cooke, Jackson and Porter'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cooke, Jackson and Porter", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "dream", + "category": "response", + "price": 834.48, + "stock_quantity": 326 + }, + "customer": { + "name": "Henry Salinas", + "age": 45, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Sawyer, Wu and Hoffman", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "finally", + "category": "end", + "price": 314.09, + "stock_quantity": 316 + }, + "customer": { + "name": "Julie Moody", + "age": 64, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Rivas-Gill", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "police", + "category": "consumer", + "price": 464.81, + "stock_quantity": 715 + }, + "customer": { + "name": "Jeffrey Carter", + "age": 58, + "country": "Argentina" + } + }, + { + "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'", + "company": { + "name": "Tucker, Montoya and Thomas", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "price", + "category": "rule", + "price": 650.15, + "stock_quantity": 380 + }, + "customer": { + "name": "Harold Hopkins", + "age": 62, + "country": "Monaco" + } + }, + { + "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'", + "company": { + "name": "Smith, Brewer and Haley", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "end", + "category": "behavior", + "price": 122.71, + "stock_quantity": 753 + }, + "customer": { + "name": "Richard Sanchez", + "age": 55, + "country": "Saint Martin" + } + }, + { + "natural_query": "Show me all products in the force category with a price over $22.14.", + "sql_query": "SELECT * FROM products WHERE category = 'force' AND price > 22.14", + "company": { + "name": "Williams, Kim and Scott", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "environment", + "category": "force", + "price": 22.14, + "stock_quantity": 612 + }, + "customer": { + "name": "Lawrence Acosta", + "age": 28, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Monroe-Snyder", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "organization", + "category": "never", + "price": 983.62, + "stock_quantity": 805 + }, + "customer": { + "name": "Jonathan Martin", + "age": 53, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Hoffman-Ramirez", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "town", + "category": "avoid", + "price": 840.86, + "stock_quantity": 276 + }, + "customer": { + "name": "Sarah Gates", + "age": 23, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Rogers Group", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "north", + "category": "although", + "price": 323.76, + "stock_quantity": 154 + }, + "customer": { + "name": "Tonya Morgan", + "age": 25, + "country": "Ireland" + } + }, + { + "natural_query": "List all customers and their total order value for Wheeler-Rodriguez.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Wheeler-Rodriguez' GROUP BY c.customer_id", + "company": { + "name": "Wheeler-Rodriguez", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "action", + "category": "apply", + "price": 46.18, + "stock_quantity": 474 + }, + "customer": { + "name": "Peggy Robbins", + "age": 42, + "country": "Myanmar" + } + }, + { + "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'", + "company": { + "name": "Daniels, Johnson and Barrera", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "us", + "category": "language", + "price": 137.4, + "stock_quantity": 561 + }, + "customer": { + "name": "Ashley Meyer", + "age": 39, + "country": "Vanuatu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kelly, Henderson and Scott'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kelly, Henderson and Scott", + "sector": "PLC", + "founded_year": "1973" + }, + "product": { + "name": "run", + "category": "amount", + "price": 123.68, + "stock_quantity": 482 + }, + "customer": { + "name": "Lisa Alexander", + "age": 47, + "country": "Guam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hayes, Lee and Walker'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hayes, Lee and Walker", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "hope", + "category": "there", + "price": 298.31, + "stock_quantity": 621 + }, + "customer": { + "name": "Sarah Kelly", + "age": 54, + "country": "Benin" + } + }, + { + "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'", + "company": { + "name": "Macias Group", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "likely", + "category": "place", + "price": 232.84, + "stock_quantity": 403 + }, + "customer": { + "name": "Amy Moreno", + "age": 18, + "country": "Pakistan" + } + }, + { + "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", + "company": { + "name": "Schroeder-Carter", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "response", + "category": "list", + "price": 392.38, + "stock_quantity": 639 + }, + "customer": { + "name": "William Garner", + "age": 24, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Murray-Oneal", + "sector": "Inc", + "founded_year": "1975" + }, + "product": { + "name": "run", + "category": "trial", + "price": 96.26, + "stock_quantity": 863 + }, + "customer": { + "name": "Kyle Sanders", + "age": 77, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Bentley-Gomez", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "article", + "category": "middle", + "price": 74.98, + "stock_quantity": 359 + }, + "customer": { + "name": "Anthony Barrera", + "age": 69, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Bass, Evans and Weeks", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "body", + "category": "into", + "price": 527.09, + "stock_quantity": 900 + }, + "customer": { + "name": "Rachel Martin", + "age": 68, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Roth-Conner", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "wonder", + "category": "present", + "price": 485.27, + "stock_quantity": 624 + }, + "customer": { + "name": "Jason Salazar", + "age": 18, + "country": "Algeria" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fowler, Henry and Roberts'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fowler, Henry and Roberts", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "whose", + "category": "camera", + "price": 704.15, + "stock_quantity": 628 + }, + "customer": { + "name": "Sarah Miles", + "age": 37, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Simmons Group", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "other", + "category": "method", + "price": 448.53, + "stock_quantity": 448 + }, + "customer": { + "name": "Sonya Key", + "age": 22, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Scott, Montoya and Lucas", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "rock", + "category": "need", + "price": 920.58, + "stock_quantity": 867 + }, + "customer": { + "name": "Kelly Park", + "age": 36, + "country": "Kyrgyz Republic" + } + }, + { + "natural_query": "What are the top 9 products by customers for Ryan, Rivera and Evans this year?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Ryan, Rivera and Evans' AND period = 'this year' GROUP BY product_name ORDER BY total_customers DESC LIMIT 9", + "company": { + "name": "Ryan, Rivera and Evans", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "simply", + "category": "old", + "price": 635.65, + "stock_quantity": 229 + }, + "customer": { + "name": "Stephen Brown", + "age": 62, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Cunningham, Hammond and Wood", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "officer", + "category": "party", + "price": 791.59, + "stock_quantity": 241 + }, + "customer": { + "name": "Wayne Mendez", + "age": 18, + "country": "Reunion" + } + }, + { + "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'", + "company": { + "name": "Martin-Horn", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "science", + "category": "friend", + "price": 755.23, + "stock_quantity": 655 + }, + "customer": { + "name": "Thomas Espinoza", + "age": 33, + "country": "Azerbaijan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Marshall, Wiggins and Lewis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Marshall, Wiggins and Lewis", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "least", + "category": "face", + "price": 647.58, + "stock_quantity": 650 + }, + "customer": { + "name": "Peter Sims", + "age": 76, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Smith and Sons", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "TV", + "category": "success", + "price": 512.78, + "stock_quantity": 891 + }, + "customer": { + "name": "Jose Ellison", + "age": 46, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Hernandez Inc", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "book", + "category": "various", + "price": 280.44, + "stock_quantity": 895 + }, + "customer": { + "name": "Julie Beck", + "age": 75, + "country": "Romania" + } + }, + { + "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'", + "company": { + "name": "Gould, Cervantes and King", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "cost", + "category": "walk", + "price": 801.75, + "stock_quantity": 274 + }, + "customer": { + "name": "Rodney Shields", + "age": 53, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Dickson, Espinoza and Cummings", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "interesting", + "category": "show", + "price": 640.77, + "stock_quantity": 158 + }, + "customer": { + "name": "Richard Silva", + "age": 69, + "country": "Holy See (Vatican City State)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'West, Thomas and Robinson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "West, Thomas and Robinson", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "ten", + "category": "among", + "price": 904.94, + "stock_quantity": 715 + }, + "customer": { + "name": "Matthew Swanson", + "age": 80, + "country": "Morocco" + } + }, + { + "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", + "company": { + "name": "White, Scott and Lewis", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "miss", + "category": "whose", + "price": 974.21, + "stock_quantity": 877 + }, + "customer": { + "name": "Marissa Carrillo", + "age": 47, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Barnett-Turner", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "language", + "category": "data", + "price": 620.74, + "stock_quantity": 186 + }, + "customer": { + "name": "Monica Gaines", + "age": 61, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Jackson-Mack", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "series", + "category": "return", + "price": 12.58, + "stock_quantity": 100 + }, + "customer": { + "name": "Nicholas Rivera", + "age": 25, + "country": "Central African Republic" + } + }, + { + "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'", + "company": { + "name": "Miller PLC", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "public", + "category": "increase", + "price": 445.52, + "stock_quantity": 592 + }, + "customer": { + "name": "Charles Bowman", + "age": 61, + "country": "Norfolk Island" + } + }, + { + "natural_query": "What are the top 10 products by customers for Lopez-Peters this month?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lopez-Peters' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10", + "company": { + "name": "Lopez-Peters", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "admit", + "category": "American", + "price": 172.43, + "stock_quantity": 457 + }, + "customer": { + "name": "Zachary Copeland", + "age": 54, + "country": "Guinea" + } + }, + { + "natural_query": "Show me all products in the less category with a price over $415.89.", + "sql_query": "SELECT * FROM products WHERE category = 'less' AND price > 415.89", + "company": { + "name": "Le-Mckee", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "theory", + "category": "less", + "price": 415.89, + "stock_quantity": 449 + }, + "customer": { + "name": "Anna Young", + "age": 48, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Perez LLC", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "father", + "category": "land", + "price": 123.02, + "stock_quantity": 943 + }, + "customer": { + "name": "Evan West", + "age": 27, + "country": "Iceland" + } + }, + { + "natural_query": "List all customers and their total order value for Underwood-Jones.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Underwood-Jones' GROUP BY c.customer_id", + "company": { + "name": "Underwood-Jones", + "sector": "LLC", + "founded_year": "2013" + }, + "product": { + "name": "example", + "category": "person", + "price": 780.79, + "stock_quantity": 910 + }, + "customer": { + "name": "Jerry Webb", + "age": 28, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Sloan-Castillo", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "money", + "category": "check", + "price": 935.62, + "stock_quantity": 836 + }, + "customer": { + "name": "Keith Brown", + "age": 42, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Goodwin-Townsend", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "economic", + "category": "stuff", + "price": 14.29, + "stock_quantity": 726 + }, + "customer": { + "name": "Aaron Munoz", + "age": 75, + "country": "Northern Mariana Islands" + } + }, + { + "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", + "company": { + "name": "Vazquez, Nguyen and Pineda", + "sector": "Ltd", + "founded_year": "1983" + }, + "product": { + "name": "network", + "category": "somebody", + "price": 514.36, + "stock_quantity": 988 + }, + "customer": { + "name": "Hannah Huff", + "age": 40, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Willis, Lawrence and Rich", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "arrive", + "category": "set", + "price": 387.44, + "stock_quantity": 34 + }, + "customer": { + "name": "Teresa Ramirez", + "age": 26, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Henry-Weber", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "energy", + "category": "at", + "price": 862.26, + "stock_quantity": 37 + }, + "customer": { + "name": "Derrick Edwards", + "age": 55, + "country": "Solomon Islands" + } + }, + { + "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", + "company": { + "name": "Davis Group", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "drive", + "category": "even", + "price": 877.51, + "stock_quantity": 961 + }, + "customer": { + "name": "James White", + "age": 79, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Stewart Group", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "social", + "category": "even", + "price": 159.83, + "stock_quantity": 145 + }, + "customer": { + "name": "Rachel Gordon", + "age": 53, + "country": "Equatorial Guinea" + } + }, + { + "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'", + "company": { + "name": "Anderson, Berry and Jarvis", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "factor", + "category": "describe", + "price": 993.34, + "stock_quantity": 461 + }, + "customer": { + "name": "Randy Mays", + "age": 28, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Berger Ltd", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "against", + "category": "others", + "price": 455.1, + "stock_quantity": 953 + }, + "customer": { + "name": "Angela Gross", + "age": 48, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "White-Norton", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "ground", + "category": "away", + "price": 798.6, + "stock_quantity": 381 + }, + "customer": { + "name": "Christopher Stone", + "age": 42, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Espinoza, Weaver and Williams", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "next", + "category": "century", + "price": 910.11, + "stock_quantity": 697 + }, + "customer": { + "name": "Cassandra King", + "age": 78, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Lawrence, Miller and Williams", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "after", + "category": "rate", + "price": 81.15, + "stock_quantity": 418 + }, + "customer": { + "name": "James Bush", + "age": 34, + "country": "Macao" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Scott PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Scott PLC", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "your", + "category": "market", + "price": 471.31, + "stock_quantity": 355 + }, + "customer": { + "name": "Michelle Mclaughlin", + "age": 47, + "country": "Montenegro" + } + }, + { + "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", + "company": { + "name": "Ward-Cline", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "ability", + "category": "area", + "price": 418.82, + "stock_quantity": 254 + }, + "customer": { + "name": "Adam Greene", + "age": 75, + "country": "Malta" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sharp-Nixon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sharp-Nixon", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "be", + "category": "go", + "price": 984.96, + "stock_quantity": 871 + }, + "customer": { + "name": "Joel Mullen", + "age": 30, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Espinoza, Morrow and Greene", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "large", + "category": "rate", + "price": 248.28, + "stock_quantity": 207 + }, + "customer": { + "name": "Holly Martin", + "age": 20, + "country": "Jamaica" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson, Jones and Nelson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson, Jones and Nelson", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "image", + "category": "she", + "price": 235.51, + "stock_quantity": 60 + }, + "customer": { + "name": "Jesse Mooney", + "age": 38, + "country": "Jordan" + } + }, + { + "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'", + "company": { + "name": "Baker Inc", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "explain", + "category": "note", + "price": 645.27, + "stock_quantity": 947 + }, + "customer": { + "name": "Curtis Alvarez", + "age": 34, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Smith, Marsh and Gordon", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "free", + "category": "performance", + "price": 446.03, + "stock_quantity": 89 + }, + "customer": { + "name": "Danny Thompson", + "age": 51, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Sandoval Group", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "baby", + "category": "drug", + "price": 805.84, + "stock_quantity": 510 + }, + "customer": { + "name": "Danielle Walls", + "age": 50, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Martinez-Fischer", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "entire", + "category": "major", + "price": 477.07, + "stock_quantity": 926 + }, + "customer": { + "name": "Jose Ross DDS", + "age": 68, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Frank, Carpenter and Martinez", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "development", + "category": "edge", + "price": 227.26, + "stock_quantity": 977 + }, + "customer": { + "name": "Haley Krueger", + "age": 59, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Fernandez PLC", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "throughout", + "category": "record", + "price": 526.08, + "stock_quantity": 705 + }, + "customer": { + "name": "Curtis Anderson", + "age": 69, + "country": "Japan" + } + }, + { + "natural_query": "What is the total sales for each supplier in Medina-Yates?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Medina-Yates' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Medina-Yates", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "few", + "category": "list", + "price": 350.16, + "stock_quantity": 517 + }, + "customer": { + "name": "Patrick Kidd", + "age": 61, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Cooper Group", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "week", + "category": "it", + "price": 597.64, + "stock_quantity": 993 + }, + "customer": { + "name": "Michael Gonzalez", + "age": 47, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Wallace-Ortega", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "natural", + "category": "weight", + "price": 969.81, + "stock_quantity": 387 + }, + "customer": { + "name": "Jim Campbell", + "age": 76, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Miller Ltd", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "follow", + "category": "baby", + "price": 67.33, + "stock_quantity": 32 + }, + "customer": { + "name": "Taylor Davis", + "age": 78, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Johnson Inc", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "arrive", + "category": "own", + "price": 992.25, + "stock_quantity": 625 + }, + "customer": { + "name": "Eric Morgan", + "age": 78, + "country": "Antigua and Barbuda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Edwards, Flowers and Gould'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Edwards, Flowers and Gould", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "notice", + "category": "who", + "price": 260.49, + "stock_quantity": 53 + }, + "customer": { + "name": "Noah Moon", + "age": 47, + "country": "Western Sahara" + } + }, + { + "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", + "company": { + "name": "Castillo Ltd", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "picture", + "category": "ability", + "price": 106.25, + "stock_quantity": 102 + }, + "customer": { + "name": "Kaylee Brown", + "age": 67, + "country": "Costa Rica" + } + }, + { + "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", + "company": { + "name": "Morgan, Johnson and Dudley", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "major", + "category": "involve", + "price": 451.12, + "stock_quantity": 82 + }, + "customer": { + "name": "Whitney Smith", + "age": 36, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Steele Inc", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "trip", + "category": "serious", + "price": 431.44, + "stock_quantity": 863 + }, + "customer": { + "name": "Paul Flores", + "age": 26, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Guzman-Day", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "audience", + "category": "knowledge", + "price": 95.2, + "stock_quantity": 781 + }, + "customer": { + "name": "Cynthia Neal", + "age": 53, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Alvarez Ltd", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "his", + "category": "heart", + "price": 873.23, + "stock_quantity": 754 + }, + "customer": { + "name": "Dr. Robert Garner", + "age": 33, + "country": "Australia" + } + }, + { + "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'", + "company": { + "name": "Shields-Arnold", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "especially", + "category": "in", + "price": 910.24, + "stock_quantity": 277 + }, + "customer": { + "name": "Allison Stevens", + "age": 22, + "country": "Gabon" + } + }, + { + "natural_query": "List all customers and their total order value for Preston Ltd.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Preston Ltd' GROUP BY c.customer_id", + "company": { + "name": "Preston Ltd", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "effort", + "category": "wide", + "price": 458.57, + "stock_quantity": 847 + }, + "customer": { + "name": "Ronald Jones", + "age": 37, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Hamilton Group", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "per", + "category": "eye", + "price": 422.23, + "stock_quantity": 599 + }, + "customer": { + "name": "Stephanie Fowler", + "age": 64, + "country": "Palau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Casey, Scott and Reed'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Casey, Scott and Reed", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "threat", + "category": "which", + "price": 775.57, + "stock_quantity": 14 + }, + "customer": { + "name": "Sabrina Taylor", + "age": 37, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Adkins-Scott", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "cost", + "category": "trouble", + "price": 604.21, + "stock_quantity": 693 + }, + "customer": { + "name": "Rickey Scott", + "age": 66, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Hunt-Hopkins", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "no", + "category": "land", + "price": 336.66, + "stock_quantity": 307 + }, + "customer": { + "name": "Justin Morgan", + "age": 44, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Brown-Webb", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "news", + "category": "base", + "price": 901.86, + "stock_quantity": 557 + }, + "customer": { + "name": "Michael Gibbs", + "age": 66, + "country": "Venezuela" + } + }, + { + "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", + "company": { + "name": "Rangel-Reyes", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "focus", + "category": "sort", + "price": 638.15, + "stock_quantity": 962 + }, + "customer": { + "name": "Diana Long", + "age": 32, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Adams-Olson", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "technology", + "category": "for", + "price": 243.11, + "stock_quantity": 524 + }, + "customer": { + "name": "Christopher Wilson", + "age": 37, + "country": "Bahrain" + } + }, + { + "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'", + "company": { + "name": "Bridges, Rhodes and Stafford", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "prepare", + "category": "card", + "price": 927.27, + "stock_quantity": 606 + }, + "customer": { + "name": "Kelly Moore", + "age": 21, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Chase-Garcia", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "not", + "category": "chance", + "price": 582.0, + "stock_quantity": 950 + }, + "customer": { + "name": "Patrick Palmer", + "age": 29, + "country": "New Caledonia" + } + }, + { + "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", + "company": { + "name": "Melton, Anderson and Williams", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "end", + "category": "last", + "price": 738.31, + "stock_quantity": 831 + }, + "customer": { + "name": "Courtney White", + "age": 28, + "country": "Grenada" + } + }, + { + "natural_query": "List all products of Thomas-Boyer ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Thomas-Boyer' ORDER BY price ASC", + "company": { + "name": "Thomas-Boyer", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "cost", + "category": "where", + "price": 983.97, + "stock_quantity": 503 + }, + "customer": { + "name": "James Mcdowell", + "age": 79, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Hunter-Cannon", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "now", + "category": "happen", + "price": 125.44, + "stock_quantity": 347 + }, + "customer": { + "name": "Peter Klein", + "age": 57, + "country": "Netherlands" + } + }, + { + "natural_query": "What is the total profit for each supplier in Ingram and Sons?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Ingram and Sons' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Ingram and Sons", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "hold", + "category": "have", + "price": 515.02, + "stock_quantity": 20 + }, + "customer": { + "name": "James Edwards", + "age": 61, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Caldwell PLC", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "pay", + "category": "same", + "price": 655.53, + "stock_quantity": 451 + }, + "customer": { + "name": "Elizabeth Davis", + "age": 31, + "country": "Macao" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shepard PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shepard PLC", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "age", + "category": "eat", + "price": 138.21, + "stock_quantity": 693 + }, + "customer": { + "name": "Austin Kim", + "age": 61, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Moss, Elliott and Boyle", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "arrive", + "category": "itself", + "price": 884.72, + "stock_quantity": 18 + }, + "customer": { + "name": "Michael Meyers", + "age": 64, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Wallace, Shepherd and Park", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "method", + "category": "development", + "price": 952.41, + "stock_quantity": 33 + }, + "customer": { + "name": "Laura Zuniga", + "age": 37, + "country": "Eritrea" + } + }, + { + "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'", + "company": { + "name": "Middleton-Reed", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "source", + "category": "around", + "price": 861.32, + "stock_quantity": 639 + }, + "customer": { + "name": "John Jones", + "age": 51, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Chapman LLC", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "voice", + "category": "between", + "price": 312.46, + "stock_quantity": 49 + }, + "customer": { + "name": "Patricia Harris", + "age": 68, + "country": "Georgia" + } + }, + { + "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'", + "company": { + "name": "Pacheco, Crawford and Novak", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "series", + "category": "never", + "price": 300.0, + "stock_quantity": 285 + }, + "customer": { + "name": "Cynthia Smith", + "age": 39, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Thompson, Baxter and Mccullough", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "production", + "category": "important", + "price": 968.17, + "stock_quantity": 62 + }, + "customer": { + "name": "Nicole Summers", + "age": 27, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Rivera-Johnson", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "Democrat", + "category": "off", + "price": 276.33, + "stock_quantity": 536 + }, + "customer": { + "name": "Bradley Sawyer", + "age": 74, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Stevens-Cox", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "front", + "category": "play", + "price": 477.61, + "stock_quantity": 734 + }, + "customer": { + "name": "Gregory Short", + "age": 80, + "country": "Oman" + } + }, + { + "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'", + "company": { + "name": "Jones, Garcia and Mcgee", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "me", + "category": "ready", + "price": 516.53, + "stock_quantity": 621 + }, + "customer": { + "name": "William Miller", + "age": 75, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Smith-Burns", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "rock", + "category": "edge", + "price": 829.32, + "stock_quantity": 333 + }, + "customer": { + "name": "Brian Smith", + "age": 40, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Anthony PLC", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "hotel", + "category": "none", + "price": 23.74, + "stock_quantity": 494 + }, + "customer": { + "name": "Tanya King MD", + "age": 19, + "country": "Somalia" + } + }, + { + "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'", + "company": { + "name": "Martin-Schmidt", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "use", + "category": "move", + "price": 561.84, + "stock_quantity": 96 + }, + "customer": { + "name": "Tonya Jones", + "age": 56, + "country": "Niue" + } + }, + { + "natural_query": "What is the average price of all products for Scott-Larsen?", + "sql_query": "SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Scott-Larsen'", + "company": { + "name": "Scott-Larsen", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "direction", + "category": "major", + "price": 100.43, + "stock_quantity": 667 + }, + "customer": { + "name": "Ryan Meyer", + "age": 18, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Valenzuela and Sons", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "partner", + "category": "officer", + "price": 388.07, + "stock_quantity": 551 + }, + "customer": { + "name": "Kevin Thompson", + "age": 56, + "country": "Maldives" + } + }, + { + "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", + "company": { + "name": "Warner LLC", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "more", + "category": "artist", + "price": 214.23, + "stock_quantity": 815 + }, + "customer": { + "name": "Stephen Silva", + "age": 31, + "country": "Yemen" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sweeney-Mendoza'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sweeney-Mendoza", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "century", + "category": "national", + "price": 232.09, + "stock_quantity": 471 + }, + "customer": { + "name": "Nicholas Miller", + "age": 69, + "country": "Portugal" + } + }, + { + "natural_query": "Show me all products in the child category with a price over $692.25.", + "sql_query": "SELECT * FROM products WHERE category = 'child' AND price > 692.25", + "company": { + "name": "Shields-Walker", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "participant", + "category": "child", + "price": 692.25, + "stock_quantity": 630 + }, + "customer": { + "name": "Brittney Thomas", + "age": 80, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Powell-Kelly", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "fear", + "category": "similar", + "price": 788.26, + "stock_quantity": 898 + }, + "customer": { + "name": "Kristen Gonzales", + "age": 54, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Rogers Ltd", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "guess", + "category": "walk", + "price": 65.37, + "stock_quantity": 373 + }, + "customer": { + "name": "Scott Berry", + "age": 28, + "country": "Panama" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Williamson Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Williamson Inc", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "yard", + "category": "likely", + "price": 234.78, + "stock_quantity": 741 + }, + "customer": { + "name": "Christopher Johnson", + "age": 58, + "country": "Bolivia" + } + }, + { + "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'", + "company": { + "name": "Griffin Inc", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "list", + "category": "more", + "price": 637.42, + "stock_quantity": 612 + }, + "customer": { + "name": "Martin Owen", + "age": 45, + "country": "Sudan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carpenter-Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carpenter-Brown", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "us", + "category": "as", + "price": 333.71, + "stock_quantity": 941 + }, + "customer": { + "name": "Tyler Brady", + "age": 40, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Martin LLC", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "develop", + "category": "fire", + "price": 529.44, + "stock_quantity": 513 + }, + "customer": { + "name": "Jennifer Lyons", + "age": 51, + "country": "New Caledonia" + } + }, + { + "natural_query": "What is the total profit for each supplier in Scott and Sons?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Scott and Sons' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Scott and Sons", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "hear", + "category": "give", + "price": 712.73, + "stock_quantity": 970 + }, + "customer": { + "name": "Crystal Petersen", + "age": 71, + "country": "Jamaica" + } + }, + { + "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'", + "company": { + "name": "Rosario, Willis and Copeland", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "identify", + "category": "others", + "price": 758.76, + "stock_quantity": 735 + }, + "customer": { + "name": "Hunter Cooper", + "age": 73, + "country": "Saint Barthelemy" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Acevedo, Hernandez and Faulkner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Acevedo, Hernandez and Faulkner", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "every", + "category": "compare", + "price": 253.8, + "stock_quantity": 293 + }, + "customer": { + "name": "Lori Henry", + "age": 26, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Gardner Ltd", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "such", + "category": "style", + "price": 548.96, + "stock_quantity": 538 + }, + "customer": { + "name": "Michele Meyers", + "age": 60, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Hunter-Love", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "give", + "category": "deep", + "price": 616.9, + "stock_quantity": 697 + }, + "customer": { + "name": "Thomas Huerta", + "age": 42, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Brennan, Wood and Fuentes", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "live", + "category": "type", + "price": 474.62, + "stock_quantity": 277 + }, + "customer": { + "name": "Holly Travis", + "age": 30, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Rodriguez-Schwartz", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "option", + "category": "economy", + "price": 895.4, + "stock_quantity": 484 + }, + "customer": { + "name": "Alejandro Owens", + "age": 47, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Johnson Group", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "move", + "category": "positive", + "price": 595.25, + "stock_quantity": 549 + }, + "customer": { + "name": "Stephen Gibson", + "age": 44, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "King-Lopez", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "purpose", + "category": "gas", + "price": 919.25, + "stock_quantity": 601 + }, + "customer": { + "name": "Nancy Smith", + "age": 60, + "country": "Kiribati" + } + }, + { + "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'", + "company": { + "name": "Dillon, Hardy and Copeland", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "ago", + "category": "drug", + "price": 55.33, + "stock_quantity": 619 + }, + "customer": { + "name": "Kristine Kidd", + "age": 58, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Stewart Inc", + "sector": "Group", + "founded_year": "1970" + }, + "product": { + "name": "cover", + "category": "including", + "price": 918.09, + "stock_quantity": 607 + }, + "customer": { + "name": "Mario Kirk", + "age": 44, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Kim PLC", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "seem", + "category": "each", + "price": 383.67, + "stock_quantity": 106 + }, + "customer": { + "name": "Kristina Walker", + "age": 67, + "country": "Uzbekistan" + } + }, + { + "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'", + "company": { + "name": "Kelly, Vazquez and Gomez", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "worker", + "category": "actually", + "price": 119.37, + "stock_quantity": 890 + }, + "customer": { + "name": "Mark Kim", + "age": 60, + "country": "Niue" + } + }, + { + "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'", + "company": { + "name": "King, Miller and Higgins", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "think", + "category": "page", + "price": 302.28, + "stock_quantity": 609 + }, + "customer": { + "name": "Anthony Turner", + "age": 50, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Adams, Davis and Hodges", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "hundred", + "category": "player", + "price": 151.15, + "stock_quantity": 889 + }, + "customer": { + "name": "Dr. Audrey Rivera", + "age": 55, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Mayer Group", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "story", + "category": "often", + "price": 125.02, + "stock_quantity": 209 + }, + "customer": { + "name": "Lisa Carpenter", + "age": 47, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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'", + "company": { + "name": "Mejia PLC", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "remain", + "category": "heart", + "price": 770.8, + "stock_quantity": 791 + }, + "customer": { + "name": "Monique Riley", + "age": 43, + "country": "Ukraine" + } + }, + { + "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'", + "company": { + "name": "Carr-Kirk", + "sector": "LLC", + "founded_year": "2008" + }, + "product": { + "name": "all", + "category": "cost", + "price": 722.74, + "stock_quantity": 497 + }, + "customer": { + "name": "Angela Sosa", + "age": 75, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Cisneros LLC", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "woman", + "category": "option", + "price": 963.84, + "stock_quantity": 650 + }, + "customer": { + "name": "Leonard Hernandez", + "age": 19, + "country": "Greece" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frank-Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frank-Brown", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "do", + "category": "sort", + "price": 472.18, + "stock_quantity": 306 + }, + "customer": { + "name": "Jordan Figueroa", + "age": 76, + "country": "Belize" + } + }, + { + "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", + "company": { + "name": "Wilkinson-Cohen", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "direction", + "category": "his", + "price": 29.27, + "stock_quantity": 893 + }, + "customer": { + "name": "Mrs. Maria Warner", + "age": 70, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Bautista, Jarvis and Morgan", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "religious", + "category": "camera", + "price": 287.49, + "stock_quantity": 745 + }, + "customer": { + "name": "Sean Hardin", + "age": 76, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Clark, Dixon and Hernandez", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "reality", + "category": "compare", + "price": 220.32, + "stock_quantity": 875 + }, + "customer": { + "name": "Mr. Thomas Evans", + "age": 66, + "country": "Barbados" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Johnson PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Johnson PLC", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "speak", + "category": "face", + "price": 80.78, + "stock_quantity": 594 + }, + "customer": { + "name": "Philip Frey", + "age": 63, + "country": "Malta" + } + }, + { + "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", + "company": { + "name": "Smith, Pierce and Johnson", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "star", + "category": "dream", + "price": 75.36, + "stock_quantity": 760 + }, + "customer": { + "name": "Jessica Rodriguez", + "age": 30, + "country": "Colombia" + } + }, + { + "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'", + "company": { + "name": "Hernandez PLC", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "glass", + "category": "really", + "price": 587.05, + "stock_quantity": 352 + }, + "customer": { + "name": "Thomas Tucker", + "age": 57, + "country": "Mali" + } + }, + { + "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'", + "company": { + "name": "Riley PLC", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "artist", + "category": "democratic", + "price": 406.49, + "stock_quantity": 619 + }, + "customer": { + "name": "Daniel Beard", + "age": 76, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Johnson-Johnson", + "sector": "Ltd", + "founded_year": "1971" + }, + "product": { + "name": "especially", + "category": "say", + "price": 789.18, + "stock_quantity": 159 + }, + "customer": { + "name": "William Harris", + "age": 46, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Martin, Green and Smith", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "represent", + "category": "system", + "price": 827.26, + "stock_quantity": 311 + }, + "customer": { + "name": "Leah Hughes", + "age": 35, + "country": "Bulgaria" + } + }, + { + "natural_query": "How many orders were placed for Butler, Schmidt and Lane between 2023-12-21 and 2024-07-21?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Butler, Schmidt and Lane' AND order_date BETWEEN '2023-12-21' AND '2024-07-21'", + "company": { + "name": "Butler, Schmidt and Lane", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "more", + "category": "question", + "price": 410.17, + "stock_quantity": 648 + }, + "customer": { + "name": "Matthew Peterson", + "age": 56, + "country": "Bermuda" + } + }, + { + "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'", + "company": { + "name": "Zimmerman-Murphy", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "about", + "category": "human", + "price": 156.0, + "stock_quantity": 207 + }, + "customer": { + "name": "Ana Howe", + "age": 27, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Hill, Thomas and Ramirez", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "population", + "category": "name", + "price": 531.76, + "stock_quantity": 385 + }, + "customer": { + "name": "Mark Campbell", + "age": 33, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Romero, Green and Williams", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "truth", + "category": "anyone", + "price": 410.33, + "stock_quantity": 301 + }, + "customer": { + "name": "Kevin Miller", + "age": 29, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Brown Inc", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "score", + "category": "prevent", + "price": 943.52, + "stock_quantity": 790 + }, + "customer": { + "name": "Alan George", + "age": 42, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Avila Inc", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "window", + "category": "edge", + "price": 755.64, + "stock_quantity": 364 + }, + "customer": { + "name": "Deanna Tate", + "age": 57, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Walker-Garcia", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "foreign", + "category": "choice", + "price": 640.53, + "stock_quantity": 668 + }, + "customer": { + "name": "Stephen Kelley", + "age": 79, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Johnson LLC", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "number", + "category": "education", + "price": 154.4, + "stock_quantity": 149 + }, + "customer": { + "name": "Joel Mathis", + "age": 38, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Jenkins and Sons", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "western", + "category": "option", + "price": 130.89, + "stock_quantity": 898 + }, + "customer": { + "name": "Lynn Young", + "age": 40, + "country": "Syrian Arab Republic" + } + }, + { + "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", + "company": { + "name": "Huynh LLC", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "myself", + "category": "wide", + "price": 685.12, + "stock_quantity": 426 + }, + "customer": { + "name": "Jennifer Hicks", + "age": 77, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Torres-Miller", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "level", + "category": "student", + "price": 330.21, + "stock_quantity": 857 + }, + "customer": { + "name": "Robert Chen", + "age": 58, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Smith, Davidson and Hill", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "such", + "category": "weight", + "price": 615.79, + "stock_quantity": 751 + }, + "customer": { + "name": "Mrs. Melissa Medina", + "age": 57, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Clark, Browning and Gilbert", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "our", + "category": "eye", + "price": 560.4, + "stock_quantity": 536 + }, + "customer": { + "name": "Dr. Jason White", + "age": 67, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Brewer, Hartman and Gonzales", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "land", + "category": "road", + "price": 16.29, + "stock_quantity": 643 + }, + "customer": { + "name": "Christine Adams", + "age": 46, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Osborne, Walker and Golden", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "drive", + "category": "center", + "price": 98.26, + "stock_quantity": 673 + }, + "customer": { + "name": "Christian Rodriguez", + "age": 23, + "country": "Zambia" + } + }, + { + "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'", + "company": { + "name": "Woodard, Bullock and Turner", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "become", + "category": "commercial", + "price": 773.19, + "stock_quantity": 649 + }, + "customer": { + "name": "Chad Haynes", + "age": 68, + "country": "Namibia" + } + }, + { + "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'", + "company": { + "name": "Scott-Miller", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "prevent", + "category": "word", + "price": 166.25, + "stock_quantity": 194 + }, + "customer": { + "name": "Jeanette Hester", + "age": 37, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "White, Kline and Cruz", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "situation", + "category": "focus", + "price": 547.47, + "stock_quantity": 933 + }, + "customer": { + "name": "William Brooks", + "age": 46, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Skinner-Wheeler", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "moment", + "category": "protect", + "price": 632.27, + "stock_quantity": 379 + }, + "customer": { + "name": "Colleen Brown", + "age": 70, + "country": "Burundi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davis, Thornton and Vega'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davis, Thornton and Vega", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "institution", + "category": "fact", + "price": 943.41, + "stock_quantity": 825 + }, + "customer": { + "name": "Jamie Robbins", + "age": 56, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Fernandez and Sons", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "possible", + "category": "rate", + "price": 891.16, + "stock_quantity": 202 + }, + "customer": { + "name": "Mr. Joe Rogers", + "age": 34, + "country": "Niger" + } + }, + { + "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'", + "company": { + "name": "Jones PLC", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "expert", + "category": "share", + "price": 661.6, + "stock_quantity": 380 + }, + "customer": { + "name": "Diana Vaughan", + "age": 32, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Henry LLC", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "marriage", + "category": "those", + "price": 362.53, + "stock_quantity": 135 + }, + "customer": { + "name": "Julian Webb", + "age": 41, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Hunter, Smith and Taylor", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "sign", + "category": "yourself", + "price": 560.69, + "stock_quantity": 506 + }, + "customer": { + "name": "Joshua Huang", + "age": 59, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Saunders Ltd", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "condition", + "category": "eight", + "price": 912.09, + "stock_quantity": 755 + }, + "customer": { + "name": "Julia Williams", + "age": 71, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Mitchell-Gamble", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "foreign", + "category": "able", + "price": 155.36, + "stock_quantity": 901 + }, + "customer": { + "name": "Nicole Wright", + "age": 68, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Carson, Bradley and Sanford", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "draw", + "category": "community", + "price": 99.96, + "stock_quantity": 808 + }, + "customer": { + "name": "Michelle Meyers", + "age": 56, + "country": "Mayotte" + } + }, + { + "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'", + "company": { + "name": "Larson-Pearson", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "these", + "category": "both", + "price": 199.99, + "stock_quantity": 740 + }, + "customer": { + "name": "Carol Garza", + "age": 58, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Petersen Inc", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "body", + "category": "language", + "price": 815.56, + "stock_quantity": 539 + }, + "customer": { + "name": "Lucas Clark", + "age": 76, + "country": "Ethiopia" + } + }, + { + "natural_query": "List all products of Walsh Group ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Walsh Group' ORDER BY price ASC", + "company": { + "name": "Walsh Group", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "news", + "category": "majority", + "price": 463.83, + "stock_quantity": 183 + }, + "customer": { + "name": "Joshua Cabrera", + "age": 40, + "country": "Gibraltar" + } + }, + { + "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'", + "company": { + "name": "Barry-Torres", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "rather", + "category": "watch", + "price": 494.71, + "stock_quantity": 868 + }, + "customer": { + "name": "Jose Hayes", + "age": 41, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Baker-Coleman", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "health", + "category": "than", + "price": 304.26, + "stock_quantity": 672 + }, + "customer": { + "name": "Linda Hensley", + "age": 49, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Young, Smith and Gill", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "act", + "category": "security", + "price": 82.67, + "stock_quantity": 256 + }, + "customer": { + "name": "Stephanie Martinez", + "age": 46, + "country": "Thailand" + } + }, + { + "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", + "company": { + "name": "Brown LLC", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "range", + "category": "hospital", + "price": 881.28, + "stock_quantity": 368 + }, + "customer": { + "name": "Nicholas Summers", + "age": 53, + "country": "Thailand" + } + }, + { + "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'", + "company": { + "name": "Jones, Munoz and Stewart", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "analysis", + "category": "wear", + "price": 261.14, + "stock_quantity": 328 + }, + "customer": { + "name": "Heather Pham", + "age": 21, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Reyes, Franklin and Gonzalez", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "child", + "category": "happen", + "price": 787.83, + "stock_quantity": 506 + }, + "customer": { + "name": "Matthew Rodriguez", + "age": 26, + "country": "United Kingdom" + } + }, + { + "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", + "company": { + "name": "Young, Holmes and Pearson", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "husband", + "category": "hold", + "price": 421.1, + "stock_quantity": 617 + }, + "customer": { + "name": "Joan Taylor", + "age": 51, + "country": "Myanmar" + } + }, + { + "natural_query": "What are the top 4 products by sales for White, Shaw and Hancock this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'White, Shaw and Hancock' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 4", + "company": { + "name": "White, Shaw and Hancock", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "take", + "category": "culture", + "price": 950.29, + "stock_quantity": 917 + }, + "customer": { + "name": "Michael Johnson", + "age": 37, + "country": "New Caledonia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Juarez PLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Juarez PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Juarez PLC", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "rock", + "category": "each", + "price": 70.81, + "stock_quantity": 121 + }, + "customer": { + "name": "Darin Cherry", + "age": 55, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Malone-Allen", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "major", + "category": "air", + "price": 144.98, + "stock_quantity": 126 + }, + "customer": { + "name": "Thomas Long", + "age": 30, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Richards, Scott and Rivera", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "current", + "category": "organization", + "price": 497.94, + "stock_quantity": 449 + }, + "customer": { + "name": "Kelly Gray", + "age": 27, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Mays, Mcdonald and Smith", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "to", + "category": "often", + "price": 761.51, + "stock_quantity": 217 + }, + "customer": { + "name": "Robin Harris", + "age": 33, + "country": "Italy" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kelly and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kelly and Sons", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "side", + "category": "answer", + "price": 397.92, + "stock_quantity": 602 + }, + "customer": { + "name": "Anthony Smith", + "age": 43, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Davis-Johnston", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "customer", + "category": "number", + "price": 71.63, + "stock_quantity": 396 + }, + "customer": { + "name": "Melinda Park", + "age": 20, + "country": "Sri Lanka" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ellis, Brooks and Schaefer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ellis, Brooks and Schaefer", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "high", + "category": "law", + "price": 468.1, + "stock_quantity": 177 + }, + "customer": { + "name": "Brian Gordon", + "age": 80, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Sanchez-Velasquez", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "recently", + "category": "tax", + "price": 913.98, + "stock_quantity": 612 + }, + "customer": { + "name": "Sara Faulkner", + "age": 79, + "country": "Uzbekistan" + } + }, + { + "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", + "company": { + "name": "Cunningham, Morrison and Mcmahon", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "benefit", + "category": "should", + "price": 774.88, + "stock_quantity": 405 + }, + "customer": { + "name": "Dustin French", + "age": 59, + "country": "Syrian Arab Republic" + } + }, + { + "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'", + "company": { + "name": "Shaw, Case and Davis", + "sector": "LLC", + "founded_year": "2019" + }, + "product": { + "name": "language", + "category": "same", + "price": 413.34, + "stock_quantity": 633 + }, + "customer": { + "name": "Kathleen Nelson", + "age": 80, + "country": "Dominica" + } + }, + { + "natural_query": "How many orders were placed for Moore, Trujillo and Phillips between 2024-01-10 and 2024-08-01?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore, Trujillo and Phillips' AND order_date BETWEEN '2024-01-10' AND '2024-08-01'", + "company": { + "name": "Moore, Trujillo and Phillips", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "usually", + "category": "sport", + "price": 798.05, + "stock_quantity": 427 + }, + "customer": { + "name": "Michael Ramos", + "age": 34, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Walker PLC", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "last", + "category": "number", + "price": 800.17, + "stock_quantity": 769 + }, + "customer": { + "name": "Deanna Sanchez", + "age": 26, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Hayes Group", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "administration", + "category": "dog", + "price": 176.28, + "stock_quantity": 767 + }, + "customer": { + "name": "Julia Wright", + "age": 39, + "country": "Uganda" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roberts PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roberts PLC", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "admit", + "category": "reveal", + "price": 298.04, + "stock_quantity": 73 + }, + "customer": { + "name": "Sharon Garner", + "age": 64, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones, Wu and Washington'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones, Wu and Washington", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "weight", + "category": "when", + "price": 917.31, + "stock_quantity": 151 + }, + "customer": { + "name": "Jennifer Yoder", + "age": 73, + "country": "Iran" + } + }, + { + "natural_query": "What is the total profit for each supplier in Floyd, Conley and Stuart?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Floyd, Conley and Stuart' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Floyd, Conley and Stuart", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "meet", + "category": "ever", + "price": 675.42, + "stock_quantity": 429 + }, + "customer": { + "name": "Karen Porter", + "age": 80, + "country": "Cambodia" + } + }, + { + "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'", + "company": { + "name": "Evans-Ball", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "star", + "category": "room", + "price": 884.76, + "stock_quantity": 743 + }, + "customer": { + "name": "Tina Bowen", + "age": 58, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Padilla-Potter", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "cell", + "category": "anyone", + "price": 77.74, + "stock_quantity": 48 + }, + "customer": { + "name": "Susan Walker", + "age": 62, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "James-Smith", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "wear", + "category": "need", + "price": 849.41, + "stock_quantity": 22 + }, + "customer": { + "name": "Keith Gonzales", + "age": 53, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Carter PLC", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "become", + "category": "debate", + "price": 278.99, + "stock_quantity": 899 + }, + "customer": { + "name": "Erica Armstrong", + "age": 31, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Hicks, Ryan and Campbell", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "parent", + "category": "party", + "price": 871.07, + "stock_quantity": 226 + }, + "customer": { + "name": "Kimberly Wilson", + "age": 49, + "country": "Greece" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ortiz, Riley and Delgado'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ortiz, Riley and Delgado", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "three", + "category": "religious", + "price": 692.77, + "stock_quantity": 133 + }, + "customer": { + "name": "Fernando Sanchez", + "age": 80, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Campbell Inc", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "remain", + "category": "western", + "price": 291.68, + "stock_quantity": 130 + }, + "customer": { + "name": "Nicole Thomas", + "age": 52, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Rogers and Sons", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "early", + "category": "impact", + "price": 650.44, + "stock_quantity": 3 + }, + "customer": { + "name": "Amy Lloyd", + "age": 44, + "country": "Holy See (Vatican City State)" + } + }, + { + "natural_query": "What is the total quantity for each country in Hernandez, Silva and Warren?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Hernandez, Silva and Warren' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Hernandez, Silva and Warren", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "season", + "category": "security", + "price": 934.54, + "stock_quantity": 255 + }, + "customer": { + "name": "Jacob Barnes", + "age": 53, + "country": "Tuvalu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hart, Gutierrez and Newton'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hart, Gutierrez and Newton", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "property", + "category": "economy", + "price": 937.34, + "stock_quantity": 519 + }, + "customer": { + "name": "Rachel Martinez", + "age": 18, + "country": "Tunisia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jackson and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jackson and Sons", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "table", + "category": "our", + "price": 833.78, + "stock_quantity": 507 + }, + "customer": { + "name": "Jeffrey Edwards", + "age": 61, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Wilson-Young", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "my", + "category": "show", + "price": 863.59, + "stock_quantity": 163 + }, + "customer": { + "name": "Steven Gomez", + "age": 61, + "country": "Western Sahara" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Vaughn, Cherry and Kelley'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Vaughn, Cherry and Kelley", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "must", + "category": "fund", + "price": 65.0, + "stock_quantity": 433 + }, + "customer": { + "name": "Phyllis Osborne", + "age": 65, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Johnson Inc", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "dream", + "category": "safe", + "price": 607.15, + "stock_quantity": 439 + }, + "customer": { + "name": "Christine Johnson", + "age": 59, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Case and Sons", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "clearly", + "category": "news", + "price": 448.88, + "stock_quantity": 754 + }, + "customer": { + "name": "Jason Jackson", + "age": 52, + "country": "Nepal" + } + }, + { + "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'", + "company": { + "name": "Evans, Davis and Beasley", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "each", + "category": "away", + "price": 452.34, + "stock_quantity": 672 + }, + "customer": { + "name": "Brittany Hodges DVM", + "age": 62, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Sullivan, Colon and Garcia", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "discussion", + "category": "cold", + "price": 924.97, + "stock_quantity": 315 + }, + "customer": { + "name": "Charles Moore", + "age": 28, + "country": "Saint Helena" + } + }, + { + "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", + "company": { + "name": "Weaver, Vargas and Morris", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "if", + "category": "term", + "price": 334.85, + "stock_quantity": 11 + }, + "customer": { + "name": "Ricky Guzman", + "age": 76, + "country": "Gibraltar" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson-Graves'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson-Graves", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "team", + "category": "computer", + "price": 840.09, + "stock_quantity": 427 + }, + "customer": { + "name": "Karen Bell", + "age": 62, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Edwards-Ponce", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "record", + "category": "glass", + "price": 415.62, + "stock_quantity": 642 + }, + "customer": { + "name": "Steven Brooks", + "age": 63, + "country": "Iran" + } + }, + { + "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'", + "company": { + "name": "Hurst-Mckenzie", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "within", + "category": "century", + "price": 899.08, + "stock_quantity": 142 + }, + "customer": { + "name": "Tony Thompson", + "age": 72, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Brown, Holt and Davidson", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "phone", + "category": "more", + "price": 250.32, + "stock_quantity": 432 + }, + "customer": { + "name": "Lisa Gregory", + "age": 74, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Thompson PLC", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "home", + "category": "fly", + "price": 637.99, + "stock_quantity": 355 + }, + "customer": { + "name": "Stanley Lang", + "age": 74, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Swanson, Jackson and Higgins", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "local", + "category": "yes", + "price": 763.65, + "stock_quantity": 972 + }, + "customer": { + "name": "Nicholas Wagner", + "age": 64, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Johnson-Lang", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "car", + "category": "society", + "price": 616.31, + "stock_quantity": 177 + }, + "customer": { + "name": "Melissa Atkinson", + "age": 60, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Brown, Lane and Michael", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "partner", + "category": "college", + "price": 280.94, + "stock_quantity": 58 + }, + "customer": { + "name": "Wendy Ashley", + "age": 19, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Weaver-Chan", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "security", + "category": "nature", + "price": 728.12, + "stock_quantity": 418 + }, + "customer": { + "name": "Stephanie Smith", + "age": 57, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Nguyen Group", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "democratic", + "category": "street", + "price": 111.67, + "stock_quantity": 942 + }, + "customer": { + "name": "Chad Williams", + "age": 38, + "country": "Dominica" + } + }, + { + "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'", + "company": { + "name": "Barnes PLC", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "billion", + "category": "visit", + "price": 22.79, + "stock_quantity": 908 + }, + "customer": { + "name": "Michelle Yates", + "age": 40, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Anderson PLC", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "question", + "category": "modern", + "price": 239.4, + "stock_quantity": 861 + }, + "customer": { + "name": "Veronica Lozano", + "age": 52, + "country": "Reunion" + } + }, + { + "natural_query": "How many orders were placed for Moore-Floyd between 2024-04-03 and 2024-04-08?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Moore-Floyd' AND order_date BETWEEN '2024-04-03' AND '2024-04-08'", + "company": { + "name": "Moore-Floyd", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "pretty", + "category": "debate", + "price": 596.68, + "stock_quantity": 361 + }, + "customer": { + "name": "Robert Bradford", + "age": 74, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Hernandez-Rice", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "run", + "category": "why", + "price": 18.09, + "stock_quantity": 924 + }, + "customer": { + "name": "Philip Bray MD", + "age": 58, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Williams PLC", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "beautiful", + "category": "special", + "price": 406.11, + "stock_quantity": 911 + }, + "customer": { + "name": "William Mckee", + "age": 59, + "country": "Guinea-Bissau" + } + }, + { + "natural_query": "List all products of Davis-Johnson ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Davis-Johnson' ORDER BY rating DESC", + "company": { + "name": "Davis-Johnson", + "sector": "Inc", + "founded_year": "1983" + }, + "product": { + "name": "level", + "category": "care", + "price": 879.15, + "stock_quantity": 227 + }, + "customer": { + "name": "Kristen Padilla", + "age": 52, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Perez Ltd", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "back", + "category": "company", + "price": 616.91, + "stock_quantity": 701 + }, + "customer": { + "name": "Lisa Haynes", + "age": 45, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Meyer, Rhodes and Frank", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "cell", + "category": "establish", + "price": 237.76, + "stock_quantity": 552 + }, + "customer": { + "name": "Matthew Cook", + "age": 37, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Hill-Vincent", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "interview", + "category": "face", + "price": 909.83, + "stock_quantity": 702 + }, + "customer": { + "name": "Jeffery Roberson", + "age": 24, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Bell LLC", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "sound", + "category": "toward", + "price": 708.83, + "stock_quantity": 51 + }, + "customer": { + "name": "Melissa Harris", + "age": 43, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Hall-Stevenson", + "sector": "LLC", + "founded_year": "1988" + }, + "product": { + "name": "school", + "category": "long", + "price": 879.87, + "stock_quantity": 337 + }, + "customer": { + "name": "Jenna Miller", + "age": 23, + "country": "Equatorial Guinea" + } + }, + { + "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", + "company": { + "name": "Cantrell LLC", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "movement", + "category": "operation", + "price": 138.95, + "stock_quantity": 333 + }, + "customer": { + "name": "Beverly Salas", + "age": 40, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Wright, Johnson and Hudson", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "baby", + "category": "tell", + "price": 109.99, + "stock_quantity": 295 + }, + "customer": { + "name": "Garrett Weber", + "age": 71, + "country": "Kazakhstan" + } + }, + { + "natural_query": "What is the average quantity of all products for Hill Inc?", + "sql_query": "SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Hill Inc'", + "company": { + "name": "Hill Inc", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "it", + "category": "teach", + "price": 538.74, + "stock_quantity": 254 + }, + "customer": { + "name": "Andrew James", + "age": 42, + "country": "Oman" + } + }, + { + "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'", + "company": { + "name": "Cole-Murray", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "hair", + "category": "at", + "price": 949.7, + "stock_quantity": 776 + }, + "customer": { + "name": "Debra Rollins DDS", + "age": 58, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Scott Group", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "still", + "category": "radio", + "price": 644.0, + "stock_quantity": 198 + }, + "customer": { + "name": "Michael Williams", + "age": 46, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Richardson, Martinez and Williams", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "local", + "category": "guy", + "price": 710.2, + "stock_quantity": 192 + }, + "customer": { + "name": "Kirsten Walker", + "age": 37, + "country": "Bosnia and Herzegovina" + } + }, + { + "natural_query": "List all customers and their total order value for Rivera, Brown and Curtis.", + "sql_query": "SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Rivera, Brown and Curtis' GROUP BY c.customer_id", + "company": { + "name": "Rivera, Brown and Curtis", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "trouble", + "category": "focus", + "price": 703.71, + "stock_quantity": 622 + }, + "customer": { + "name": "Cody Williams", + "age": 25, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Williams Ltd", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "hold", + "category": "behind", + "price": 834.57, + "stock_quantity": 870 + }, + "customer": { + "name": "Robert Martin", + "age": 64, + "country": "Mexico" + } + }, + { + "natural_query": "How many orders were placed for Bennett-Ramos between 2024-05-15 and 2024-09-05?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bennett-Ramos' AND order_date BETWEEN '2024-05-15' AND '2024-09-05'", + "company": { + "name": "Bennett-Ramos", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "enter", + "category": "include", + "price": 730.68, + "stock_quantity": 639 + }, + "customer": { + "name": "Dylan Garcia", + "age": 29, + "country": "Brazil" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Small Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Small Group", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "however", + "category": "they", + "price": 486.14, + "stock_quantity": 232 + }, + "customer": { + "name": "Crystal Sims", + "age": 35, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Stephenson, Daniel and Klein", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "across", + "category": "certainly", + "price": 102.83, + "stock_quantity": 826 + }, + "customer": { + "name": "William Mcclain", + "age": 73, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Valentine, Molina and Silva", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "back", + "category": "husband", + "price": 108.46, + "stock_quantity": 233 + }, + "customer": { + "name": "Traci Miles", + "age": 47, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Kemp-Vazquez", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "look", + "category": "share", + "price": 830.4, + "stock_quantity": 205 + }, + "customer": { + "name": "William Stanton", + "age": 27, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Hill Inc", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "store", + "category": "fear", + "price": 313.39, + "stock_quantity": 365 + }, + "customer": { + "name": "Rebekah Marshall", + "age": 29, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Adkins and Sons", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "letter", + "category": "interview", + "price": 358.23, + "stock_quantity": 876 + }, + "customer": { + "name": "Jeremy Olson", + "age": 76, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Neal Ltd", + "sector": "Ltd", + "founded_year": "2001" + }, + "product": { + "name": "condition", + "category": "bill", + "price": 243.73, + "stock_quantity": 961 + }, + "customer": { + "name": "Jeffrey Newton", + "age": 72, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Ferguson-Stone", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "yard", + "category": "debate", + "price": 423.66, + "stock_quantity": 455 + }, + "customer": { + "name": "Mary Santiago", + "age": 32, + "country": "India" + } + }, + { + "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'", + "company": { + "name": "Willis-Adams", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "his", + "category": "value", + "price": 661.91, + "stock_quantity": 804 + }, + "customer": { + "name": "Melissa Dean", + "age": 62, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Wilson-Combs", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "plant", + "category": "expert", + "price": 394.95, + "stock_quantity": 163 + }, + "customer": { + "name": "Anne Hernandez", + "age": 36, + "country": "Colombia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Edwards, Allen and Gardner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Edwards, Allen and Gardner", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "group", + "category": "measure", + "price": 489.5, + "stock_quantity": 588 + }, + "customer": { + "name": "Joann Crawford", + "age": 69, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Brooks-Walls", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "policy", + "category": "girl", + "price": 408.22, + "stock_quantity": 767 + }, + "customer": { + "name": "Julie Ferguson", + "age": 42, + "country": "Tanzania" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Freeman-Meyer for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Freeman-Meyer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Freeman-Meyer", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "teach", + "category": "beat", + "price": 389.1, + "stock_quantity": 734 + }, + "customer": { + "name": "Jesse Williamson", + "age": 62, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Simon-Mccormick", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "all", + "category": "phone", + "price": 422.95, + "stock_quantity": 612 + }, + "customer": { + "name": "Shane Mccormick", + "age": 60, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Snyder-Allen", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "yourself", + "category": "line", + "price": 907.94, + "stock_quantity": 26 + }, + "customer": { + "name": "Kimberly Robles", + "age": 66, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Garcia, Ingram and Gutierrez", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "officer", + "category": "have", + "price": 806.68, + "stock_quantity": 486 + }, + "customer": { + "name": "Michael Gonzalez", + "age": 34, + "country": "Switzerland" + } + }, + { + "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", + "company": { + "name": "Rhodes-Chase", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "present", + "category": "result", + "price": 696.04, + "stock_quantity": 168 + }, + "customer": { + "name": "Teresa Ruiz", + "age": 22, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Mcdaniel and Sons", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "short", + "category": "officer", + "price": 527.62, + "stock_quantity": 77 + }, + "customer": { + "name": "Darrell Russo", + "age": 44, + "country": "Malawi" + } + }, + { + "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'", + "company": { + "name": "Morales-Brown", + "sector": "and Sons", + "founded_year": "2018" + }, + "product": { + "name": "catch", + "category": "type", + "price": 989.19, + "stock_quantity": 194 + }, + "customer": { + "name": "Kathryn Brown", + "age": 58, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Brown, Byrd and Brown", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "individual", + "category": "however", + "price": 774.76, + "stock_quantity": 615 + }, + "customer": { + "name": "Mark Cohen", + "age": 38, + "country": "Latvia" + } + }, + { + "natural_query": "List all products of Carter, Berg and Ray ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Carter, Berg and Ray' ORDER BY stock_quantity DESC", + "company": { + "name": "Carter, Berg and Ray", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "new", + "category": "thousand", + "price": 24.42, + "stock_quantity": 925 + }, + "customer": { + "name": "Valerie Goodman", + "age": 63, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Bradley, Vaughn and Jones", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "least", + "category": "ask", + "price": 78.48, + "stock_quantity": 796 + }, + "customer": { + "name": "John Gilbert", + "age": 48, + "country": "Burundi" + } + }, + { + "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", + "company": { + "name": "Parks, Adams and Garcia", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "have", + "category": "imagine", + "price": 171.32, + "stock_quantity": 851 + }, + "customer": { + "name": "Jared Bailey", + "age": 27, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Phillips LLC", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "argue", + "category": "without", + "price": 329.21, + "stock_quantity": 695 + }, + "customer": { + "name": "Leslie Gross", + "age": 56, + "country": "Sudan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Turner, Riley and Taylor'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Turner, Riley and Taylor", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "level", + "category": "his", + "price": 903.88, + "stock_quantity": 161 + }, + "customer": { + "name": "Christian Hancock", + "age": 31, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Elliott, Chen and Howell", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "common", + "category": "owner", + "price": 632.95, + "stock_quantity": 873 + }, + "customer": { + "name": "Barbara Flynn", + "age": 43, + "country": "Cuba" + } + }, + { + "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", + "company": { + "name": "Miller, Ramos and Davis", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "marriage", + "category": "loss", + "price": 776.42, + "stock_quantity": 368 + }, + "customer": { + "name": "Christopher Carlson", + "age": 47, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Martin-Adams", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "society", + "category": "student", + "price": 719.41, + "stock_quantity": 193 + }, + "customer": { + "name": "Travis Fischer", + "age": 55, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Jones-Martin", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "make", + "category": "energy", + "price": 431.32, + "stock_quantity": 520 + }, + "customer": { + "name": "Stephanie Garcia", + "age": 69, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Bailey-Marshall", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "citizen", + "category": "process", + "price": 367.44, + "stock_quantity": 962 + }, + "customer": { + "name": "Joseph Clark", + "age": 64, + "country": "Angola" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gordon Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gordon Group", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "seven", + "category": "wait", + "price": 136.76, + "stock_quantity": 728 + }, + "customer": { + "name": "Frederick Brown DDS", + "age": 80, + "country": "Serbia" + } + }, + { + "natural_query": "List all products of Perez LLC ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Perez LLC' ORDER BY price ASC", + "company": { + "name": "Perez LLC", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "kid", + "category": "result", + "price": 851.82, + "stock_quantity": 183 + }, + "customer": { + "name": "William Clark", + "age": 19, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Powell, Smith and Moreno", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "degree", + "category": "table", + "price": 389.91, + "stock_quantity": 140 + }, + "customer": { + "name": "Jennifer Castro", + "age": 60, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Wallace-Barnett", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "information", + "category": "Democrat", + "price": 927.47, + "stock_quantity": 261 + }, + "customer": { + "name": "Matthew Johnson", + "age": 68, + "country": "Switzerland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sullivan and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sullivan and Sons", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "day", + "category": "reflect", + "price": 415.77, + "stock_quantity": 641 + }, + "customer": { + "name": "Martin Cantrell", + "age": 61, + "country": "Kyrgyz Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Andrews, Carrillo and Oliver'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Andrews, Carrillo and Oliver", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "take", + "category": "charge", + "price": 741.78, + "stock_quantity": 526 + }, + "customer": { + "name": "Selena Woods", + "age": 25, + "country": "Tanzania" + } + }, + { + "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", + "company": { + "name": "Brown, Willis and Costa", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "general", + "category": "every", + "price": 350.13, + "stock_quantity": 963 + }, + "customer": { + "name": "Lisa Hunt", + "age": 19, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Banks-Brown", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "pressure", + "category": "old", + "price": 189.0, + "stock_quantity": 980 + }, + "customer": { + "name": "John Brown", + "age": 70, + "country": "Chile" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Browning-Fowler'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Browning-Fowler", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "act", + "category": "front", + "price": 683.0, + "stock_quantity": 973 + }, + "customer": { + "name": "Alexandra Williams", + "age": 24, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Finley, Carlson and Molina", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "attorney", + "category": "choice", + "price": 765.27, + "stock_quantity": 774 + }, + "customer": { + "name": "Robert Mathews", + "age": 64, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Moreno Ltd", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "happen", + "category": "compare", + "price": 109.31, + "stock_quantity": 419 + }, + "customer": { + "name": "Jeffrey Vaughn", + "age": 43, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Dawson-Weeks", + "sector": "and Sons", + "founded_year": "2007" + }, + "product": { + "name": "maybe", + "category": "edge", + "price": 690.41, + "stock_quantity": 121 + }, + "customer": { + "name": "Brad Bass", + "age": 40, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Scott-Rogers", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "hope", + "category": "room", + "price": 297.44, + "stock_quantity": 7 + }, + "customer": { + "name": "Cynthia Diaz", + "age": 56, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Ho-Dixon", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "fire", + "category": "sure", + "price": 59.25, + "stock_quantity": 185 + }, + "customer": { + "name": "Amy Hill", + "age": 73, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Weeks-Carlson", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "address", + "category": "charge", + "price": 702.91, + "stock_quantity": 443 + }, + "customer": { + "name": "Ashley Pitts", + "age": 32, + "country": "United Arab Emirates" + } + }, + { + "natural_query": "Show me all products in the TV category with a price over $797.43.", + "sql_query": "SELECT * FROM products WHERE category = 'TV' AND price > 797.43", + "company": { + "name": "Jackson, Brown and Stevens", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "behind", + "category": "TV", + "price": 797.43, + "stock_quantity": 146 + }, + "customer": { + "name": "Justin Baker", + "age": 63, + "country": "Algeria" + } + }, + { + "natural_query": "How many orders were placed for Henry Inc between 2024-06-12 and 2024-08-28?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Henry Inc' AND order_date BETWEEN '2024-06-12' AND '2024-08-28'", + "company": { + "name": "Henry Inc", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "future", + "category": "soldier", + "price": 153.3, + "stock_quantity": 402 + }, + "customer": { + "name": "Christopher Rodriguez", + "age": 66, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Allison, Nichols and Thompson", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "who", + "category": "street", + "price": 415.29, + "stock_quantity": 539 + }, + "customer": { + "name": "Kathy Noble", + "age": 26, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Taylor Group", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "understand", + "category": "recognize", + "price": 216.14, + "stock_quantity": 504 + }, + "customer": { + "name": "Heather Jones", + "age": 46, + "country": "Cyprus" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Peterson Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Peterson Group", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "leader", + "category": "finally", + "price": 904.65, + "stock_quantity": 333 + }, + "customer": { + "name": "Veronica West", + "age": 72, + "country": "Saint Kitts and Nevis" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Waller, Love and Evans'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Waller, Love and Evans", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "such", + "category": "family", + "price": 261.5, + "stock_quantity": 448 + }, + "customer": { + "name": "Cassandra Gomez", + "age": 34, + "country": "Mexico" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'White PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "White PLC", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "require", + "category": "degree", + "price": 709.99, + "stock_quantity": 218 + }, + "customer": { + "name": "Michael Ramos DDS", + "age": 80, + "country": "Niger" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Edwards-Palmer for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Edwards-Palmer'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Edwards-Palmer", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "give", + "category": "crime", + "price": 768.57, + "stock_quantity": 766 + }, + "customer": { + "name": "Patricia Cooper", + "age": 30, + "country": "Angola" + } + }, + { + "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'", + "company": { + "name": "Taylor PLC", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "song", + "category": "its", + "price": 303.82, + "stock_quantity": 380 + }, + "customer": { + "name": "Robert Johnson", + "age": 45, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Fox PLC", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "carry", + "category": "collection", + "price": 847.39, + "stock_quantity": 442 + }, + "customer": { + "name": "Brandy Acevedo", + "age": 30, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Frazier, Sparks and White", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "bad", + "category": "response", + "price": 38.52, + "stock_quantity": 261 + }, + "customer": { + "name": "Mathew Duke", + "age": 56, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cowan, Henderson and Friedman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cowan, Henderson and Friedman", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "ball", + "category": "contain", + "price": 109.59, + "stock_quantity": 18 + }, + "customer": { + "name": "Rebecca Young", + "age": 41, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Gonzalez Group", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "three", + "category": "market", + "price": 997.82, + "stock_quantity": 683 + }, + "customer": { + "name": "Krista Blair", + "age": 29, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "natural_query": "What is the minimum rating of all products for Nguyen, West and Cruz?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Nguyen, West and Cruz'", + "company": { + "name": "Nguyen, West and Cruz", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "make", + "category": "campaign", + "price": 76.42, + "stock_quantity": 33 + }, + "customer": { + "name": "Justin Thomas", + "age": 28, + "country": "Hong Kong" + } + }, + { + "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", + "company": { + "name": "Williams LLC", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "kitchen", + "category": "nation", + "price": 561.99, + "stock_quantity": 949 + }, + "customer": { + "name": "Leah Garrett", + "age": 57, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Warren PLC", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "to", + "category": "ago", + "price": 810.92, + "stock_quantity": 813 + }, + "customer": { + "name": "Catherine Hill", + "age": 72, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Zavala-Gibbs", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "consumer", + "category": "education", + "price": 835.78, + "stock_quantity": 651 + }, + "customer": { + "name": "Daniel Cooper", + "age": 20, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Green, Hernandez and Lambert", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "ever", + "category": "memory", + "price": 677.33, + "stock_quantity": 395 + }, + "customer": { + "name": "John Ortiz", + "age": 23, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Perkins, White and Crawford", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "source", + "category": "thank", + "price": 62.99, + "stock_quantity": 841 + }, + "customer": { + "name": "Douglas Anderson", + "age": 58, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Contreras, Bell and Torres", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "nor", + "category": "current", + "price": 308.74, + "stock_quantity": 65 + }, + "customer": { + "name": "James Wilson", + "age": 40, + "country": "Nepal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ryan, Thompson and Ryan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ryan, Thompson and Ryan", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "see", + "category": "product", + "price": 658.48, + "stock_quantity": 851 + }, + "customer": { + "name": "John Flores", + "age": 22, + "country": "Lebanon" + } + }, + { + "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", + "company": { + "name": "Grant-Miller", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "collection", + "category": "fall", + "price": 57.88, + "stock_quantity": 176 + }, + "customer": { + "name": "Douglas Mcbride", + "age": 75, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Macdonald-Wilson", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "four", + "category": "true", + "price": 283.68, + "stock_quantity": 933 + }, + "customer": { + "name": "Julian Rush", + "age": 27, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Martin, Weiss and Bell", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "skin", + "category": "through", + "price": 737.48, + "stock_quantity": 4 + }, + "customer": { + "name": "Meghan Phillips", + "age": 53, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Walker, Rogers and Rivers", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "these", + "category": "example", + "price": 212.92, + "stock_quantity": 946 + }, + "customer": { + "name": "Lucas Sandoval", + "age": 39, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Bowen, Allen and Hayes", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "interest", + "category": "property", + "price": 115.72, + "stock_quantity": 844 + }, + "customer": { + "name": "Christopher Romero", + "age": 67, + "country": "Malta" + } + }, + { + "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'", + "company": { + "name": "Ross LLC", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "respond", + "category": "minute", + "price": 408.67, + "stock_quantity": 132 + }, + "customer": { + "name": "Noah Mahoney", + "age": 52, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Murphy, Parker and Gordon", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "true", + "category": "Mrs", + "price": 827.01, + "stock_quantity": 468 + }, + "customer": { + "name": "Nicholas Estrada", + "age": 35, + "country": "Sudan" + } + }, + { + "natural_query": "What are the top 8 products by orders for Carroll Group this year?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Carroll Group' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 8", + "company": { + "name": "Carroll Group", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "dinner", + "category": "thank", + "price": 655.02, + "stock_quantity": 104 + }, + "customer": { + "name": "Evan Butler", + "age": 45, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Adams-Andrews", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "challenge", + "category": "begin", + "price": 622.77, + "stock_quantity": 679 + }, + "customer": { + "name": "Charles Lynn", + "age": 19, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Simpson-Webb", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "market", + "category": "tonight", + "price": 183.21, + "stock_quantity": 192 + }, + "customer": { + "name": "Paul Davis", + "age": 72, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Drake, Gomez and Green", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "since", + "category": "kitchen", + "price": 758.37, + "stock_quantity": 545 + }, + "customer": { + "name": "Amanda Cruz", + "age": 62, + "country": "Norway" + } + }, + { + "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", + "company": { + "name": "Wolf-Patel", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "everybody", + "category": "value", + "price": 709.98, + "stock_quantity": 99 + }, + "customer": { + "name": "Vincent Matthews", + "age": 22, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Lewis, Rivera and Gray", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "you", + "category": "concern", + "price": 325.95, + "stock_quantity": 662 + }, + "customer": { + "name": "Melissa Castro", + "age": 67, + "country": "Barbados" + } + }, + { + "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'", + "company": { + "name": "Marks-Wilson", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "ability", + "category": "use", + "price": 203.65, + "stock_quantity": 306 + }, + "customer": { + "name": "Thomas Mcdonald", + "age": 39, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Krueger-Gutierrez", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "office", + "category": "whose", + "price": 457.58, + "stock_quantity": 192 + }, + "customer": { + "name": "April Mann", + "age": 21, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Lawson, Warren and Thompson", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "candidate", + "category": "world", + "price": 436.8, + "stock_quantity": 766 + }, + "customer": { + "name": "Alyssa Miller", + "age": 70, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Snyder, Morrison and Smith", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "morning", + "category": "every", + "price": 849.73, + "stock_quantity": 591 + }, + "customer": { + "name": "Amy Rowland", + "age": 57, + "country": "Senegal" + } + }, + { + "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'", + "company": { + "name": "Solomon Group", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "letter", + "category": "usually", + "price": 54.33, + "stock_quantity": 671 + }, + "customer": { + "name": "Richard Fields", + "age": 25, + "country": "Jamaica" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Woodward Ltd for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Woodward Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Woodward Ltd", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "remember", + "category": "goal", + "price": 619.66, + "stock_quantity": 532 + }, + "customer": { + "name": "Brian Harrison", + "age": 38, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Atkins PLC", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "life", + "category": "project", + "price": 175.02, + "stock_quantity": 394 + }, + "customer": { + "name": "Shelley Brown", + "age": 51, + "country": "Greenland" + } + }, + { + "natural_query": "List all products of Hill-Brown ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Hill-Brown' ORDER BY rating DESC", + "company": { + "name": "Hill-Brown", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "race", + "category": "relate", + "price": 257.56, + "stock_quantity": 32 + }, + "customer": { + "name": "James King", + "age": 57, + "country": "Cote d'Ivoire" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Duran LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Duran LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Duran LLC", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "pretty", + "category": "answer", + "price": 525.57, + "stock_quantity": 782 + }, + "customer": { + "name": "Caroline Fox", + "age": 34, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Gallegos, Farrell and Nelson", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "catch", + "category": "set", + "price": 608.84, + "stock_quantity": 586 + }, + "customer": { + "name": "Wendy Keith", + "age": 47, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Snyder LLC", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "four", + "category": "discuss", + "price": 550.04, + "stock_quantity": 976 + }, + "customer": { + "name": "Frederick Mckenzie", + "age": 42, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Hendrix Inc", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "of", + "category": "just", + "price": 75.93, + "stock_quantity": 867 + }, + "customer": { + "name": "Angela Huynh DVM", + "age": 72, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Bennett, Vasquez and Lowe", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "energy", + "category": "class", + "price": 958.56, + "stock_quantity": 541 + }, + "customer": { + "name": "Elizabeth Byrd", + "age": 22, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Cole Ltd", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "my", + "category": "well", + "price": 846.63, + "stock_quantity": 420 + }, + "customer": { + "name": "Brenda Thompson", + "age": 37, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "James, Morgan and Wright", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "another", + "category": "door", + "price": 559.38, + "stock_quantity": 255 + }, + "customer": { + "name": "Edward Roberts", + "age": 78, + "country": "Marshall Islands" + } + }, + { + "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", + "company": { + "name": "Smith-Huang", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "discover", + "category": "work", + "price": 237.59, + "stock_quantity": 254 + }, + "customer": { + "name": "Daniel Dixon", + "age": 73, + "country": "Nepal" + } + }, + { + "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", + "company": { + "name": "Sanford-Martinez", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "main", + "category": "local", + "price": 756.21, + "stock_quantity": 604 + }, + "customer": { + "name": "James Peters", + "age": 45, + "country": "Turkey" + } + }, + { + "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", + "company": { + "name": "Hunt-Park", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "member", + "category": "film", + "price": 241.2, + "stock_quantity": 316 + }, + "customer": { + "name": "Jacob Baldwin", + "age": 80, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Williams-Bailey", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "senior", + "category": "word", + "price": 802.94, + "stock_quantity": 623 + }, + "customer": { + "name": "Daniel Swanson", + "age": 30, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Young, Howard and Harvey", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "sport", + "category": "of", + "price": 491.13, + "stock_quantity": 433 + }, + "customer": { + "name": "Kimberly Lang", + "age": 70, + "country": "Turkmenistan" + } + }, + { + "natural_query": "List all products of Collins, Galloway and Simpson ordered by price from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Collins, Galloway and Simpson' ORDER BY price DESC", + "company": { + "name": "Collins, Galloway and Simpson", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "affect", + "category": "note", + "price": 503.0, + "stock_quantity": 233 + }, + "customer": { + "name": "Richard Jackson", + "age": 80, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez Group", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "defense", + "category": "enjoy", + "price": 300.48, + "stock_quantity": 939 + }, + "customer": { + "name": "Daniel Callahan", + "age": 37, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Garcia PLC", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "nothing", + "category": "great", + "price": 346.86, + "stock_quantity": 502 + }, + "customer": { + "name": "Scott Sanchez", + "age": 55, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Kirby-Santos", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "society", + "category": "allow", + "price": 543.83, + "stock_quantity": 12 + }, + "customer": { + "name": "Kimberly Anthony", + "age": 56, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Conley, Kelly and Oliver", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "western", + "category": "at", + "price": 532.81, + "stock_quantity": 76 + }, + "customer": { + "name": "Linda Diaz", + "age": 79, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Palmer-Cabrera", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "campaign", + "category": "among", + "price": 71.48, + "stock_quantity": 325 + }, + "customer": { + "name": "Ashley Moss", + "age": 44, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Moore and Sons", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "remember", + "category": "child", + "price": 16.02, + "stock_quantity": 869 + }, + "customer": { + "name": "Eduardo Jensen", + "age": 50, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Pena, Moore and Oneal", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "speak", + "category": "western", + "price": 105.77, + "stock_quantity": 350 + }, + "customer": { + "name": "Adrienne Patterson", + "age": 55, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Houston LLC", + "sector": "Group", + "founded_year": "1986" + }, + "product": { + "name": "majority", + "category": "instead", + "price": 967.8, + "stock_quantity": 104 + }, + "customer": { + "name": "Michael Crane", + "age": 51, + "country": "Greenland" + } + }, + { + "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'", + "company": { + "name": "Crawford-Perez", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "fish", + "category": "simply", + "price": 552.61, + "stock_quantity": 622 + }, + "customer": { + "name": "Shawn Hendricks", + "age": 40, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Washington, Hernandez and Richard", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "bit", + "category": "far", + "price": 603.67, + "stock_quantity": 245 + }, + "customer": { + "name": "Rebecca Huffman", + "age": 31, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Lloyd, Garcia and Smith", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "street", + "category": "other", + "price": 842.51, + "stock_quantity": 732 + }, + "customer": { + "name": "Andrew Ford", + "age": 47, + "country": "Portugal" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Roberts-Hull for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Roberts-Hull'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Roberts-Hull", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "production", + "category": "catch", + "price": 577.04, + "stock_quantity": 154 + }, + "customer": { + "name": "Kristin Robinson", + "age": 56, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Everett-Robinson", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "know", + "category": "somebody", + "price": 296.34, + "stock_quantity": 904 + }, + "customer": { + "name": "Richard Willis", + "age": 48, + "country": "Serbia" + } + }, + { + "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'", + "company": { + "name": "Odonnell Inc", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "dark", + "category": "appear", + "price": 998.43, + "stock_quantity": 942 + }, + "customer": { + "name": "Samantha Estrada", + "age": 65, + "country": "Ghana" + } + }, + { + "natural_query": "What is the maximum price of all products for Bishop-Moore?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Bishop-Moore'", + "company": { + "name": "Bishop-Moore", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "author", + "category": "bed", + "price": 964.02, + "stock_quantity": 194 + }, + "customer": { + "name": "Kenneth Bates", + "age": 28, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Cunningham, Klein and Wong", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "note", + "category": "new", + "price": 451.13, + "stock_quantity": 536 + }, + "customer": { + "name": "Ryan Jackson", + "age": 58, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Morrison, Sullivan and Hunt", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "which", + "category": "high", + "price": 241.65, + "stock_quantity": 777 + }, + "customer": { + "name": "Gregory Osborne", + "age": 74, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Perkins-Fernandez", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "detail", + "category": "indeed", + "price": 818.13, + "stock_quantity": 867 + }, + "customer": { + "name": "Jerry Young", + "age": 37, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Thompson, Baker and Fischer", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "else", + "category": "show", + "price": 645.14, + "stock_quantity": 361 + }, + "customer": { + "name": "Kevin Ray", + "age": 56, + "country": "Tonga" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bell-Jackson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bell-Jackson", + "sector": "Group", + "founded_year": "2015" + }, + "product": { + "name": "course", + "category": "simply", + "price": 144.85, + "stock_quantity": 639 + }, + "customer": { + "name": "Kevin Taylor", + "age": 45, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Jones and Sons", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "argue", + "category": "enjoy", + "price": 174.13, + "stock_quantity": 2 + }, + "customer": { + "name": "Douglas Wright", + "age": 57, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "Holloway-Jones", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "thing", + "category": "art", + "price": 524.12, + "stock_quantity": 168 + }, + "customer": { + "name": "Mrs. Jamie Lucas DDS", + "age": 27, + "country": "Timor-Leste" + } + }, + { + "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", + "company": { + "name": "Benjamin Group", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "town", + "category": "deep", + "price": 195.44, + "stock_quantity": 871 + }, + "customer": { + "name": "Bryan Douglas", + "age": 24, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Sullivan, Smith and Wang", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "vote", + "category": "mouth", + "price": 828.1, + "stock_quantity": 27 + }, + "customer": { + "name": "Melissa Baker", + "age": 40, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Jones-Wilson", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "evidence", + "category": "firm", + "price": 282.51, + "stock_quantity": 374 + }, + "customer": { + "name": "Madison Smith", + "age": 19, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Walker, Curtis and Thomas", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "quality", + "category": "left", + "price": 932.89, + "stock_quantity": 814 + }, + "customer": { + "name": "Kenneth Wood DDS", + "age": 79, + "country": "Macao" + } + }, + { + "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", + "company": { + "name": "Hayes Group", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "people", + "category": "media", + "price": 137.67, + "stock_quantity": 691 + }, + "customer": { + "name": "Denise Black", + "age": 33, + "country": "Andorra" + } + }, + { + "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'", + "company": { + "name": "Brown-Drake", + "sector": "LLC", + "founded_year": "2012" + }, + "product": { + "name": "challenge", + "category": "outside", + "price": 465.2, + "stock_quantity": 341 + }, + "customer": { + "name": "Samuel Rose", + "age": 23, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Brown-Moore", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "reason", + "category": "affect", + "price": 944.79, + "stock_quantity": 459 + }, + "customer": { + "name": "Mary Miller", + "age": 55, + "country": "United States Virgin Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mills-Orozco'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mills-Orozco", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "tell", + "category": "generation", + "price": 689.15, + "stock_quantity": 428 + }, + "customer": { + "name": "Renee Lucas", + "age": 80, + "country": "Angola" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Morales-Holmes for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morales-Holmes'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morales-Holmes", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "exactly", + "category": "play", + "price": 957.51, + "stock_quantity": 691 + }, + "customer": { + "name": "Emily Lee", + "age": 18, + "country": "Cayman Islands" + } + }, + { + "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", + "company": { + "name": "Wall Inc", + "sector": "and Sons", + "founded_year": "1977" + }, + "product": { + "name": "would", + "category": "management", + "price": 213.75, + "stock_quantity": 221 + }, + "customer": { + "name": "Michael Smith", + "age": 47, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Berg PLC", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "various", + "category": "most", + "price": 333.05, + "stock_quantity": 532 + }, + "customer": { + "name": "Michael Jackson", + "age": 59, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Schmitt-Perry", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "organization", + "category": "majority", + "price": 756.97, + "stock_quantity": 737 + }, + "customer": { + "name": "Katherine Jackson", + "age": 18, + "country": "Nicaragua" + } + }, + { + "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", + "company": { + "name": "Smith-Hansen", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "avoid", + "category": "piece", + "price": 158.19, + "stock_quantity": 115 + }, + "customer": { + "name": "Mario Campbell", + "age": 31, + "country": "Central African Republic" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Nguyen-Miller for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nguyen-Miller'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nguyen-Miller", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "experience", + "category": "participant", + "price": 397.39, + "stock_quantity": 268 + }, + "customer": { + "name": "John Johnson", + "age": 75, + "country": "Singapore" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Padilla, Kelly and Collins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Padilla, Kelly and Collins", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "nice", + "category": "management", + "price": 530.11, + "stock_quantity": 217 + }, + "customer": { + "name": "Sonya Dalton", + "age": 42, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Reed-Tucker", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "television", + "category": "indeed", + "price": 455.24, + "stock_quantity": 950 + }, + "customer": { + "name": "Melissa Johnson", + "age": 44, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Alvarez PLC", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "role", + "category": "road", + "price": 922.39, + "stock_quantity": 168 + }, + "customer": { + "name": "Christopher Lara", + "age": 50, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Bennett, Casey and Willis", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "nor", + "category": "professor", + "price": 207.2, + "stock_quantity": 158 + }, + "customer": { + "name": "Timothy Sims", + "age": 41, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Richard, Garcia and Bell", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "somebody", + "category": "these", + "price": 794.94, + "stock_quantity": 240 + }, + "customer": { + "name": "Ashlee Stone", + "age": 65, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Gutierrez Ltd", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "road", + "category": "movie", + "price": 280.45, + "stock_quantity": 337 + }, + "customer": { + "name": "Christopher Lynn", + "age": 20, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Morris, Wiggins and Cooper", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "happy", + "category": "carry", + "price": 175.06, + "stock_quantity": 908 + }, + "customer": { + "name": "Jordan Collins", + "age": 72, + "country": "Micronesia" + } + }, + { + "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'", + "company": { + "name": "Peters LLC", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "market", + "category": "represent", + "price": 359.66, + "stock_quantity": 925 + }, + "customer": { + "name": "Sandra Young", + "age": 47, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Campbell-Robinson", + "sector": "Group", + "founded_year": "2014" + }, + "product": { + "name": "bit", + "category": "machine", + "price": 522.46, + "stock_quantity": 963 + }, + "customer": { + "name": "Kristi Alvarez", + "age": 53, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "King, Yang and Salinas", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "arrive", + "category": "again", + "price": 770.02, + "stock_quantity": 962 + }, + "customer": { + "name": "Michael Lewis", + "age": 23, + "country": "Brazil" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Ruiz, Hill and Santos'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Ruiz, Hill and Santos", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "arrive", + "category": "message", + "price": 112.42, + "stock_quantity": 847 + }, + "customer": { + "name": "Andrea Ortiz", + "age": 66, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Vasquez-Rivera", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "family", + "category": "tree", + "price": 82.03, + "stock_quantity": 698 + }, + "customer": { + "name": "Nathaniel Middleton", + "age": 46, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Rangel, Perez and Guzman", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "body", + "category": "pull", + "price": 742.91, + "stock_quantity": 490 + }, + "customer": { + "name": "Andrea Carter", + "age": 30, + "country": "Wallis and Futuna" + } + }, + { + "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'", + "company": { + "name": "Allen Inc", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "nice", + "category": "remember", + "price": 598.15, + "stock_quantity": 36 + }, + "customer": { + "name": "Christopher Weber", + "age": 32, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Bishop, Reyes and Johnson", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "beat", + "category": "up", + "price": 815.61, + "stock_quantity": 795 + }, + "customer": { + "name": "Ashley Morales", + "age": 31, + "country": "Saint Kitts and Nevis" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Swanson, Koch and Tyler'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Swanson, Koch and Tyler", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "against", + "category": "identify", + "price": 341.01, + "stock_quantity": 224 + }, + "customer": { + "name": "Carlos Reynolds", + "age": 51, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Frye Group", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "almost", + "category": "safe", + "price": 232.26, + "stock_quantity": 905 + }, + "customer": { + "name": "Michael Gomez", + "age": 46, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Rose Ltd", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "possible", + "category": "he", + "price": 770.26, + "stock_quantity": 858 + }, + "customer": { + "name": "Anna Shepherd", + "age": 66, + "country": "Niue" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Owens-Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Owens-Smith", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "bank", + "category": "only", + "price": 708.23, + "stock_quantity": 682 + }, + "customer": { + "name": "Denise Lutz", + "age": 68, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Buckley, Burton and Leon", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "imagine", + "category": "speech", + "price": 604.76, + "stock_quantity": 722 + }, + "customer": { + "name": "Danny Peterson", + "age": 66, + "country": "United States of America" + } + }, + { + "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'", + "company": { + "name": "Davis Ltd", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "condition", + "category": "fly", + "price": 958.6, + "stock_quantity": 560 + }, + "customer": { + "name": "Lisa Gordon DDS", + "age": 46, + "country": "Kiribati" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Carpenter-Woodward'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Carpenter-Woodward", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "lose", + "category": "form", + "price": 377.81, + "stock_quantity": 540 + }, + "customer": { + "name": "Autumn Wright", + "age": 79, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Cohen, Woods and Watson", + "sector": "Ltd", + "founded_year": "2016" + }, + "product": { + "name": "he", + "category": "nothing", + "price": 911.79, + "stock_quantity": 239 + }, + "customer": { + "name": "Daniel Livingston", + "age": 74, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Stewart, Ryan and Brown", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "clearly", + "category": "doctor", + "price": 305.74, + "stock_quantity": 876 + }, + "customer": { + "name": "Nicholas Wall", + "age": 66, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Gutierrez Ltd", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "full", + "category": "church", + "price": 731.3, + "stock_quantity": 559 + }, + "customer": { + "name": "Michael Padilla", + "age": 23, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Horton PLC", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "and", + "category": "much", + "price": 234.1, + "stock_quantity": 750 + }, + "customer": { + "name": "Marc Wood", + "age": 23, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Henderson Ltd", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "war", + "category": "alone", + "price": 510.3, + "stock_quantity": 316 + }, + "customer": { + "name": "Caleb Collins", + "age": 25, + "country": "Togo" + } + }, + { + "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'", + "company": { + "name": "Hernandez, Miranda and Salazar", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "community", + "category": "ready", + "price": 386.07, + "stock_quantity": 853 + }, + "customer": { + "name": "Joseph Hill", + "age": 65, + "country": "Zambia" + } + }, + { + "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", + "company": { + "name": "Kline, Turner and Wallace", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "beyond", + "category": "religious", + "price": 940.08, + "stock_quantity": 661 + }, + "customer": { + "name": "Kari Cardenas", + "age": 74, + "country": "Jordan" + } + }, + { + "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'", + "company": { + "name": "Glenn-Cordova", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "experience", + "category": "officer", + "price": 228.66, + "stock_quantity": 870 + }, + "customer": { + "name": "Joan Watson", + "age": 39, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Palmer-Mitchell", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "program", + "category": "son", + "price": 75.72, + "stock_quantity": 164 + }, + "customer": { + "name": "Michael Campbell", + "age": 70, + "country": "Pitcairn Islands" + } + }, + { + "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'", + "company": { + "name": "Smith PLC", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "there", + "category": "claim", + "price": 779.83, + "stock_quantity": 128 + }, + "customer": { + "name": "Joseph Douglas", + "age": 25, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Fleming-Potts", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "to", + "category": "develop", + "price": 494.69, + "stock_quantity": 220 + }, + "customer": { + "name": "Whitney Wilson", + "age": 24, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Fox, Rice and Nash", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "system", + "category": "floor", + "price": 182.25, + "stock_quantity": 297 + }, + "customer": { + "name": "Cody Clayton", + "age": 32, + "country": "China" + } + }, + { + "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'", + "company": { + "name": "Orozco and Sons", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "find", + "category": "oil", + "price": 317.55, + "stock_quantity": 981 + }, + "customer": { + "name": "Stanley Dixon", + "age": 76, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Clark and Sons", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "knowledge", + "category": "stuff", + "price": 599.81, + "stock_quantity": 131 + }, + "customer": { + "name": "Alan Foster", + "age": 44, + "country": "Congo" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Everett-Campbell for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Everett-Campbell'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Everett-Campbell", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "see", + "category": "method", + "price": 782.92, + "stock_quantity": 469 + }, + "customer": { + "name": "Xavier Cortez", + "age": 31, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Franco, Dominguez and Murray", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "reveal", + "category": "only", + "price": 839.05, + "stock_quantity": 691 + }, + "customer": { + "name": "Michelle Shaw", + "age": 59, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Morgan-Rogers", + "sector": "Group", + "founded_year": "1982" + }, + "product": { + "name": "foreign", + "category": "kid", + "price": 753.41, + "stock_quantity": 707 + }, + "customer": { + "name": "Mr. Rodney Bauer", + "age": 50, + "country": "Trinidad and Tobago" + } + }, + { + "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'", + "company": { + "name": "Walker-Watson", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "good", + "category": "agent", + "price": 230.55, + "stock_quantity": 900 + }, + "customer": { + "name": "Shannon Davis", + "age": 50, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Estrada, White and Long", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "point", + "category": "ten", + "price": 203.43, + "stock_quantity": 874 + }, + "customer": { + "name": "Margaret Ward", + "age": 57, + "country": "Iraq" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Russell-Mcdonald'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Russell-Mcdonald", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "commercial", + "category": "within", + "price": 837.26, + "stock_quantity": 31 + }, + "customer": { + "name": "Richard Brown", + "age": 54, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Miller, Velazquez and Gutierrez", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "conference", + "category": "shoulder", + "price": 371.16, + "stock_quantity": 29 + }, + "customer": { + "name": "Vanessa Kane", + "age": 60, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Chaney-Wheeler", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "old", + "category": "similar", + "price": 327.82, + "stock_quantity": 349 + }, + "customer": { + "name": "Jeffrey Nguyen", + "age": 25, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Robinson, Jackson and Hall", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "blue", + "category": "seven", + "price": 603.67, + "stock_quantity": 387 + }, + "customer": { + "name": "Derek Hernandez", + "age": 63, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Harrison-Howe", + "sector": "LLC", + "founded_year": "1971" + }, + "product": { + "name": "agreement", + "category": "daughter", + "price": 302.53, + "stock_quantity": 307 + }, + "customer": { + "name": "William Schmidt", + "age": 32, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Mcguire Inc", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "public", + "category": "lawyer", + "price": 847.55, + "stock_quantity": 577 + }, + "customer": { + "name": "Kathryn Boyd", + "age": 22, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Nash-Monroe", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "maybe", + "category": "defense", + "price": 161.8, + "stock_quantity": 329 + }, + "customer": { + "name": "Erik Carter", + "age": 51, + "country": "Greenland" + } + }, + { + "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", + "company": { + "name": "Vasquez Ltd", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "thought", + "category": "go", + "price": 238.06, + "stock_quantity": 429 + }, + "customer": { + "name": "Spencer Hall", + "age": 67, + "country": "Serbia" + } + }, + { + "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", + "company": { + "name": "Robles-Soto", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "mission", + "category": "no", + "price": 519.53, + "stock_quantity": 364 + }, + "customer": { + "name": "Rhonda Perez", + "age": 48, + "country": "Cuba" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Santana Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Santana Group", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "fire", + "category": "she", + "price": 115.42, + "stock_quantity": 937 + }, + "customer": { + "name": "Rebecca Mccann", + "age": 60, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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'", + "company": { + "name": "Johnson, Farley and Wilson", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "executive", + "category": "never", + "price": 844.77, + "stock_quantity": 813 + }, + "customer": { + "name": "William Gonzalez", + "age": 56, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Tate Ltd", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "until", + "category": "understand", + "price": 61.82, + "stock_quantity": 763 + }, + "customer": { + "name": "Kelly Smith", + "age": 45, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Fowler-Price", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "during", + "category": "human", + "price": 375.12, + "stock_quantity": 762 + }, + "customer": { + "name": "Mr. Thomas Bentley", + "age": 56, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Keller-Sanders", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "treat", + "category": "charge", + "price": 82.6, + "stock_quantity": 211 + }, + "customer": { + "name": "Barry Hayes", + "age": 24, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Delacruz-Moore", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "president", + "category": "establish", + "price": 743.23, + "stock_quantity": 390 + }, + "customer": { + "name": "Andrew Allen", + "age": 63, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Trujillo, Jackson and White", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "go", + "category": "professor", + "price": 979.06, + "stock_quantity": 166 + }, + "customer": { + "name": "Keith Miller", + "age": 37, + "country": "Grenada" + } + }, + { + "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'", + "company": { + "name": "Cook, Porter and Morgan", + "sector": "Inc", + "founded_year": "1999" + }, + "product": { + "name": "heart", + "category": "believe", + "price": 137.42, + "stock_quantity": 732 + }, + "customer": { + "name": "Pedro Cook", + "age": 32, + "country": "Venezuela" + } + }, + { + "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'", + "company": { + "name": "Henry, Johnson and King", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "hot", + "category": "huge", + "price": 772.21, + "stock_quantity": 318 + }, + "customer": { + "name": "Kimberly Maldonado", + "age": 55, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Brown-Dixon", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "foot", + "category": "go", + "price": 212.51, + "stock_quantity": 44 + }, + "customer": { + "name": "Matthew Olson", + "age": 70, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Watkins-Hogan", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "her", + "category": "white", + "price": 354.85, + "stock_quantity": 346 + }, + "customer": { + "name": "Cory Adams", + "age": 57, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Montgomery LLC", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "drop", + "category": "plant", + "price": 659.42, + "stock_quantity": 245 + }, + "customer": { + "name": "Jerry Johnson", + "age": 65, + "country": "Qatar" + } + }, + { + "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", + "company": { + "name": "Jennings LLC", + "sector": "PLC", + "founded_year": "1989" + }, + "product": { + "name": "mention", + "category": "office", + "price": 59.37, + "stock_quantity": 511 + }, + "customer": { + "name": "Oscar Koch", + "age": 35, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Martin, Murphy and Parker", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "possible", + "category": "present", + "price": 535.18, + "stock_quantity": 350 + }, + "customer": { + "name": "Amber Butler", + "age": 41, + "country": "Suriname" + } + }, + { + "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'", + "company": { + "name": "Kelly-Nguyen", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "ten", + "category": "member", + "price": 882.07, + "stock_quantity": 197 + }, + "customer": { + "name": "Wesley Crosby", + "age": 38, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Sims-Wilson", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "collection", + "category": "gun", + "price": 798.8, + "stock_quantity": 355 + }, + "customer": { + "name": "Barbara Conrad", + "age": 52, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Sanchez-Rogers", + "sector": "Group", + "founded_year": "1994" + }, + "product": { + "name": "wait", + "category": "reason", + "price": 812.01, + "stock_quantity": 525 + }, + "customer": { + "name": "Yvonne Fletcher", + "age": 77, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Hanson LLC", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "experience", + "category": "most", + "price": 573.31, + "stock_quantity": 700 + }, + "customer": { + "name": "Autumn Gonzalez", + "age": 63, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "James-Powell", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "person", + "category": "especially", + "price": 276.74, + "stock_quantity": 808 + }, + "customer": { + "name": "Ian Keith", + "age": 44, + "country": "Chile" + } + }, + { + "natural_query": "How many orders were placed for Gould, Parrish and Garcia between 2024-09-10 and 2024-09-12?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Gould, Parrish and Garcia' AND order_date BETWEEN '2024-09-10' AND '2024-09-12'", + "company": { + "name": "Gould, Parrish and Garcia", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "place", + "category": "television", + "price": 112.26, + "stock_quantity": 814 + }, + "customer": { + "name": "Brandon Lopez", + "age": 40, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Turner, Simpson and Gibbs", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "within", + "category": "possible", + "price": 353.12, + "stock_quantity": 823 + }, + "customer": { + "name": "Rebecca Mcdonald", + "age": 57, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Suarez PLC", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "detail", + "category": "course", + "price": 312.16, + "stock_quantity": 138 + }, + "customer": { + "name": "Shawn Richard", + "age": 63, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Simmons, Bell and Wright", + "sector": "and Sons", + "founded_year": "1996" + }, + "product": { + "name": "middle", + "category": "themselves", + "price": 135.71, + "stock_quantity": 707 + }, + "customer": { + "name": "Brad Ross", + "age": 33, + "country": "Moldova" + } + }, + { + "natural_query": "Show me all products in the strategy category with a price over $63.52.", + "sql_query": "SELECT * FROM products WHERE category = 'strategy' AND price > 63.52", + "company": { + "name": "Goodman LLC", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "section", + "category": "strategy", + "price": 63.52, + "stock_quantity": 145 + }, + "customer": { + "name": "Jessica Skinner", + "age": 53, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Nelson-Sloan", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "decide", + "category": "someone", + "price": 677.06, + "stock_quantity": 507 + }, + "customer": { + "name": "Jennifer Foster", + "age": 75, + "country": "Belize" + } + }, + { + "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'", + "company": { + "name": "Farley, Brown and Williams", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "break", + "category": "sport", + "price": 887.85, + "stock_quantity": 614 + }, + "customer": { + "name": "Matthew Clark", + "age": 67, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Collins and Sons", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "rule", + "category": "show", + "price": 239.33, + "stock_quantity": 543 + }, + "customer": { + "name": "Kimberly Woods", + "age": 65, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Munoz, Smith and Smith", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "add", + "category": "easy", + "price": 436.83, + "stock_quantity": 247 + }, + "customer": { + "name": "Charles Cochran", + "age": 63, + "country": "Vietnam" + } + }, + { + "natural_query": "How many orders were placed for Jenkins-Carter between 2024-03-22 and 2024-06-17?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Jenkins-Carter' AND order_date BETWEEN '2024-03-22' AND '2024-06-17'", + "company": { + "name": "Jenkins-Carter", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "many", + "category": "law", + "price": 535.83, + "stock_quantity": 556 + }, + "customer": { + "name": "Erica Newman", + "age": 19, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Ramos-Barr", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "course", + "category": "evidence", + "price": 972.35, + "stock_quantity": 295 + }, + "customer": { + "name": "Heidi Stevens", + "age": 41, + "country": "Djibouti" + } + }, + { + "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'", + "company": { + "name": "Glenn-Stone", + "sector": "Ltd", + "founded_year": "2006" + }, + "product": { + "name": "fish", + "category": "give", + "price": 976.83, + "stock_quantity": 834 + }, + "customer": { + "name": "Anna Jackson", + "age": 75, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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'", + "company": { + "name": "Murray-Jackson", + "sector": "LLC", + "founded_year": "2014" + }, + "product": { + "name": "night", + "category": "least", + "price": 395.02, + "stock_quantity": 91 + }, + "customer": { + "name": "Kelly Ferguson", + "age": 64, + "country": "Czech Republic" + } + }, + { + "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'", + "company": { + "name": "Murphy, Bowers and Weber", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "himself", + "category": "which", + "price": 749.23, + "stock_quantity": 690 + }, + "customer": { + "name": "Erica Flores", + "age": 59, + "country": "Syrian Arab Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Golden Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Golden Group", + "sector": "and Sons", + "founded_year": "2010" + }, + "product": { + "name": "future", + "category": "another", + "price": 916.02, + "stock_quantity": 792 + }, + "customer": { + "name": "Carmen Smith", + "age": 49, + "country": "Northern Mariana Islands" + } + }, + { + "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'", + "company": { + "name": "Perry, King and Moore", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "identify", + "category": "either", + "price": 894.42, + "stock_quantity": 940 + }, + "customer": { + "name": "Janet Conley", + "age": 25, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Serrano Group", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "single", + "category": "perhaps", + "price": 836.21, + "stock_quantity": 544 + }, + "customer": { + "name": "Sergio Simmons", + "age": 33, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Wilson-Kelly", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "factor", + "category": "member", + "price": 770.36, + "stock_quantity": 277 + }, + "customer": { + "name": "Cody Ramirez", + "age": 62, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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'", + "company": { + "name": "Carlson-Lawson", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "rule", + "category": "style", + "price": 585.58, + "stock_quantity": 857 + }, + "customer": { + "name": "Leroy Wade", + "age": 67, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Sanchez-Dunn", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "no", + "category": "word", + "price": 63.96, + "stock_quantity": 36 + }, + "customer": { + "name": "Brian Green", + "age": 80, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Ritter, Higgins and Brown", + "sector": "LLC", + "founded_year": "2016" + }, + "product": { + "name": "mission", + "category": "unit", + "price": 600.1, + "stock_quantity": 682 + }, + "customer": { + "name": "Chris Archer", + "age": 42, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Martin-Smith", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "suffer", + "category": "think", + "price": 749.58, + "stock_quantity": 678 + }, + "customer": { + "name": "Dana Carroll", + "age": 65, + "country": "Fiji" + } + }, + { + "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'", + "company": { + "name": "Garcia and Sons", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "once", + "category": "language", + "price": 480.18, + "stock_quantity": 78 + }, + "customer": { + "name": "Erin Charles", + "age": 50, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Wallace, Keller and Williams", + "sector": "Inc", + "founded_year": "1989" + }, + "product": { + "name": "tree", + "category": "kind", + "price": 41.27, + "stock_quantity": 512 + }, + "customer": { + "name": "Danny Arias", + "age": 24, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Mercado, Reed and Lopez", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "skill", + "category": "off", + "price": 282.59, + "stock_quantity": 294 + }, + "customer": { + "name": "Kathryn Davis", + "age": 33, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Hernandez PLC", + "sector": "Group", + "founded_year": "1992" + }, + "product": { + "name": "message", + "category": "idea", + "price": 155.68, + "stock_quantity": 990 + }, + "customer": { + "name": "Debra David", + "age": 62, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Acosta, Pacheco and Atkinson", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "until", + "category": "operation", + "price": 912.99, + "stock_quantity": 871 + }, + "customer": { + "name": "Abigail Bates", + "age": 68, + "country": "Saint Helena" + } + }, + { + "natural_query": "How many orders were placed for Bailey, Gonzalez and Rogers between 2024-04-01 and 2024-04-03?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Bailey, Gonzalez and Rogers' AND order_date BETWEEN '2024-04-01' AND '2024-04-03'", + "company": { + "name": "Bailey, Gonzalez and Rogers", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "forward", + "category": "hard", + "price": 490.65, + "stock_quantity": 729 + }, + "customer": { + "name": "Meghan Ashley", + "age": 61, + "country": "Yemen" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Frey Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Frey Inc", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "economy", + "category": "bank", + "price": 391.71, + "stock_quantity": 436 + }, + "customer": { + "name": "Lisa Valdez", + "age": 66, + "country": "Holy See (Vatican City State)" + } + }, + { + "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'", + "company": { + "name": "Richardson-Schmidt", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "travel", + "category": "tax", + "price": 845.31, + "stock_quantity": 51 + }, + "customer": { + "name": "Ethan Thomas", + "age": 20, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Fox and Sons", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "behavior", + "category": "local", + "price": 612.86, + "stock_quantity": 858 + }, + "customer": { + "name": "Melissa Rivers", + "age": 58, + "country": "Armenia" + } + }, + { + "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'", + "company": { + "name": "Hart and Sons", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "somebody", + "category": "follow", + "price": 525.86, + "stock_quantity": 515 + }, + "customer": { + "name": "Anthony Baker", + "age": 65, + "country": "Sudan" + } + }, + { + "natural_query": "List all products of Simpson, Ruiz and Olson ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Simpson, Ruiz and Olson' ORDER BY rating DESC", + "company": { + "name": "Simpson, Ruiz and Olson", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "in", + "category": "later", + "price": 709.44, + "stock_quantity": 523 + }, + "customer": { + "name": "Michael Ramirez", + "age": 32, + "country": "Guyana" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Combs Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Combs Ltd", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "minute", + "category": "miss", + "price": 480.99, + "stock_quantity": 958 + }, + "customer": { + "name": "David Silva", + "age": 73, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baker, Jones and Cross'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baker, Jones and Cross", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "reason", + "category": "cut", + "price": 433.04, + "stock_quantity": 823 + }, + "customer": { + "name": "Katherine Castillo", + "age": 32, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Hernandez and Sons", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "send", + "category": "probably", + "price": 830.17, + "stock_quantity": 198 + }, + "customer": { + "name": "Mark Clark", + "age": 49, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Cruz LLC", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "cultural", + "category": "old", + "price": 885.12, + "stock_quantity": 542 + }, + "customer": { + "name": "Maria Gibson", + "age": 20, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Macias, Cardenas and Farmer", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "sell", + "category": "through", + "price": 148.32, + "stock_quantity": 368 + }, + "customer": { + "name": "Kelsey Smith", + "age": 38, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Owens, Wright and Davenport", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "fish", + "category": "foreign", + "price": 569.55, + "stock_quantity": 474 + }, + "customer": { + "name": "Nicole Sandoval", + "age": 55, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Valencia Group", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "team", + "category": "find", + "price": 917.85, + "stock_quantity": 971 + }, + "customer": { + "name": "Jessica Kemp", + "age": 30, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Mcdonald-Cook", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "hundred", + "category": "six", + "price": 818.09, + "stock_quantity": 759 + }, + "customer": { + "name": "Hannah Foster", + "age": 41, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Harris, Schroeder and Schmidt", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "rock", + "category": "cause", + "price": 372.64, + "stock_quantity": 348 + }, + "customer": { + "name": "Nathan Cruz", + "age": 46, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Gutierrez, Mcintyre and Jordan", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "wind", + "category": "indicate", + "price": 616.04, + "stock_quantity": 853 + }, + "customer": { + "name": "Lisa Kirk", + "age": 64, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Phillips LLC", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "because", + "category": "wish", + "price": 657.12, + "stock_quantity": 941 + }, + "customer": { + "name": "Brent Long", + "age": 51, + "country": "Peru" + } + }, + { + "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", + "company": { + "name": "Smith-Hays", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "executive", + "category": "pay", + "price": 72.54, + "stock_quantity": 492 + }, + "customer": { + "name": "Jennifer Warren", + "age": 54, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "Murphy PLC", + "sector": "LLC", + "founded_year": "1982" + }, + "product": { + "name": "expert", + "category": "side", + "price": 527.1, + "stock_quantity": 46 + }, + "customer": { + "name": "Nicholas Pierce", + "age": 40, + "country": "Cocos (Keeling) Islands" + } + }, + { + "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", + "company": { + "name": "Williams Inc", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "industry", + "category": "fact", + "price": 410.63, + "stock_quantity": 938 + }, + "customer": { + "name": "Jerry Pratt", + "age": 37, + "country": "Benin" + } + }, + { + "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'", + "company": { + "name": "Parsons-Moore", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "rest", + "category": "recognize", + "price": 752.23, + "stock_quantity": 689 + }, + "customer": { + "name": "Cristian Sanchez", + "age": 57, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Woodward, Burke and Jones", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "outside", + "category": "worry", + "price": 524.47, + "stock_quantity": 10 + }, + "customer": { + "name": "Jimmy Wilson", + "age": 22, + "country": "Swaziland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Lewis-Warren'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Lewis-Warren", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "able", + "category": "sport", + "price": 868.9, + "stock_quantity": 213 + }, + "customer": { + "name": "Robert Weiss", + "age": 23, + "country": "Guam" + } + }, + { + "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'", + "company": { + "name": "Taylor, Lynn and Nixon", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "miss", + "category": "including", + "price": 369.52, + "stock_quantity": 742 + }, + "customer": { + "name": "Robert Obrien", + "age": 21, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Howard-Collins", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "area", + "category": "area", + "price": 500.07, + "stock_quantity": 798 + }, + "customer": { + "name": "Tracey Hurst", + "age": 49, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Acosta PLC", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "friend", + "category": "animal", + "price": 804.34, + "stock_quantity": 778 + }, + "customer": { + "name": "Scott Mcclure", + "age": 50, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Young Ltd", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "in", + "category": "provide", + "price": 261.25, + "stock_quantity": 823 + }, + "customer": { + "name": "Joshua May", + "age": 63, + "country": "Poland" + } + }, + { + "natural_query": "What is the total rating of all products for Adams, Russell and Luna?", + "sql_query": "SELECT TOTAL(rating) as result FROM products WHERE company_name = 'Adams, Russell and Luna'", + "company": { + "name": "Adams, Russell and Luna", + "sector": "Inc", + "founded_year": "1979" + }, + "product": { + "name": "expert", + "category": "eat", + "price": 535.94, + "stock_quantity": 573 + }, + "customer": { + "name": "Cheyenne Lee", + "age": 51, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Parker and Sons", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "growth", + "category": "pattern", + "price": 858.53, + "stock_quantity": 342 + }, + "customer": { + "name": "Kristina Yates", + "age": 71, + "country": "Paraguay" + } + }, + { + "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", + "company": { + "name": "Smith Ltd", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "soldier", + "category": "go", + "price": 198.31, + "stock_quantity": 64 + }, + "customer": { + "name": "Mary Harper", + "age": 28, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "Decker, Johnson and Lewis", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "participant", + "category": "ready", + "price": 836.09, + "stock_quantity": 156 + }, + "customer": { + "name": "Crystal Kim", + "age": 27, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Garcia, Simmons and Hensley", + "sector": "Ltd", + "founded_year": "1975" + }, + "product": { + "name": "culture", + "category": "lay", + "price": 473.97, + "stock_quantity": 307 + }, + "customer": { + "name": "Emily Porter", + "age": 45, + "country": "Morocco" + } + }, + { + "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'", + "company": { + "name": "Mckay, Thompson and Ross", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "push", + "category": "citizen", + "price": 617.92, + "stock_quantity": 844 + }, + "customer": { + "name": "Brandon Jones", + "age": 73, + "country": "Kuwait" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jones Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jones Group", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "board", + "category": "film", + "price": 302.21, + "stock_quantity": 36 + }, + "customer": { + "name": "Donald Smith", + "age": 57, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Banks, Williams and Hull", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "there", + "category": "everything", + "price": 741.29, + "stock_quantity": 138 + }, + "customer": { + "name": "Yesenia Lowe", + "age": 37, + "country": "French Southern Territories" + } + }, + { + "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'", + "company": { + "name": "Fox Group", + "sector": "Group", + "founded_year": "1974" + }, + "product": { + "name": "accept", + "category": "citizen", + "price": 855.85, + "stock_quantity": 457 + }, + "customer": { + "name": "Kevin Acosta", + "age": 20, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Lewis Ltd", + "sector": "Group", + "founded_year": "1975" + }, + "product": { + "name": "arm", + "category": "management", + "price": 538.39, + "stock_quantity": 255 + }, + "customer": { + "name": "William Gonzales", + "age": 72, + "country": "Tonga" + } + }, + { + "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'", + "company": { + "name": "Pham Ltd", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "public", + "category": "middle", + "price": 470.86, + "stock_quantity": 944 + }, + "customer": { + "name": "Paul Mcdonald", + "age": 43, + "country": "Moldova" + } + }, + { + "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", + "company": { + "name": "Walters PLC", + "sector": "Inc", + "founded_year": "1995" + }, + "product": { + "name": "court", + "category": "other", + "price": 738.76, + "stock_quantity": 498 + }, + "customer": { + "name": "Mark Johnson", + "age": 78, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Bailey-Hunt", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "pass", + "category": "matter", + "price": 376.16, + "stock_quantity": 11 + }, + "customer": { + "name": "Phillip Murphy", + "age": 64, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Anderson, Guerrero and Oliver", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "produce", + "category": "participant", + "price": 409.72, + "stock_quantity": 595 + }, + "customer": { + "name": "Brianna Harris", + "age": 36, + "country": "Fiji" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gordon and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gordon and Sons", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "game", + "category": "visit", + "price": 887.59, + "stock_quantity": 274 + }, + "customer": { + "name": "Karen Williams", + "age": 76, + "country": "Sweden" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'House Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "House Group", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "whom", + "category": "bring", + "price": 192.62, + "stock_quantity": 358 + }, + "customer": { + "name": "Gabriel Massey", + "age": 47, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Young, Castaneda and Johnson", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "arrive", + "category": "country", + "price": 731.37, + "stock_quantity": 962 + }, + "customer": { + "name": "Sheri Maddox", + "age": 29, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Thompson, Vasquez and Hernandez", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "view", + "category": "several", + "price": 525.22, + "stock_quantity": 339 + }, + "customer": { + "name": "Joel Fitzgerald", + "age": 51, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Dalton, Walton and Williams", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "morning", + "category": "top", + "price": 781.88, + "stock_quantity": 333 + }, + "customer": { + "name": "Lindsay Mcclure", + "age": 55, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Hunter, Bates and Nelson", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "player", + "category": "character", + "price": 887.98, + "stock_quantity": 618 + }, + "customer": { + "name": "Bryan Sweeney", + "age": 18, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Murphy Inc", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "stay", + "category": "modern", + "price": 893.79, + "stock_quantity": 403 + }, + "customer": { + "name": "Kelly Gonzales", + "age": 80, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Rojas, Roberts and Bean", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "think", + "category": "keep", + "price": 873.95, + "stock_quantity": 127 + }, + "customer": { + "name": "Joyce Fry", + "age": 68, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Pena-Compton", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "pull", + "category": "according", + "price": 152.07, + "stock_quantity": 712 + }, + "customer": { + "name": "Candice Gallagher", + "age": 36, + "country": "Lao People's Democratic Republic" + } + }, + { + "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", + "company": { + "name": "Mosley, Walker and Cohen", + "sector": "Inc", + "founded_year": "2018" + }, + "product": { + "name": "or", + "category": "first", + "price": 965.63, + "stock_quantity": 660 + }, + "customer": { + "name": "Lisa Brown", + "age": 64, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Vazquez-Walter", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "fact", + "category": "find", + "price": 134.46, + "stock_quantity": 960 + }, + "customer": { + "name": "William Young", + "age": 57, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Davis and Sons", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "his", + "category": "tell", + "price": 789.5, + "stock_quantity": 853 + }, + "customer": { + "name": "Erica Thornton", + "age": 43, + "country": "Jersey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bell, Adams and Clark'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bell, Adams and Clark", + "sector": "and Sons", + "founded_year": "1976" + }, + "product": { + "name": "kitchen", + "category": "senior", + "price": 840.04, + "stock_quantity": 830 + }, + "customer": { + "name": "Janet Harris", + "age": 30, + "country": "Spain" + } + }, + { + "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", + "company": { + "name": "Higgins-Huynh", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "family", + "category": "property", + "price": 51.05, + "stock_quantity": 572 + }, + "customer": { + "name": "Curtis Carr", + "age": 43, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Mendez and Sons", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "policy", + "category": "practice", + "price": 672.08, + "stock_quantity": 182 + }, + "customer": { + "name": "Brenda Rhodes", + "age": 79, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Wolf, Gray and Gardner", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "air", + "category": "rest", + "price": 44.55, + "stock_quantity": 693 + }, + "customer": { + "name": "David Sanchez", + "age": 43, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Clark and Sons", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "something", + "category": "establish", + "price": 609.46, + "stock_quantity": 947 + }, + "customer": { + "name": "Jennifer Miller", + "age": 51, + "country": "Botswana" + } + }, + { + "natural_query": "What is the minimum rating of all products for Bond-Padilla?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Bond-Padilla'", + "company": { + "name": "Bond-Padilla", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "notice", + "category": "machine", + "price": 380.26, + "stock_quantity": 588 + }, + "customer": { + "name": "Michael Alvarez", + "age": 33, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Butler-Aguilar", + "sector": "PLC", + "founded_year": "1993" + }, + "product": { + "name": "price", + "category": "part", + "price": 450.49, + "stock_quantity": 407 + }, + "customer": { + "name": "Steven White", + "age": 63, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Reed-Holmes", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "contain", + "category": "represent", + "price": 617.32, + "stock_quantity": 319 + }, + "customer": { + "name": "Judy Rodriguez", + "age": 76, + "country": "Uruguay" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wu, Hudson and Gardner'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wu, Hudson and Gardner", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "until", + "category": "region", + "price": 252.35, + "stock_quantity": 301 + }, + "customer": { + "name": "Renee Montgomery", + "age": 71, + "country": "Uruguay" + } + }, + { + "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", + "company": { + "name": "Stone Group", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "about", + "category": "investment", + "price": 21.0, + "stock_quantity": 877 + }, + "customer": { + "name": "Tyrone Villanueva", + "age": 43, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Williams-Austin", + "sector": "Ltd", + "founded_year": "1989" + }, + "product": { + "name": "his", + "category": "put", + "price": 503.5, + "stock_quantity": 436 + }, + "customer": { + "name": "Taylor Bradley", + "age": 64, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Wood-Perry", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "feeling", + "category": "seat", + "price": 136.37, + "stock_quantity": 138 + }, + "customer": { + "name": "Antonio White", + "age": 51, + "country": "Saudi Arabia" + } + }, + { + "natural_query": "What are the top 10 products by customers for Rodriguez, Stanley and Marks all time?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Rodriguez, Stanley and Marks' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10", + "company": { + "name": "Rodriguez, Stanley and Marks", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "hope", + "category": "also", + "price": 703.44, + "stock_quantity": 788 + }, + "customer": { + "name": "Mary Richardson", + "age": 58, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Hughes, Fuller and Ellis", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "chance", + "category": "hit", + "price": 336.21, + "stock_quantity": 216 + }, + "customer": { + "name": "Steven Manning", + "age": 55, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "Garcia, Turner and Mcguire", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "woman", + "category": "each", + "price": 763.38, + "stock_quantity": 80 + }, + "customer": { + "name": "Christopher Dominguez", + "age": 44, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Henry-Bradley", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "generation", + "category": "school", + "price": 316.73, + "stock_quantity": 51 + }, + "customer": { + "name": "Michael Wallace", + "age": 57, + "country": "Cook Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hanson and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hanson and Sons", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "however", + "category": "enjoy", + "price": 883.79, + "stock_quantity": 873 + }, + "customer": { + "name": "Anthony Shaw", + "age": 78, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Vaughn Group", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "its", + "category": "clearly", + "price": 54.97, + "stock_quantity": 579 + }, + "customer": { + "name": "Michael Hull", + "age": 42, + "country": "Guatemala" + } + }, + { + "natural_query": "What is the minimum rating of all products for Johnson, Davidson and Johnson?", + "sql_query": "SELECT MINIMUM(rating) as result FROM products WHERE company_name = 'Johnson, Davidson and Johnson'", + "company": { + "name": "Johnson, Davidson and Johnson", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "result", + "category": "education", + "price": 72.43, + "stock_quantity": 546 + }, + "customer": { + "name": "Kevin Sharp", + "age": 26, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Walton PLC", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "guy", + "category": "nor", + "price": 767.7, + "stock_quantity": 74 + }, + "customer": { + "name": "Kristin Peters", + "age": 37, + "country": "Swaziland" + } + }, + { + "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'", + "company": { + "name": "Garza-Gibson", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "wind", + "category": "although", + "price": 551.75, + "stock_quantity": 317 + }, + "customer": { + "name": "Jessica Sanchez", + "age": 25, + "country": "Lebanon" + } + }, + { + "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'", + "company": { + "name": "Lucero-Hart", + "sector": "PLC", + "founded_year": "1986" + }, + "product": { + "name": "entire", + "category": "them", + "price": 61.75, + "stock_quantity": 111 + }, + "customer": { + "name": "Christine Diaz", + "age": 41, + "country": "Netherlands Antilles" + } + }, + { + "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", + "company": { + "name": "Hill-Wood", + "sector": "PLC", + "founded_year": "2020" + }, + "product": { + "name": "chance", + "category": "executive", + "price": 34.01, + "stock_quantity": 246 + }, + "customer": { + "name": "Garrett Morgan", + "age": 60, + "country": "New Caledonia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Cunningham LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Cunningham LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Cunningham LLC", + "sector": "Ltd", + "founded_year": "1995" + }, + "product": { + "name": "good", + "category": "detail", + "price": 694.25, + "stock_quantity": 864 + }, + "customer": { + "name": "Amy Bernard", + "age": 46, + "country": "Haiti" + } + }, + { + "natural_query": "How many orders were placed for Rodriguez, Moore and Tran between 2023-12-03 and 2023-12-20?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Rodriguez, Moore and Tran' AND order_date BETWEEN '2023-12-03' AND '2023-12-20'", + "company": { + "name": "Rodriguez, Moore and Tran", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "evidence", + "category": "everything", + "price": 813.74, + "stock_quantity": 428 + }, + "customer": { + "name": "John Todd", + "age": 65, + "country": "Sri Lanka" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Sosa", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "truth", + "category": "interesting", + "price": 89.83, + "stock_quantity": 499 + }, + "customer": { + "name": "Joseph Stuart", + "age": 26, + "country": "Monaco" + } + }, + { + "natural_query": "List all products of Smith-Jones ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Smith-Jones' ORDER BY stock_quantity ASC", + "company": { + "name": "Smith-Jones", + "sector": "Ltd", + "founded_year": "1992" + }, + "product": { + "name": "above", + "category": "officer", + "price": 723.86, + "stock_quantity": 743 + }, + "customer": { + "name": "Adam Robertson", + "age": 62, + "country": "Angola" + } + }, + { + "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'", + "company": { + "name": "Park-Williams", + "sector": "and Sons", + "founded_year": "2004" + }, + "product": { + "name": "soon", + "category": "several", + "price": 914.44, + "stock_quantity": 526 + }, + "customer": { + "name": "Paul Curry", + "age": 68, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Nelson, Parrish and Phillips", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "argue", + "category": "crime", + "price": 340.03, + "stock_quantity": 613 + }, + "customer": { + "name": "Marcus Martin", + "age": 23, + "country": "Bosnia and Herzegovina" + } + }, + { + "natural_query": "What are the top 7 products by orders for Greene-Ward this month?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Greene-Ward' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7", + "company": { + "name": "Greene-Ward", + "sector": "LLC", + "founded_year": "1974" + }, + "product": { + "name": "over", + "category": "establish", + "price": 82.74, + "stock_quantity": 579 + }, + "customer": { + "name": "Tyrone Myers", + "age": 28, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Morales-Barry", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "weight", + "category": "medical", + "price": 721.27, + "stock_quantity": 65 + }, + "customer": { + "name": "Charles Garcia", + "age": 34, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Murphy Ltd", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "sort", + "category": "main", + "price": 628.11, + "stock_quantity": 808 + }, + "customer": { + "name": "Michael Burgess", + "age": 21, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "natural_query": "Show me all products in the huge category with a price over $564.74.", + "sql_query": "SELECT * FROM products WHERE category = 'huge' AND price > 564.74", + "company": { + "name": "Miller LLC", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "argue", + "category": "huge", + "price": 564.74, + "stock_quantity": 358 + }, + "customer": { + "name": "Cassie Scott", + "age": 31, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Gordon, Wilson and Dean", + "sector": "PLC", + "founded_year": "1972" + }, + "product": { + "name": "same", + "category": "live", + "price": 591.73, + "stock_quantity": 870 + }, + "customer": { + "name": "Lisa Crawford", + "age": 52, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Duncan, George and Weeks", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "letter", + "category": "perform", + "price": 528.41, + "stock_quantity": 908 + }, + "customer": { + "name": "Thomas Jones", + "age": 62, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Berg PLC", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "sea", + "category": "people", + "price": 19.93, + "stock_quantity": 842 + }, + "customer": { + "name": "Russell Curtis", + "age": 41, + "country": "Yemen" + } + }, + { + "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", + "company": { + "name": "Gibson, Aguirre and Bowen", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "suffer", + "category": "item", + "price": 122.9, + "stock_quantity": 400 + }, + "customer": { + "name": "Mallory Hall", + "age": 73, + "country": "Kyrgyz Republic" + } + }, + { + "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'", + "company": { + "name": "Davidson LLC", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "give", + "category": "season", + "price": 980.01, + "stock_quantity": 937 + }, + "customer": { + "name": "Roberta Hall", + "age": 43, + "country": "Guadeloupe" + } + }, + { + "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'", + "company": { + "name": "Johnson Inc", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "according", + "category": "along", + "price": 125.68, + "stock_quantity": 230 + }, + "customer": { + "name": "Ashlee Gomez", + "age": 62, + "country": "Gabon" + } + }, + { + "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", + "company": { + "name": "Yang, Ryan and Lane", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "event", + "category": "owner", + "price": 721.11, + "stock_quantity": 923 + }, + "customer": { + "name": "Renee Morris", + "age": 59, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Crawford PLC", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "size", + "category": "rich", + "price": 790.4, + "stock_quantity": 470 + }, + "customer": { + "name": "William Erickson MD", + "age": 64, + "country": "Syrian Arab Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith-Barrett'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith-Barrett", + "sector": "Inc", + "founded_year": "1986" + }, + "product": { + "name": "high", + "category": "consumer", + "price": 494.23, + "stock_quantity": 512 + }, + "customer": { + "name": "Tricia Kirby PhD", + "age": 78, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Nguyen and Sons", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "finally", + "category": "health", + "price": 755.82, + "stock_quantity": 946 + }, + "customer": { + "name": "Philip Klein", + "age": 67, + "country": "Mozambique" + } + }, + { + "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'", + "company": { + "name": "Baker-Wilson", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "phone", + "category": "attention", + "price": 157.7, + "stock_quantity": 722 + }, + "customer": { + "name": "Michael Brown", + "age": 67, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Mitchell, Anderson and Greene", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "color", + "category": "service", + "price": 30.72, + "stock_quantity": 247 + }, + "customer": { + "name": "Timothy Henderson", + "age": 28, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Harris LLC", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "mouth", + "category": "goal", + "price": 657.93, + "stock_quantity": 708 + }, + "customer": { + "name": "Bethany Sanders", + "age": 28, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Bailey and Sons", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "carry", + "category": "stay", + "price": 557.38, + "stock_quantity": 191 + }, + "customer": { + "name": "Kelly Guerra", + "age": 28, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Charles-Moore", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "way", + "category": "high", + "price": 781.96, + "stock_quantity": 955 + }, + "customer": { + "name": "Terry Smith", + "age": 36, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Mcguire-Henderson", + "sector": "LLC", + "founded_year": "1978" + }, + "product": { + "name": "answer", + "category": "certainly", + "price": 371.13, + "stock_quantity": 509 + }, + "customer": { + "name": "William Martinez", + "age": 67, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Brown, Chaney and Alexander", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "across", + "category": "truth", + "price": 714.15, + "stock_quantity": 448 + }, + "customer": { + "name": "Brittany Wells", + "age": 51, + "country": "Liechtenstein" + } + }, + { + "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'", + "company": { + "name": "Newman and Sons", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "recently", + "category": "such", + "price": 129.88, + "stock_quantity": 842 + }, + "customer": { + "name": "Gregory Lutz", + "age": 36, + "country": "Montenegro" + } + }, + { + "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'", + "company": { + "name": "Riley, Butler and Chase", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "theory", + "category": "bill", + "price": 880.38, + "stock_quantity": 54 + }, + "customer": { + "name": "Sabrina Castillo", + "age": 24, + "country": "Grenada" + } + }, + { + "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", + "company": { + "name": "Spears-Hawkins", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "into", + "category": "she", + "price": 505.27, + "stock_quantity": 741 + }, + "customer": { + "name": "Timothy Andersen", + "age": 37, + "country": "Myanmar" + } + }, + { + "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", + "company": { + "name": "White, Carroll and Simmons", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "also", + "category": "color", + "price": 808.16, + "stock_quantity": 413 + }, + "customer": { + "name": "Robert Gardner", + "age": 38, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Anderson-Garner", + "sector": "and Sons", + "founded_year": "1986" + }, + "product": { + "name": "job", + "category": "discussion", + "price": 379.7, + "stock_quantity": 162 + }, + "customer": { + "name": "William Foster", + "age": 69, + "country": "Korea" + } + }, + { + "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'", + "company": { + "name": "Spencer-Jones", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "business", + "category": "conference", + "price": 924.31, + "stock_quantity": 166 + }, + "customer": { + "name": "Kelly Weaver", + "age": 37, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Harris PLC", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "note", + "category": "color", + "price": 542.92, + "stock_quantity": 703 + }, + "customer": { + "name": "Martha Rivers", + "age": 40, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "natural_query": "What is the total quantity for each category in Martinez, Hernandez and Kelly?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Martinez, Hernandez and Kelly' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Martinez, Hernandez and Kelly", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "customer", + "category": "institution", + "price": 631.18, + "stock_quantity": 675 + }, + "customer": { + "name": "Paula Wang", + "age": 55, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "PLC", + "founded_year": "1985" + }, + "product": { + "name": "man", + "category": "gas", + "price": 966.71, + "stock_quantity": 245 + }, + "customer": { + "name": "Jennifer Mendoza", + "age": 60, + "country": "Brunei Darussalam" + } + }, + { + "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'", + "company": { + "name": "Snyder-Wright", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "even", + "category": "beyond", + "price": 422.56, + "stock_quantity": 136 + }, + "customer": { + "name": "Christine Hunt", + "age": 48, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Simpson PLC", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "fire", + "category": "herself", + "price": 670.91, + "stock_quantity": 49 + }, + "customer": { + "name": "Shelley Ward", + "age": 65, + "country": "Kuwait" + } + }, + { + "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", + "company": { + "name": "Morgan, Estrada and Taylor", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "fast", + "category": "imagine", + "price": 167.96, + "stock_quantity": 889 + }, + "customer": { + "name": "William Butler", + "age": 56, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Mathews Inc", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "analysis", + "category": "wide", + "price": 695.77, + "stock_quantity": 318 + }, + "customer": { + "name": "Juan Peters", + "age": 63, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Sanford LLC", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "deep", + "category": "look", + "price": 664.6, + "stock_quantity": 420 + }, + "customer": { + "name": "Alicia Torres", + "age": 37, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Wise, Thompson and Campbell", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "size", + "category": "maybe", + "price": 550.51, + "stock_quantity": 807 + }, + "customer": { + "name": "Cory Harrell", + "age": 57, + "country": "Kiribati" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brown-Perry'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brown-Perry", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "consider", + "category": "court", + "price": 654.42, + "stock_quantity": 305 + }, + "customer": { + "name": "Robert Ward", + "age": 78, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Blanchard-Casey", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "discussion", + "category": "right", + "price": 382.28, + "stock_quantity": 641 + }, + "customer": { + "name": "George Grant", + "age": 50, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Mcintyre LLC", + "sector": "LLC", + "founded_year": "2006" + }, + "product": { + "name": "program", + "category": "consider", + "price": 705.85, + "stock_quantity": 553 + }, + "customer": { + "name": "Melissa Strickland", + "age": 20, + "country": "Swaziland" + } + }, + { + "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", + "company": { + "name": "Greene, Spencer and Reyes", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "note", + "category": "sit", + "price": 28.51, + "stock_quantity": 273 + }, + "customer": { + "name": "Paul Watkins", + "age": 59, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Watkins LLC", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "both", + "category": "strategy", + "price": 799.79, + "stock_quantity": 673 + }, + "customer": { + "name": "Elizabeth Lyons", + "age": 25, + "country": "Hong Kong" + } + }, + { + "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'", + "company": { + "name": "Wood-Fuentes", + "sector": "LLC", + "founded_year": "2003" + }, + "product": { + "name": "first", + "category": "ask", + "price": 975.87, + "stock_quantity": 496 + }, + "customer": { + "name": "Nancy Rivera", + "age": 55, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Williams, Dodson and Mcbride", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "cell", + "category": "model", + "price": 27.26, + "stock_quantity": 716 + }, + "customer": { + "name": "Eric Frey", + "age": 47, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Whitaker-Lara", + "sector": "Ltd", + "founded_year": "2003" + }, + "product": { + "name": "least", + "category": "behind", + "price": 615.21, + "stock_quantity": 453 + }, + "customer": { + "name": "Maria Fritz", + "age": 30, + "country": "Kazakhstan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mason LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mason LLC", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "participant", + "category": "green", + "price": 348.91, + "stock_quantity": 806 + }, + "customer": { + "name": "Cynthia Soto", + "age": 31, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Reed Inc", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "school", + "category": "American", + "price": 535.62, + "stock_quantity": 15 + }, + "customer": { + "name": "Keith Welch", + "age": 56, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Turner, Johnson and Rodriguez", + "sector": "and Sons", + "founded_year": "2005" + }, + "product": { + "name": "nor", + "category": "voice", + "price": 433.33, + "stock_quantity": 366 + }, + "customer": { + "name": "Jennifer Lopez", + "age": 52, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Robinson-Lucas", + "sector": "PLC", + "founded_year": "1990" + }, + "product": { + "name": "we", + "category": "stock", + "price": 441.31, + "stock_quantity": 564 + }, + "customer": { + "name": "Danielle Duncan", + "age": 48, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Mathis Inc", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "stop", + "category": "market", + "price": 245.23, + "stock_quantity": 156 + }, + "customer": { + "name": "Elizabeth Anderson", + "age": 41, + "country": "Mexico" + } + }, + { + "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", + "company": { + "name": "Snow-Lindsey", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "detail", + "category": "get", + "price": 378.1, + "stock_quantity": 536 + }, + "customer": { + "name": "Samuel Dudley", + "age": 30, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Barrett-Joyce", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "half", + "category": "prove", + "price": 448.33, + "stock_quantity": 338 + }, + "customer": { + "name": "Jeffery Mitchell", + "age": 18, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Williams-Scott", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "low", + "category": "run", + "price": 18.6, + "stock_quantity": 206 + }, + "customer": { + "name": "Tim Bryant", + "age": 28, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Watkins Inc", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "until", + "category": "situation", + "price": 546.64, + "stock_quantity": 27 + }, + "customer": { + "name": "Darlene Williams", + "age": 44, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Ross-Gutierrez", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "dark", + "category": "performance", + "price": 492.0, + "stock_quantity": 449 + }, + "customer": { + "name": "Joseph Hall", + "age": 75, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Smith-Gomez", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "particularly", + "category": "red", + "price": 282.92, + "stock_quantity": 23 + }, + "customer": { + "name": "Erica Larson", + "age": 56, + "country": "Dominican Republic" + } + }, + { + "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", + "company": { + "name": "Harper, Barrett and Campbell", + "sector": "and Sons", + "founded_year": "1992" + }, + "product": { + "name": "live", + "category": "increase", + "price": 923.79, + "stock_quantity": 672 + }, + "customer": { + "name": "Paul Mccarty Jr.", + "age": 42, + "country": "Nicaragua" + } + }, + { + "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'", + "company": { + "name": "Kelly, Golden and Lane", + "sector": "Ltd", + "founded_year": "2000" + }, + "product": { + "name": "line", + "category": "member", + "price": 703.91, + "stock_quantity": 332 + }, + "customer": { + "name": "Maria Russell", + "age": 53, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Dawson, Saunders and Benson", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "success", + "category": "generation", + "price": 87.46, + "stock_quantity": 452 + }, + "customer": { + "name": "Jenna Castillo", + "age": 26, + "country": "Tuvalu" + } + }, + { + "natural_query": "What are the top 4 products by customers for Huber Inc last quarter?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Huber Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4", + "company": { + "name": "Huber Inc", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "about", + "category": "us", + "price": 298.27, + "stock_quantity": 464 + }, + "customer": { + "name": "Cynthia Noble", + "age": 26, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Escobar-Smith", + "sector": "Group", + "founded_year": "1977" + }, + "product": { + "name": "everybody", + "category": "economic", + "price": 784.23, + "stock_quantity": 80 + }, + "customer": { + "name": "Ray Holland", + "age": 58, + "country": "Ukraine" + } + }, + { + "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", + "company": { + "name": "Wright-Bass", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "do", + "category": "role", + "price": 617.92, + "stock_quantity": 733 + }, + "customer": { + "name": "Amanda Anderson", + "age": 71, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Wilson Inc", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "choice", + "category": "various", + "price": 880.43, + "stock_quantity": 686 + }, + "customer": { + "name": "Michael Carpenter", + "age": 63, + "country": "Norfolk Island" + } + }, + { + "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'", + "company": { + "name": "Banks-Ross", + "sector": "and Sons", + "founded_year": "1991" + }, + "product": { + "name": "actually", + "category": "animal", + "price": 808.89, + "stock_quantity": 756 + }, + "customer": { + "name": "Karen Owens", + "age": 35, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Butler Group", + "sector": "PLC", + "founded_year": "1981" + }, + "product": { + "name": "part", + "category": "age", + "price": 154.78, + "stock_quantity": 597 + }, + "customer": { + "name": "Tom Perez", + "age": 69, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Fitzpatrick-Wood", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "they", + "category": "often", + "price": 78.22, + "stock_quantity": 278 + }, + "customer": { + "name": "Melissa Good", + "age": 59, + "country": "Kazakhstan" + } + }, + { + "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'", + "company": { + "name": "Nguyen LLC", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "common", + "category": "care", + "price": 532.33, + "stock_quantity": 408 + }, + "customer": { + "name": "Nicholas Davenport", + "age": 44, + "country": "Argentina" + } + }, + { + "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", + "company": { + "name": "Washington-Herrera", + "sector": "PLC", + "founded_year": "1997" + }, + "product": { + "name": "on", + "category": "specific", + "price": 323.86, + "stock_quantity": 612 + }, + "customer": { + "name": "Steven Briggs", + "age": 51, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Wolf, Boone and Rogers", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "surface", + "category": "black", + "price": 177.18, + "stock_quantity": 127 + }, + "customer": { + "name": "Tracy Ryan", + "age": 50, + "country": "Belgium" + } + }, + { + "natural_query": "What is the total sales for each supplier in Ray-Pearson?", + "sql_query": "SELECT supplier, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ray-Pearson' GROUP BY supplier ORDER BY total_sales DESC", + "company": { + "name": "Ray-Pearson", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "identify", + "category": "city", + "price": 997.04, + "stock_quantity": 702 + }, + "customer": { + "name": "Christopher Costa", + "age": 72, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Best-Nichols", + "sector": "and Sons", + "founded_year": "2013" + }, + "product": { + "name": "leg", + "category": "campaign", + "price": 327.54, + "stock_quantity": 730 + }, + "customer": { + "name": "James Sullivan", + "age": 53, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Fernandez-Smith", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "open", + "category": "top", + "price": 183.52, + "stock_quantity": 859 + }, + "customer": { + "name": "Jason Jackson", + "age": 68, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Jackson and Sons", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "best", + "category": "no", + "price": 352.87, + "stock_quantity": 992 + }, + "customer": { + "name": "Laura Contreras", + "age": 22, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Lowe and Sons", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "so", + "category": "easy", + "price": 250.84, + "stock_quantity": 211 + }, + "customer": { + "name": "Cassie Smith", + "age": 39, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Harper, Parker and Holmes", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "cell", + "category": "near", + "price": 449.75, + "stock_quantity": 861 + }, + "customer": { + "name": "Matthew Casey", + "age": 47, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Willis LLC", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "food", + "category": "often", + "price": 453.4, + "stock_quantity": 165 + }, + "customer": { + "name": "Debbie Randolph", + "age": 55, + "country": "Cote d'Ivoire" + } + }, + { + "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", + "company": { + "name": "Thomas PLC", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "knowledge", + "category": "allow", + "price": 632.47, + "stock_quantity": 177 + }, + "customer": { + "name": "Kimberly Gardner", + "age": 78, + "country": "Montserrat" + } + }, + { + "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", + "company": { + "name": "Miller, Gay and Rowland", + "sector": "Inc", + "founded_year": "1974" + }, + "product": { + "name": "their", + "category": "top", + "price": 572.94, + "stock_quantity": 272 + }, + "customer": { + "name": "Sheila Williams", + "age": 25, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Gutierrez-Wyatt", + "sector": "Inc", + "founded_year": "2016" + }, + "product": { + "name": "ability", + "category": "black", + "price": 643.92, + "stock_quantity": 106 + }, + "customer": { + "name": "Jessica Reid", + "age": 28, + "country": "Jamaica" + } + }, + { + "natural_query": "What are the top 10 products by customers for Wilson, Thomas and Davis all time?", + "sql_query": "SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Wilson, Thomas and Davis' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 10", + "company": { + "name": "Wilson, Thomas and Davis", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "perform", + "category": "information", + "price": 643.94, + "stock_quantity": 710 + }, + "customer": { + "name": "Amanda Owen", + "age": 43, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Frye Inc", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "network", + "category": "commercial", + "price": 234.32, + "stock_quantity": 240 + }, + "customer": { + "name": "John Weber", + "age": 68, + "country": "Haiti" + } + }, + { + "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", + "company": { + "name": "Owens-Fowler", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "artist", + "category": "cut", + "price": 46.63, + "stock_quantity": 725 + }, + "customer": { + "name": "Troy Willis", + "age": 60, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Johnson-Galvan", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "technology", + "category": "notice", + "price": 139.54, + "stock_quantity": 44 + }, + "customer": { + "name": "Justin Dunlap", + "age": 19, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Jones Ltd", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "case", + "category": "team", + "price": 825.93, + "stock_quantity": 37 + }, + "customer": { + "name": "Elizabeth Pierce", + "age": 74, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Dunn, Singh and Wilkins", + "sector": "LLC", + "founded_year": "1970" + }, + "product": { + "name": "if", + "category": "method", + "price": 414.44, + "stock_quantity": 309 + }, + "customer": { + "name": "Pamela Rogers", + "age": 67, + "country": "Holy See (Vatican City State)" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davidson-Boyd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davidson-Boyd", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "me", + "category": "security", + "price": 863.67, + "stock_quantity": 126 + }, + "customer": { + "name": "Kaitlyn Walters", + "age": 46, + "country": "Central African Republic" + } + }, + { + "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'", + "company": { + "name": "Perry-Drake", + "sector": "Group", + "founded_year": "1973" + }, + "product": { + "name": "final", + "category": "want", + "price": 444.04, + "stock_quantity": 386 + }, + "customer": { + "name": "Jonathan Lee", + "age": 46, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Parks, Arias and Moore", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "buy", + "category": "four", + "price": 284.67, + "stock_quantity": 957 + }, + "customer": { + "name": "Courtney Cummings", + "age": 40, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Walters-Schneider", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "local", + "category": "campaign", + "price": 549.42, + "stock_quantity": 836 + }, + "customer": { + "name": "Zachary Howard", + "age": 35, + "country": "Dominican Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcguire LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcguire LLC", + "sector": "LLC", + "founded_year": "1983" + }, + "product": { + "name": "one", + "category": "yet", + "price": 554.4, + "stock_quantity": 799 + }, + "customer": { + "name": "Elizabeth Steele", + "age": 59, + "country": "Peru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith-Hudson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith-Hudson", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "and", + "category": "then", + "price": 260.89, + "stock_quantity": 395 + }, + "customer": { + "name": "David Wilson", + "age": 49, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Hooper LLC", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "paper", + "category": "money", + "price": 284.98, + "stock_quantity": 359 + }, + "customer": { + "name": "Robert Lynch", + "age": 71, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Lawrence Group", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "nature", + "category": "everything", + "price": 38.41, + "stock_quantity": 720 + }, + "customer": { + "name": "Kristin Hernandez", + "age": 79, + "country": "Vanuatu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Best Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Best Group", + "sector": "PLC", + "founded_year": "2011" + }, + "product": { + "name": "rule", + "category": "possible", + "price": 536.79, + "stock_quantity": 771 + }, + "customer": { + "name": "Steven Gilbert", + "age": 80, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Franco-Mccall", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "say", + "category": "people", + "price": 986.1, + "stock_quantity": 767 + }, + "customer": { + "name": "Stephanie Jenkins", + "age": 18, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Diaz-Vazquez", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "prevent", + "category": "difficult", + "price": 499.13, + "stock_quantity": 67 + }, + "customer": { + "name": "Benjamin Hensley", + "age": 75, + "country": "Guam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Davidson-Dixon'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Davidson-Dixon", + "sector": "LLC", + "founded_year": "2005" + }, + "product": { + "name": "view", + "category": "left", + "price": 30.81, + "stock_quantity": 424 + }, + "customer": { + "name": "Victoria Roberts", + "age": 39, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Smith-Watts", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "interest", + "category": "course", + "price": 471.5, + "stock_quantity": 993 + }, + "customer": { + "name": "Lisa Warren", + "age": 39, + "country": "Rwanda" + } + }, + { + "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'", + "company": { + "name": "White Inc", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "middle", + "category": "carry", + "price": 501.47, + "stock_quantity": 28 + }, + "customer": { + "name": "Richard Taylor", + "age": 60, + "country": "Albania" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Thompson-Hall for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Thompson-Hall'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Thompson-Hall", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "head", + "category": "goal", + "price": 21.54, + "stock_quantity": 774 + }, + "customer": { + "name": "Deborah Davis", + "age": 36, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Thompson, Anderson and Mueller", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "brother", + "category": "letter", + "price": 857.02, + "stock_quantity": 270 + }, + "customer": { + "name": "Paige Parks", + "age": 68, + "country": "United States Minor Outlying Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sandoval, Wright and Richardson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sandoval, Wright and Richardson", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "however", + "category": "risk", + "price": 214.1, + "stock_quantity": 418 + }, + "customer": { + "name": "Debra Bauer", + "age": 51, + "country": "Monaco" + } + }, + { + "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", + "company": { + "name": "Smith, Bell and Welch", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "top", + "category": "politics", + "price": 484.96, + "stock_quantity": 922 + }, + "customer": { + "name": "Tasha Chandler", + "age": 43, + "country": "Canada" + } + }, + { + "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", + "company": { + "name": "Brewer, Jackson and Whitehead", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "lose", + "category": "table", + "price": 329.78, + "stock_quantity": 94 + }, + "customer": { + "name": "Rita Schwartz", + "age": 23, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "Case and Sons", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "although", + "category": "effort", + "price": 736.79, + "stock_quantity": 372 + }, + "customer": { + "name": "Mathew Gonzalez", + "age": 44, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Rowe and Sons", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "run", + "category": "hard", + "price": 561.26, + "stock_quantity": 514 + }, + "customer": { + "name": "Melissa Smith", + "age": 41, + "country": "French Polynesia" + } + }, + { + "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", + "company": { + "name": "Meyers LLC", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "painting", + "category": "interesting", + "price": 118.01, + "stock_quantity": 734 + }, + "customer": { + "name": "Christina Stevens", + "age": 60, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Howe, Fisher and Hall", + "sector": "Group", + "founded_year": "1999" + }, + "product": { + "name": "magazine", + "category": "person", + "price": 944.62, + "stock_quantity": 133 + }, + "customer": { + "name": "Scott Douglas PhD", + "age": 27, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Romero, Wilcox and Williams", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "business", + "category": "side", + "price": 873.37, + "stock_quantity": 899 + }, + "customer": { + "name": "Stephanie Mason", + "age": 68, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Pena and Sons", + "sector": "Group", + "founded_year": "1983" + }, + "product": { + "name": "two", + "category": "score", + "price": 812.67, + "stock_quantity": 670 + }, + "customer": { + "name": "Carol Williams", + "age": 41, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Watson", + "sector": "Inc", + "founded_year": "2008" + }, + "product": { + "name": "five", + "category": "event", + "price": 162.58, + "stock_quantity": 864 + }, + "customer": { + "name": "Danny Miles", + "age": 61, + "country": "Lesotho" + } + }, + { + "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", + "company": { + "name": "Thomas and Sons", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "face", + "category": "majority", + "price": 651.01, + "stock_quantity": 641 + }, + "customer": { + "name": "Kenneth Williams", + "age": 23, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "King-Winters", + "sector": "Group", + "founded_year": "2012" + }, + "product": { + "name": "never", + "category": "point", + "price": 517.24, + "stock_quantity": 641 + }, + "customer": { + "name": "Kathleen Cohen", + "age": 59, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Crawford, Gonzalez and Lynch", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "else", + "category": "certainly", + "price": 339.34, + "stock_quantity": 557 + }, + "customer": { + "name": "Kimberly Raymond", + "age": 62, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Whitaker, Rasmussen and Stone", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "energy", + "category": "board", + "price": 402.73, + "stock_quantity": 269 + }, + "customer": { + "name": "Erik Rowe", + "age": 26, + "country": "Sweden" + } + }, + { + "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'", + "company": { + "name": "Decker-Walker", + "sector": "PLC", + "founded_year": "2017" + }, + "product": { + "name": "then", + "category": "really", + "price": 13.88, + "stock_quantity": 413 + }, + "customer": { + "name": "David Reyes", + "age": 66, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Murphy, Rogers and Rowland", + "sector": "and Sons", + "founded_year": "1988" + }, + "product": { + "name": "give", + "category": "suggest", + "price": 339.49, + "stock_quantity": 874 + }, + "customer": { + "name": "William Parsons", + "age": 21, + "country": "Cayman Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shields-Ferguson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shields-Ferguson", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "impact", + "category": "never", + "price": 783.02, + "stock_quantity": 362 + }, + "customer": { + "name": "Kristina Mccormick", + "age": 66, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Ferguson and Sons", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "order", + "category": "dark", + "price": 155.89, + "stock_quantity": 18 + }, + "customer": { + "name": "David Schmidt", + "age": 72, + "country": "Mozambique" + } + }, + { + "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'", + "company": { + "name": "Petty LLC", + "sector": "Ltd", + "founded_year": "1997" + }, + "product": { + "name": "another", + "category": "like", + "price": 175.18, + "stock_quantity": 424 + }, + "customer": { + "name": "Cindy Higgins", + "age": 69, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Mejia, Burns and Weiss", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "bed", + "category": "realize", + "price": 721.13, + "stock_quantity": 902 + }, + "customer": { + "name": "Christina Flores", + "age": 41, + "country": "Liechtenstein" + } + }, + { + "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'", + "company": { + "name": "Jones PLC", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "imagine", + "category": "go", + "price": 489.1, + "stock_quantity": 543 + }, + "customer": { + "name": "David Sutton", + "age": 37, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Lee PLC", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "technology", + "category": "forget", + "price": 412.02, + "stock_quantity": 825 + }, + "customer": { + "name": "Kelsey Edwards", + "age": 48, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Jackson, Rogers and Long", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "friend", + "category": "always", + "price": 726.34, + "stock_quantity": 116 + }, + "customer": { + "name": "Scott Lewis", + "age": 25, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Rodgers-Smith", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "thought", + "category": "safe", + "price": 248.07, + "stock_quantity": 695 + }, + "customer": { + "name": "Sean Brown", + "age": 55, + "country": "Cote d'Ivoire" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Shah Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Shah Group", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "heart", + "category": "brother", + "price": 570.69, + "stock_quantity": 95 + }, + "customer": { + "name": "Heather Mitchell", + "age": 36, + "country": "Lebanon" + } + }, + { + "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'", + "company": { + "name": "Allen-Lawrence", + "sector": "LLC", + "founded_year": "1991" + }, + "product": { + "name": "community", + "category": "cost", + "price": 977.04, + "stock_quantity": 383 + }, + "customer": { + "name": "Bradley Jones", + "age": 35, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Hensley PLC", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "avoid", + "category": "take", + "price": 183.96, + "stock_quantity": 943 + }, + "customer": { + "name": "Stephen Santana", + "age": 50, + "country": "Slovenia" + } + }, + { + "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", + "company": { + "name": "Peterson, Burgess and Goodman", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "government", + "category": "far", + "price": 235.18, + "stock_quantity": 475 + }, + "customer": { + "name": "Mrs. Holly Khan DVM", + "age": 19, + "country": "China" + } + }, + { + "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'", + "company": { + "name": "Hughes-Shaw", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "young", + "category": "worker", + "price": 891.39, + "stock_quantity": 577 + }, + "customer": { + "name": "Kelly Werner", + "age": 55, + "country": "France" + } + }, + { + "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", + "company": { + "name": "Reyes Ltd", + "sector": "PLC", + "founded_year": "2006" + }, + "product": { + "name": "president", + "category": "market", + "price": 837.35, + "stock_quantity": 906 + }, + "customer": { + "name": "Elizabeth Brown", + "age": 54, + "country": "Taiwan" + } + }, + { + "natural_query": "How many orders were placed for Savage Inc between 2024-01-11 and 2024-08-12?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Savage Inc' AND order_date BETWEEN '2024-01-11' AND '2024-08-12'", + "company": { + "name": "Savage Inc", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "strong", + "category": "wish", + "price": 544.2, + "stock_quantity": 487 + }, + "customer": { + "name": "Anita Rivera", + "age": 23, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Le LLC", + "sector": "and Sons", + "founded_year": "2023" + }, + "product": { + "name": "wind", + "category": "experience", + "price": 977.52, + "stock_quantity": 133 + }, + "customer": { + "name": "Lisa Rogers", + "age": 37, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Ward and Sons", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "half", + "category": "course", + "price": 581.53, + "stock_quantity": 934 + }, + "customer": { + "name": "Tina Davis", + "age": 54, + "country": "Aruba" + } + }, + { + "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", + "company": { + "name": "Miller-Collins", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "end", + "category": "pressure", + "price": 231.22, + "stock_quantity": 312 + }, + "customer": { + "name": "Rebecca Moreno", + "age": 26, + "country": "Kenya" + } + }, + { + "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'", + "company": { + "name": "Allen PLC", + "sector": "Ltd", + "founded_year": "1988" + }, + "product": { + "name": "view", + "category": "summer", + "price": 252.83, + "stock_quantity": 426 + }, + "customer": { + "name": "Tiffany Spencer", + "age": 41, + "country": "Botswana" + } + }, + { + "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", + "company": { + "name": "Nelson Inc", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "manage", + "category": "buy", + "price": 739.08, + "stock_quantity": 602 + }, + "customer": { + "name": "James Watson", + "age": 25, + "country": "France" + } + }, + { + "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'", + "company": { + "name": "Quinn-Carter", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "run", + "category": "themselves", + "price": 419.42, + "stock_quantity": 548 + }, + "customer": { + "name": "Julie Flores", + "age": 21, + "country": "Italy" + } + }, + { + "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", + "company": { + "name": "Duke, Fisher and Lewis", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "direction", + "category": "question", + "price": 494.01, + "stock_quantity": 118 + }, + "customer": { + "name": "Willie Payne", + "age": 35, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Page-Hart", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "lawyer", + "category": "action", + "price": 872.88, + "stock_quantity": 394 + }, + "customer": { + "name": "Carolyn Cooper", + "age": 21, + "country": "Portugal" + } + }, + { + "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'", + "company": { + "name": "Schroeder-Perry", + "sector": "and Sons", + "founded_year": "2002" + }, + "product": { + "name": "wife", + "category": "democratic", + "price": 875.77, + "stock_quantity": 762 + }, + "customer": { + "name": "Jason Fuentes", + "age": 75, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Smith-Garcia", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "size", + "category": "career", + "price": 933.92, + "stock_quantity": 134 + }, + "customer": { + "name": "Cheyenne Moore", + "age": 18, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Murphy, Campos and Ward", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "up", + "category": "defense", + "price": 368.03, + "stock_quantity": 439 + }, + "customer": { + "name": "Blake Graham", + "age": 71, + "country": "Dominican Republic" + } + }, + { + "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'", + "company": { + "name": "Clark-Jones", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "leader", + "category": "minute", + "price": 259.27, + "stock_quantity": 788 + }, + "customer": { + "name": "Robert Wallace", + "age": 61, + "country": "American Samoa" + } + }, + { + "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'", + "company": { + "name": "Thomas-York", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "manage", + "category": "marriage", + "price": 249.78, + "stock_quantity": 759 + }, + "customer": { + "name": "Jennifer Morgan", + "age": 74, + "country": "Germany" + } + }, + { + "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'", + "company": { + "name": "Hall, Morgan and Decker", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "compare", + "category": "leader", + "price": 689.2, + "stock_quantity": 301 + }, + "customer": { + "name": "Angela Kelley", + "age": 76, + "country": "Reunion" + } + }, + { + "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", + "company": { + "name": "Malone-Bates", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "board", + "category": "ability", + "price": 323.81, + "stock_quantity": 554 + }, + "customer": { + "name": "Christina Price", + "age": 20, + "country": "Burkina Faso" + } + }, + { + "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'", + "company": { + "name": "Ruiz LLC", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "fine", + "category": "pay", + "price": 804.03, + "stock_quantity": 216 + }, + "customer": { + "name": "Michael Flores", + "age": 73, + "country": "Mozambique" + } + }, + { + "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", + "company": { + "name": "Hamilton Inc", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "apply", + "category": "suffer", + "price": 104.61, + "stock_quantity": 762 + }, + "customer": { + "name": "Elizabeth Andersen", + "age": 59, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Hill Inc", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "rule", + "category": "any", + "price": 862.65, + "stock_quantity": 544 + }, + "customer": { + "name": "Parker Martin", + "age": 39, + "country": "Djibouti" + } + }, + { + "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'", + "company": { + "name": "Wilkinson, Smith and Mack", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "upon", + "category": "in", + "price": 686.36, + "stock_quantity": 585 + }, + "customer": { + "name": "Angela Robertson", + "age": 28, + "country": "Kuwait" + } + }, + { + "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'", + "company": { + "name": "Stevens, Moody and Pena", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "black", + "category": "my", + "price": 329.41, + "stock_quantity": 276 + }, + "customer": { + "name": "James French", + "age": 48, + "country": "Saint Martin" + } + }, + { + "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", + "company": { + "name": "Howe-Shea", + "sector": "LLC", + "founded_year": "2022" + }, + "product": { + "name": "nature", + "category": "speech", + "price": 764.92, + "stock_quantity": 390 + }, + "customer": { + "name": "Derrick Lee", + "age": 37, + "country": "Turkey" + } + }, + { + "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'", + "company": { + "name": "Ross-Ellison", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "quickly", + "category": "difference", + "price": 348.8, + "stock_quantity": 275 + }, + "customer": { + "name": "Gabriel Mullins", + "age": 58, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Case Group", + "sector": "Inc", + "founded_year": "1998" + }, + "product": { + "name": "likely", + "category": "approach", + "price": 600.43, + "stock_quantity": 804 + }, + "customer": { + "name": "Amy Gonzales", + "age": 70, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Romero-Mccann", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "explain", + "category": "movement", + "price": 168.56, + "stock_quantity": 798 + }, + "customer": { + "name": "Janice Patterson", + "age": 65, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Cox, Kim and Martinez", + "sector": "and Sons", + "founded_year": "1983" + }, + "product": { + "name": "behavior", + "category": "wear", + "price": 465.68, + "stock_quantity": 392 + }, + "customer": { + "name": "Rhonda Garcia", + "age": 43, + "country": "Seychelles" + } + }, + { + "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", + "company": { + "name": "Arnold-Davis", + "sector": "Ltd", + "founded_year": "2019" + }, + "product": { + "name": "born", + "category": "pattern", + "price": 273.4, + "stock_quantity": 585 + }, + "customer": { + "name": "Jeffery Jackson", + "age": 64, + "country": "Micronesia" + } + }, + { + "natural_query": "What is the maximum price of all products for Jackson-Wilson?", + "sql_query": "SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Jackson-Wilson'", + "company": { + "name": "Jackson-Wilson", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "guess", + "category": "dark", + "price": 868.62, + "stock_quantity": 649 + }, + "customer": { + "name": "Hannah Owens", + "age": 67, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Wilkerson-Evans", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "phone", + "category": "else", + "price": 877.79, + "stock_quantity": 672 + }, + "customer": { + "name": "Jerry Thomas", + "age": 26, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Turner-Dorsey", + "sector": "PLC", + "founded_year": "2005" + }, + "product": { + "name": "trouble", + "category": "practice", + "price": 823.34, + "stock_quantity": 663 + }, + "customer": { + "name": "Rachel Rice", + "age": 74, + "country": "Martinique" + } + }, + { + "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", + "company": { + "name": "Hernandez Ltd", + "sector": "Ltd", + "founded_year": "1973" + }, + "product": { + "name": "toward", + "category": "budget", + "price": 375.26, + "stock_quantity": 630 + }, + "customer": { + "name": "Nicholas Kemp", + "age": 24, + "country": "Guyana" + } + }, + { + "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'", + "company": { + "name": "Hicks-Lowe", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "authority", + "category": "firm", + "price": 188.07, + "stock_quantity": 871 + }, + "customer": { + "name": "Felicia Davis", + "age": 43, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Brown LLC", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "possible", + "category": "term", + "price": 739.06, + "stock_quantity": 983 + }, + "customer": { + "name": "Adam Nunez", + "age": 40, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Guzman Inc", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "military", + "category": "item", + "price": 771.88, + "stock_quantity": 158 + }, + "customer": { + "name": "Jon Williams", + "age": 56, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Sloan-Stanton", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "consumer", + "category": "fund", + "price": 255.71, + "stock_quantity": 915 + }, + "customer": { + "name": "Elizabeth Peters", + "age": 18, + "country": "Bulgaria" + } + }, + { + "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'", + "company": { + "name": "Thomas, Hoffman and Wilson", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "house", + "category": "TV", + "price": 792.59, + "stock_quantity": 148 + }, + "customer": { + "name": "Tonya Harvey", + "age": 76, + "country": "British Virgin Islands" + } + }, + { + "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", + "company": { + "name": "James, Green and Ibarra", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "author", + "category": "stuff", + "price": 67.55, + "stock_quantity": 242 + }, + "customer": { + "name": "Timothy Marquez", + "age": 36, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Mason, Lynch and Brown", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "good", + "category": "your", + "price": 752.54, + "stock_quantity": 763 + }, + "customer": { + "name": "Mark Castro", + "age": 47, + "country": "Tuvalu" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wyatt-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wyatt-Johnson", + "sector": "LLC", + "founded_year": "1981" + }, + "product": { + "name": "television", + "category": "nor", + "price": 115.01, + "stock_quantity": 905 + }, + "customer": { + "name": "Amanda Smith", + "age": 36, + "country": "Marshall Islands" + } + }, + { + "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'", + "company": { + "name": "Anderson-Newman", + "sector": "Group", + "founded_year": "2000" + }, + "product": { + "name": "difficult", + "category": "but", + "price": 728.03, + "stock_quantity": 614 + }, + "customer": { + "name": "David Wright", + "age": 68, + "country": "Christmas Island" + } + }, + { + "natural_query": "How many orders were placed for Dunlap, Smith and Mendoza between 2024-07-29 and 2024-08-14?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Dunlap, Smith and Mendoza' AND order_date BETWEEN '2024-07-29' AND '2024-08-14'", + "company": { + "name": "Dunlap, Smith and Mendoza", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "administration", + "category": "discussion", + "price": 316.54, + "stock_quantity": 557 + }, + "customer": { + "name": "Ryan Chavez", + "age": 70, + "country": "Guinea-Bissau" + } + }, + { + "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'", + "company": { + "name": "Calderon, Cain and Soto", + "sector": "LLC", + "founded_year": "2001" + }, + "product": { + "name": "interview", + "category": "drop", + "price": 606.32, + "stock_quantity": 649 + }, + "customer": { + "name": "Cody Shaw", + "age": 74, + "country": "Mongolia" + } + }, + { + "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", + "company": { + "name": "Bradley, Murillo and Harris", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "serve", + "category": "would", + "price": 761.45, + "stock_quantity": 936 + }, + "customer": { + "name": "Christine Cortez", + "age": 54, + "country": "Andorra" + } + }, + { + "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", + "company": { + "name": "Camacho, Davis and Baker", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "environment", + "category": "fill", + "price": 189.62, + "stock_quantity": 935 + }, + "customer": { + "name": "Robert Mann", + "age": 37, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Ward, Grimes and Mcguire", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "hear", + "category": "little", + "price": 435.62, + "stock_quantity": 724 + }, + "customer": { + "name": "Brent Myers", + "age": 60, + "country": "Nauru" + } + }, + { + "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", + "company": { + "name": "Phelps Ltd", + "sector": "and Sons", + "founded_year": "2000" + }, + "product": { + "name": "treatment", + "category": "another", + "price": 709.83, + "stock_quantity": 408 + }, + "customer": { + "name": "Joseph Brown", + "age": 79, + "country": "Central African Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Miller, Ingram and Cooke'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Miller, Ingram and Cooke", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "which", + "category": "that", + "price": 284.17, + "stock_quantity": 912 + }, + "customer": { + "name": "Michael Bond", + "age": 42, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reeves and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reeves and Sons", + "sector": "and Sons", + "founded_year": "1990" + }, + "product": { + "name": "table", + "category": "method", + "price": 131.36, + "stock_quantity": 794 + }, + "customer": { + "name": "Darrell Osborne", + "age": 18, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Hansen Ltd", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "base", + "category": "agent", + "price": 550.19, + "stock_quantity": 162 + }, + "customer": { + "name": "Margaret Mcconnell", + "age": 65, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Rivera-White", + "sector": "PLC", + "founded_year": "1975" + }, + "product": { + "name": "official", + "category": "black", + "price": 156.33, + "stock_quantity": 453 + }, + "customer": { + "name": "Mario Hines", + "age": 73, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Barrett, Logan and Williams", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "carry", + "category": "human", + "price": 639.08, + "stock_quantity": 209 + }, + "customer": { + "name": "Elaine Terry", + "age": 78, + "country": "Chile" + } + }, + { + "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'", + "company": { + "name": "Joseph, Dunn and Bell", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "class", + "category": "capital", + "price": 92.59, + "stock_quantity": 147 + }, + "customer": { + "name": "John Anderson", + "age": 57, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Carter-Gamble", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "short", + "category": "admit", + "price": 677.56, + "stock_quantity": 757 + }, + "customer": { + "name": "Amanda Flores", + "age": 58, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Brown, Lynch and Harmon", + "sector": "Group", + "founded_year": "2007" + }, + "product": { + "name": "state", + "category": "by", + "price": 972.86, + "stock_quantity": 675 + }, + "customer": { + "name": "Olivia Gonzalez", + "age": 37, + "country": "Nigeria" + } + }, + { + "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'", + "company": { + "name": "Mclaughlin and Sons", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "through", + "category": "eight", + "price": 518.43, + "stock_quantity": 661 + }, + "customer": { + "name": "Timothy Roberts", + "age": 60, + "country": "Bulgaria" + } + }, + { + "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", + "company": { + "name": "Stokes and Sons", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "current", + "category": "onto", + "price": 934.06, + "stock_quantity": 618 + }, + "customer": { + "name": "Dana Diaz", + "age": 29, + "country": "Estonia" + } + }, + { + "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", + "company": { + "name": "Robertson-Barton", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "wall", + "category": "maintain", + "price": 372.09, + "stock_quantity": 840 + }, + "customer": { + "name": "Dawn Mclaughlin", + "age": 34, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Stephenson-Stewart'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Stephenson-Stewart", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "national", + "category": "company", + "price": 809.98, + "stock_quantity": 905 + }, + "customer": { + "name": "Amanda Cervantes", + "age": 38, + "country": "Puerto Rico" + } + }, + { + "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", + "company": { + "name": "Carter-Wilson", + "sector": "Inc", + "founded_year": "2006" + }, + "product": { + "name": "attention", + "category": "paper", + "price": 873.52, + "stock_quantity": 715 + }, + "customer": { + "name": "Michael Maynard", + "age": 18, + "country": "Armenia" + } + }, + { + "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", + "company": { + "name": "Franklin Group", + "sector": "PLC", + "founded_year": "2019" + }, + "product": { + "name": "democratic", + "category": "tend", + "price": 635.6, + "stock_quantity": 13 + }, + "customer": { + "name": "Billy Wagner", + "age": 24, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Ware Inc", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "miss", + "category": "treat", + "price": 238.98, + "stock_quantity": 22 + }, + "customer": { + "name": "Joseph Hernandez", + "age": 47, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Koch-Maynard", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "TV", + "category": "discussion", + "price": 228.45, + "stock_quantity": 898 + }, + "customer": { + "name": "Mark Lucas", + "age": 24, + "country": "Georgia" + } + }, + { + "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", + "company": { + "name": "Hill-Williams", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "compare", + "category": "describe", + "price": 487.58, + "stock_quantity": 405 + }, + "customer": { + "name": "Johnny Molina", + "age": 30, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Lang-Brown", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "small", + "category": "end", + "price": 190.13, + "stock_quantity": 376 + }, + "customer": { + "name": "Christopher Bryant", + "age": 79, + "country": "Italy" + } + }, + { + "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'", + "company": { + "name": "Ford, Eaton and Hood", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "early", + "category": "natural", + "price": 677.95, + "stock_quantity": 682 + }, + "customer": { + "name": "Theresa Hickman", + "age": 67, + "country": "Cape Verde" + } + }, + { + "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'", + "company": { + "name": "Harris, Williams and Mitchell", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "every", + "category": "argue", + "price": 942.69, + "stock_quantity": 782 + }, + "customer": { + "name": "Michele Bennett", + "age": 31, + "country": "Czech Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Woodard Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Woodard Inc", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "behavior", + "category": "significant", + "price": 705.58, + "stock_quantity": 673 + }, + "customer": { + "name": "Beth Rogers", + "age": 80, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Burgess, Robinson and Rose", + "sector": "Ltd", + "founded_year": "1996" + }, + "product": { + "name": "hot", + "category": "until", + "price": 842.25, + "stock_quantity": 524 + }, + "customer": { + "name": "Rita Lucero DDS", + "age": 44, + "country": "Hong Kong" + } + }, + { + "natural_query": "List all products of Petersen-Wilson ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Petersen-Wilson' ORDER BY rating ASC", + "company": { + "name": "Petersen-Wilson", + "sector": "Inc", + "founded_year": "2019" + }, + "product": { + "name": "wall", + "category": "alone", + "price": 375.91, + "stock_quantity": 372 + }, + "customer": { + "name": "Jacqueline Lawson", + "age": 30, + "country": "Cook Islands" + } + }, + { + "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", + "company": { + "name": "Vargas-Gonzalez", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "respond", + "category": "why", + "price": 409.38, + "stock_quantity": 37 + }, + "customer": { + "name": "Lindsay Gonzalez", + "age": 28, + "country": "British Indian Ocean Territory (Chagos Archipelago)" + } + }, + { + "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", + "company": { + "name": "Turner Group", + "sector": "Group", + "founded_year": "2019" + }, + "product": { + "name": "wall", + "category": "agency", + "price": 53.92, + "stock_quantity": 269 + }, + "customer": { + "name": "Brenda Le", + "age": 71, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Brown-Taylor", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "no", + "category": "always", + "price": 724.39, + "stock_quantity": 692 + }, + "customer": { + "name": "Katie Perez", + "age": 19, + "country": "Turkey" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Arellano, Bradley and Wolfe'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Arellano, Bradley and Wolfe", + "sector": "and Sons", + "founded_year": "1985" + }, + "product": { + "name": "green", + "category": "form", + "price": 966.56, + "stock_quantity": 460 + }, + "customer": { + "name": "Julie Chase", + "age": 24, + "country": "Samoa" + } + }, + { + "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", + "company": { + "name": "Graham-Willis", + "sector": "PLC", + "founded_year": "2013" + }, + "product": { + "name": "compare", + "category": "identify", + "price": 547.01, + "stock_quantity": 516 + }, + "customer": { + "name": "Traci Hale", + "age": 25, + "country": "Tajikistan" + } + }, + { + "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'", + "company": { + "name": "Ramirez, Young and Burnett", + "sector": "LLC", + "founded_year": "1979" + }, + "product": { + "name": "head", + "category": "knowledge", + "price": 814.4, + "stock_quantity": 902 + }, + "customer": { + "name": "Michele Ochoa", + "age": 66, + "country": "Armenia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Gutierrez-White'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Gutierrez-White", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "most", + "category": "tonight", + "price": 148.19, + "stock_quantity": 336 + }, + "customer": { + "name": "Lisa Phillips", + "age": 28, + "country": "Jordan" + } + }, + { + "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", + "company": { + "name": "Morgan-Wilson", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "between", + "category": "key", + "price": 111.88, + "stock_quantity": 690 + }, + "customer": { + "name": "Sandra Collins", + "age": 40, + "country": "Liberia" + } + }, + { + "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'", + "company": { + "name": "Smith, Rice and Mccarthy", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "oil", + "category": "with", + "price": 770.52, + "stock_quantity": 346 + }, + "customer": { + "name": "Tricia Brown", + "age": 61, + "country": "Sudan" + } + }, + { + "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", + "company": { + "name": "Wheeler, Jefferson and Martin", + "sector": "Group", + "founded_year": "2010" + }, + "product": { + "name": "especially", + "category": "movie", + "price": 285.44, + "stock_quantity": 645 + }, + "customer": { + "name": "Bobby Blankenship", + "age": 55, + "country": "Cameroon" + } + }, + { + "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'", + "company": { + "name": "Vega Inc", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "tree", + "category": "require", + "price": 743.36, + "stock_quantity": 258 + }, + "customer": { + "name": "Emily Brown", + "age": 40, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Brown-Stevens", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "message", + "category": "three", + "price": 958.57, + "stock_quantity": 533 + }, + "customer": { + "name": "Tammy Norris", + "age": 29, + "country": "Christmas Island" + } + }, + { + "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", + "company": { + "name": "Russell, Mason and Chang", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "cause", + "category": "than", + "price": 16.4, + "stock_quantity": 90 + }, + "customer": { + "name": "Sara Watkins", + "age": 53, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Evans, Downs and Farrell", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "more", + "category": "report", + "price": 611.33, + "stock_quantity": 728 + }, + "customer": { + "name": "Scott Thompson", + "age": 22, + "country": "Zimbabwe" + } + }, + { + "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'", + "company": { + "name": "Adams-Jackson", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "across", + "category": "tree", + "price": 739.84, + "stock_quantity": 997 + }, + "customer": { + "name": "Christopher Garcia", + "age": 29, + "country": "Czech Republic" + } + }, + { + "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", + "company": { + "name": "Taylor, Gilbert and Garza", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "spring", + "category": "dream", + "price": 543.92, + "stock_quantity": 815 + }, + "customer": { + "name": "Christy Smith", + "age": 36, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Curtis-White", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "father", + "category": "four", + "price": 42.79, + "stock_quantity": 685 + }, + "customer": { + "name": "Sara Alexander", + "age": 56, + "country": "Netherlands Antilles" + } + }, + { + "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'", + "company": { + "name": "Proctor-Holt", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "benefit", + "category": "sport", + "price": 672.33, + "stock_quantity": 144 + }, + "customer": { + "name": "Jonathan Davis", + "age": 77, + "country": "Italy" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Parker and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Parker and Sons", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "cover", + "category": "while", + "price": 18.51, + "stock_quantity": 119 + }, + "customer": { + "name": "John Gould", + "age": 74, + "country": "Saint Kitts and Nevis" + } + }, + { + "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'", + "company": { + "name": "Higgins, Gonzales and Fuller", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "tax", + "category": "evidence", + "price": 150.64, + "stock_quantity": 202 + }, + "customer": { + "name": "Betty Hill", + "age": 24, + "country": "Brazil" + } + }, + { + "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'", + "company": { + "name": "Kent Inc", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "from", + "category": "two", + "price": 593.56, + "stock_quantity": 805 + }, + "customer": { + "name": "Abigail Smith", + "age": 66, + "country": "Uruguay" + } + }, + { + "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'", + "company": { + "name": "Jones Group", + "sector": "and Sons", + "founded_year": "1979" + }, + "product": { + "name": "one", + "category": "most", + "price": 652.26, + "stock_quantity": 551 + }, + "customer": { + "name": "Kevin Harrell", + "age": 53, + "country": "United States of America" + } + }, + { + "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", + "company": { + "name": "Haney and Sons", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "at", + "category": "reduce", + "price": 237.54, + "stock_quantity": 247 + }, + "customer": { + "name": "Julie Patton", + "age": 19, + "country": "Bhutan" + } + }, + { + "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", + "company": { + "name": "Sloan, Castro and Wise", + "sector": "Inc", + "founded_year": "1997" + }, + "product": { + "name": "manager", + "category": "arm", + "price": 435.03, + "stock_quantity": 217 + }, + "customer": { + "name": "Jessica Watkins", + "age": 80, + "country": "United Arab Emirates" + } + }, + { + "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'", + "company": { + "name": "Waller-Jensen", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "lay", + "category": "tough", + "price": 55.02, + "stock_quantity": 431 + }, + "customer": { + "name": "John Foster", + "age": 47, + "country": "Papua New Guinea" + } + }, + { + "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", + "company": { + "name": "Hodges, Reilly and Snyder", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "it", + "category": "within", + "price": 355.56, + "stock_quantity": 138 + }, + "customer": { + "name": "Donald Brown", + "age": 77, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Chapman, Castillo and Mata", + "sector": "and Sons", + "founded_year": "1999" + }, + "product": { + "name": "remember", + "category": "test", + "price": 425.84, + "stock_quantity": 257 + }, + "customer": { + "name": "Thomas Reed", + "age": 18, + "country": "Slovenia" + } + }, + { + "natural_query": "What are the top 9 products by orders for Dunn-Smith last quarter?", + "sql_query": "SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Dunn-Smith' AND period = 'last quarter' GROUP BY product_name ORDER BY total_orders DESC LIMIT 9", + "company": { + "name": "Dunn-Smith", + "sector": "Ltd", + "founded_year": "1999" + }, + "product": { + "name": "point", + "category": "minute", + "price": 309.47, + "stock_quantity": 804 + }, + "customer": { + "name": "Becky Warren", + "age": 66, + "country": "Western Sahara" + } + }, + { + "natural_query": "What are the top 10 products by sales for Wilson Inc all time?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Wilson Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10", + "company": { + "name": "Wilson Inc", + "sector": "PLC", + "founded_year": "2021" + }, + "product": { + "name": "computer", + "category": "employee", + "price": 111.31, + "stock_quantity": 762 + }, + "customer": { + "name": "Janet Scott", + "age": 58, + "country": "Dominica" + } + }, + { + "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'", + "company": { + "name": "Reynolds, Jones and Perry", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "accept", + "category": "national", + "price": 434.66, + "stock_quantity": 886 + }, + "customer": { + "name": "Kaitlyn Moreno DDS", + "age": 67, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Robles and Sons", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "low", + "category": "mother", + "price": 227.75, + "stock_quantity": 700 + }, + "customer": { + "name": "Charles Myers", + "age": 64, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Armstrong PLC", + "sector": "and Sons", + "founded_year": "2012" + }, + "product": { + "name": "couple", + "category": "design", + "price": 449.82, + "stock_quantity": 966 + }, + "customer": { + "name": "Jordan Ho", + "age": 67, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Hudson-Hall", + "sector": "Group", + "founded_year": "2004" + }, + "product": { + "name": "notice", + "category": "trouble", + "price": 250.08, + "stock_quantity": 762 + }, + "customer": { + "name": "Meghan Pollard", + "age": 75, + "country": "Moldova" + } + }, + { + "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'", + "company": { + "name": "Gentry, Ho and Anderson", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "power", + "category": "list", + "price": 619.16, + "stock_quantity": 243 + }, + "customer": { + "name": "Javier Malone", + "age": 38, + "country": "El Salvador" + } + }, + { + "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'", + "company": { + "name": "Schneider, Odonnell and Weber", + "sector": "Ltd", + "founded_year": "1978" + }, + "product": { + "name": "point", + "category": "up", + "price": 198.43, + "stock_quantity": 711 + }, + "customer": { + "name": "Katrina Blair", + "age": 33, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Davis, Garrett and Ortiz", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "our", + "category": "less", + "price": 58.89, + "stock_quantity": 629 + }, + "customer": { + "name": "Keith Pacheco", + "age": 71, + "country": "Netherlands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson, Johnson and Murphy'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson, Johnson and Murphy", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "thank", + "category": "learn", + "price": 538.64, + "stock_quantity": 665 + }, + "customer": { + "name": "Cameron Gonzalez", + "age": 45, + "country": "Vietnam" + } + }, + { + "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", + "company": { + "name": "Howell-Owens", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "fight", + "category": "side", + "price": 765.88, + "stock_quantity": 296 + }, + "customer": { + "name": "Carol Reilly", + "age": 18, + "country": "Angola" + } + }, + { + "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", + "company": { + "name": "Gilbert, Nelson and Gomez", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "red", + "category": "develop", + "price": 277.53, + "stock_quantity": 503 + }, + "customer": { + "name": "Benjamin Howard", + "age": 58, + "country": "Gambia" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Smith, Rivera and Davis for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith, Rivera and Davis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith, Rivera and Davis", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "deal", + "category": "provide", + "price": 724.32, + "stock_quantity": 713 + }, + "customer": { + "name": "Steve Williams", + "age": 73, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Ochoa-Brown", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "paper", + "category": "miss", + "price": 266.56, + "stock_quantity": 962 + }, + "customer": { + "name": "Bryan Stevenson", + "age": 31, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Thompson-Gilbert", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "defense", + "category": "child", + "price": 635.24, + "stock_quantity": 274 + }, + "customer": { + "name": "Michael Williamson", + "age": 31, + "country": "Burkina Faso" + } + }, + { + "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", + "company": { + "name": "Smith, Hines and Lane", + "sector": "Inc", + "founded_year": "2023" + }, + "product": { + "name": "since", + "category": "statement", + "price": 707.71, + "stock_quantity": 222 + }, + "customer": { + "name": "Alexander Mckee", + "age": 31, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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", + "company": { + "name": "Jackson, Johnson and Park", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "may", + "category": "her", + "price": 981.21, + "stock_quantity": 199 + }, + "customer": { + "name": "Regina Martin", + "age": 70, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Schultz, Wilson and Vasquez", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "wear", + "category": "southern", + "price": 176.04, + "stock_quantity": 548 + }, + "customer": { + "name": "Natalie Mejia", + "age": 48, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Pena-Parks", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "second", + "category": "focus", + "price": 757.51, + "stock_quantity": 915 + }, + "customer": { + "name": "Brian Brown", + "age": 78, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Farmer, Herring and Mora", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "goal", + "category": "east", + "price": 337.18, + "stock_quantity": 456 + }, + "customer": { + "name": "Crystal Stewart", + "age": 43, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Smith-Ramirez", + "sector": "PLC", + "founded_year": "2024" + }, + "product": { + "name": "that", + "category": "until", + "price": 794.55, + "stock_quantity": 29 + }, + "customer": { + "name": "Rachel Weaver MD", + "age": 68, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Guzman, Carson and Russell", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "participant", + "category": "box", + "price": 710.49, + "stock_quantity": 202 + }, + "customer": { + "name": "Jimmy Johnson", + "age": 24, + "country": "American Samoa" + } + }, + { + "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'", + "company": { + "name": "Johnson, Scott and Myers", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "act", + "category": "travel", + "price": 487.51, + "stock_quantity": 598 + }, + "customer": { + "name": "Jessica Horne", + "age": 25, + "country": "Israel" + } + }, + { + "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'", + "company": { + "name": "Peters, Walter and Tyler", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "contain", + "category": "eight", + "price": 714.15, + "stock_quantity": 601 + }, + "customer": { + "name": "Richard Edwards", + "age": 46, + "country": "Eritrea" + } + }, + { + "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", + "company": { + "name": "Newman-Russell", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "speak", + "category": "whose", + "price": 645.87, + "stock_quantity": 515 + }, + "customer": { + "name": "Kevin Lyons", + "age": 35, + "country": "Palau" + } + }, + { + "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", + "company": { + "name": "Ortiz, Jimenez and King", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "about", + "category": "soldier", + "price": 992.32, + "stock_quantity": 353 + }, + "customer": { + "name": "Amy Webster", + "age": 77, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Wright-Bishop", + "sector": "Inc", + "founded_year": "1981" + }, + "product": { + "name": "speech", + "category": "million", + "price": 816.42, + "stock_quantity": 987 + }, + "customer": { + "name": "Aaron Fisher", + "age": 68, + "country": "South Africa" + } + }, + { + "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'", + "company": { + "name": "Daniels, Ruiz and Roman", + "sector": "PLC", + "founded_year": "2008" + }, + "product": { + "name": "sort", + "category": "all", + "price": 380.46, + "stock_quantity": 584 + }, + "customer": { + "name": "Laura Trujillo", + "age": 36, + "country": "France" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Duffy-West'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Duffy-West", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "draw", + "category": "food", + "price": 949.35, + "stock_quantity": 557 + }, + "customer": { + "name": "William Bates", + "age": 23, + "country": "Solomon Islands" + } + }, + { + "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'", + "company": { + "name": "Paul, Phillips and Dennis", + "sector": "Inc", + "founded_year": "1980" + }, + "product": { + "name": "before", + "category": "shake", + "price": 613.31, + "stock_quantity": 435 + }, + "customer": { + "name": "Leslie Holt", + "age": 25, + "country": "Seychelles" + } + }, + { + "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'", + "company": { + "name": "Marshall-Mccoy", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "sort", + "category": "apply", + "price": 93.6, + "stock_quantity": 70 + }, + "customer": { + "name": "Kimberly Carr", + "age": 63, + "country": "Venezuela" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Garcia, Nelson and Patterson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Garcia, Nelson and Patterson", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "travel", + "category": "garden", + "price": 420.69, + "stock_quantity": 537 + }, + "customer": { + "name": "Danielle Hawkins", + "age": 71, + "country": "Qatar" + } + }, + { + "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'", + "company": { + "name": "Morales, Lucas and Peterson", + "sector": "Inc", + "founded_year": "2004" + }, + "product": { + "name": "factor", + "category": "drug", + "price": 10.37, + "stock_quantity": 541 + }, + "customer": { + "name": "Brett Smith", + "age": 54, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Li, Welch and Kidd", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "network", + "category": "action", + "price": 887.87, + "stock_quantity": 958 + }, + "customer": { + "name": "Joshua Bell PhD", + "age": 46, + "country": "Sweden" + } + }, + { + "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", + "company": { + "name": "Crawford PLC", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "may", + "category": "send", + "price": 669.0, + "stock_quantity": 931 + }, + "customer": { + "name": "Robert Wood", + "age": 62, + "country": "Christmas Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Sawyer Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Sawyer Ltd", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "stay", + "category": "garden", + "price": 802.98, + "stock_quantity": 188 + }, + "customer": { + "name": "Jay Williams", + "age": 74, + "country": "Cambodia" + } + }, + { + "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", + "company": { + "name": "Henderson, Khan and Butler", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "plant", + "category": "risk", + "price": 351.43, + "stock_quantity": 168 + }, + "customer": { + "name": "Mary Reese", + "age": 31, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Brooks, Hickman and Lopez", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "ball", + "category": "free", + "price": 79.86, + "stock_quantity": 942 + }, + "customer": { + "name": "Jessica Adams", + "age": 60, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Morrison and Tucker", + "sector": "LLC", + "founded_year": "1989" + }, + "product": { + "name": "detail", + "category": "after", + "price": 323.09, + "stock_quantity": 174 + }, + "customer": { + "name": "Kristen Stevens", + "age": 20, + "country": "Hungary" + } + }, + { + "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'", + "company": { + "name": "Dixon LLC", + "sector": "PLC", + "founded_year": "2016" + }, + "product": { + "name": "which", + "category": "them", + "price": 668.81, + "stock_quantity": 313 + }, + "customer": { + "name": "Stephen Ayers", + "age": 80, + "country": "Benin" + } + }, + { + "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", + "company": { + "name": "Owens, Campos and Mayer", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "different", + "category": "bit", + "price": 605.83, + "stock_quantity": 530 + }, + "customer": { + "name": "Ashley Molina", + "age": 25, + "country": "India" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nichols Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nichols Ltd", + "sector": "Group", + "founded_year": "2022" + }, + "product": { + "name": "total", + "category": "shake", + "price": 650.0, + "stock_quantity": 783 + }, + "customer": { + "name": "Michael Torres", + "age": 74, + "country": "Turks and Caicos Islands" + } + }, + { + "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", + "company": { + "name": "George, Flynn and Gray", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "protect", + "category": "certain", + "price": 220.77, + "stock_quantity": 698 + }, + "customer": { + "name": "David Hanson", + "age": 19, + "country": "Jersey" + } + }, + { + "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", + "company": { + "name": "Watson, Randall and West", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "authority", + "category": "whom", + "price": 506.77, + "stock_quantity": 4 + }, + "customer": { + "name": "Robert Kelly", + "age": 68, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Gay-Carr", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "across", + "category": "better", + "price": 26.3, + "stock_quantity": 369 + }, + "customer": { + "name": "Christopher Clark", + "age": 24, + "country": "Egypt" + } + }, + { + "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", + "company": { + "name": "Hill, Gonzalez and Schroeder", + "sector": "Ltd", + "founded_year": "1985" + }, + "product": { + "name": "house", + "category": "health", + "price": 967.02, + "stock_quantity": 250 + }, + "customer": { + "name": "Edward Howard", + "age": 45, + "country": "Tokelau" + } + }, + { + "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'", + "company": { + "name": "Chang-Sanchez", + "sector": "Group", + "founded_year": "2024" + }, + "product": { + "name": "rock", + "category": "determine", + "price": 578.9, + "stock_quantity": 35 + }, + "customer": { + "name": "Connor White", + "age": 64, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Mccarty Inc", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "job", + "category": "within", + "price": 775.37, + "stock_quantity": 519 + }, + "customer": { + "name": "Stephen Mcdonald", + "age": 26, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Campbell, Bryant and Peterson", + "sector": "LLC", + "founded_year": "1977" + }, + "product": { + "name": "big", + "category": "fine", + "price": 765.83, + "stock_quantity": 244 + }, + "customer": { + "name": "Catherine Grant", + "age": 41, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Warren-Abbott", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "thousand", + "category": "improve", + "price": 147.97, + "stock_quantity": 940 + }, + "customer": { + "name": "Christina Leblanc", + "age": 66, + "country": "Malaysia" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Nelson, Short and Moore'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Nelson, Short and Moore", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "according", + "category": "minute", + "price": 315.42, + "stock_quantity": 811 + }, + "customer": { + "name": "Terri Bailey", + "age": 24, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Haynes-Collins", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "ahead", + "category": "shoulder", + "price": 497.53, + "stock_quantity": 136 + }, + "customer": { + "name": "Shannon Campos MD", + "age": 47, + "country": "Vanuatu" + } + }, + { + "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'", + "company": { + "name": "Morris-Wilson", + "sector": "Ltd", + "founded_year": "1990" + }, + "product": { + "name": "every", + "category": "animal", + "price": 583.79, + "stock_quantity": 599 + }, + "customer": { + "name": "Justin Hill", + "age": 73, + "country": "Algeria" + } + }, + { + "natural_query": "What is the total profit for each category in Woods Ltd?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Woods Ltd' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Woods Ltd", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "much", + "category": "respond", + "price": 470.11, + "stock_quantity": 925 + }, + "customer": { + "name": "Thomas Harris", + "age": 78, + "country": "French Southern Territories" + } + }, + { + "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", + "company": { + "name": "Weber and Sons", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "operation", + "category": "network", + "price": 607.04, + "stock_quantity": 712 + }, + "customer": { + "name": "Lauren Solis", + "age": 33, + "country": "Nigeria" + } + }, + { + "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", + "company": { + "name": "Williams, Horne and Ruiz", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "my", + "category": "series", + "price": 948.16, + "stock_quantity": 931 + }, + "customer": { + "name": "David Page", + "age": 45, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Lewis, Mayer and Trevino", + "sector": "Inc", + "founded_year": "1971" + }, + "product": { + "name": "create", + "category": "camera", + "price": 206.46, + "stock_quantity": 994 + }, + "customer": { + "name": "Kristy Vargas", + "age": 66, + "country": "Ireland" + } + }, + { + "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'", + "company": { + "name": "Perez-Gillespie", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "provide", + "category": "international", + "price": 365.77, + "stock_quantity": 430 + }, + "customer": { + "name": "Crystal Leach", + "age": 79, + "country": "Algeria" + } + }, + { + "natural_query": "How many orders were placed for Mitchell-Shields between 2024-02-28 and 2024-04-16?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Mitchell-Shields' AND order_date BETWEEN '2024-02-28' AND '2024-04-16'", + "company": { + "name": "Mitchell-Shields", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "fish", + "category": "front", + "price": 901.87, + "stock_quantity": 605 + }, + "customer": { + "name": "Katrina Rice", + "age": 64, + "country": "Wallis and Futuna" + } + }, + { + "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", + "company": { + "name": "Ramsey, Martin and Barr", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "stand", + "category": "food", + "price": 598.68, + "stock_quantity": 257 + }, + "customer": { + "name": "Edward Manning", + "age": 42, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Carlson Ltd", + "sector": "LLC", + "founded_year": "1980" + }, + "product": { + "name": "activity", + "category": "this", + "price": 917.09, + "stock_quantity": 634 + }, + "customer": { + "name": "Cheyenne Griffin", + "age": 39, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Murphy-Coleman'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Murphy-Coleman", + "sector": "Inc", + "founded_year": "2010" + }, + "product": { + "name": "law", + "category": "edge", + "price": 752.67, + "stock_quantity": 664 + }, + "customer": { + "name": "Amy Cummings", + "age": 21, + "country": "Taiwan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez Ltd", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "car", + "category": "property", + "price": 217.2, + "stock_quantity": 683 + }, + "customer": { + "name": "Brent Anderson", + "age": 28, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Mccoy PLC", + "sector": "Group", + "founded_year": "2017" + }, + "product": { + "name": "whom", + "category": "company", + "price": 876.49, + "stock_quantity": 241 + }, + "customer": { + "name": "Theresa Stevenson", + "age": 59, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Flores-Farley", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "help", + "category": "election", + "price": 274.29, + "stock_quantity": 225 + }, + "customer": { + "name": "Krista Byrd", + "age": 22, + "country": "Portugal" + } + }, + { + "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", + "company": { + "name": "Thomas-Kennedy", + "sector": "Ltd", + "founded_year": "1982" + }, + "product": { + "name": "record", + "category": "form", + "price": 914.21, + "stock_quantity": 249 + }, + "customer": { + "name": "Amy Oliver", + "age": 69, + "country": "Angola" + } + }, + { + "natural_query": "List all products of Huynh Inc ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Huynh Inc' ORDER BY price ASC", + "company": { + "name": "Huynh Inc", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "security", + "category": "form", + "price": 534.48, + "stock_quantity": 425 + }, + "customer": { + "name": "Dana Martin", + "age": 36, + "country": "Barbados" + } + }, + { + "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", + "company": { + "name": "Lee-Dominguez", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "federal", + "category": "less", + "price": 284.04, + "stock_quantity": 275 + }, + "customer": { + "name": "John Ross", + "age": 30, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Parker and Sons", + "sector": "and Sons", + "founded_year": "2021" + }, + "product": { + "name": "art", + "category": "his", + "price": 426.71, + "stock_quantity": 761 + }, + "customer": { + "name": "Gregory Delacruz", + "age": 50, + "country": "Japan" + } + }, + { + "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", + "company": { + "name": "Morris Ltd", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "my", + "category": "movement", + "price": 618.62, + "stock_quantity": 844 + }, + "customer": { + "name": "Kenneth Johnston", + "age": 29, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Miller, Marsh and Prince", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "allow", + "category": "else", + "price": 465.98, + "stock_quantity": 781 + }, + "customer": { + "name": "Danielle Rivera", + "age": 37, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Charles LLC", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "red", + "category": "candidate", + "price": 17.38, + "stock_quantity": 794 + }, + "customer": { + "name": "Jordan Dominguez MD", + "age": 73, + "country": "Russian Federation" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Patterson-Sullivan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Patterson-Sullivan", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "perform", + "category": "sort", + "price": 184.93, + "stock_quantity": 964 + }, + "customer": { + "name": "Carolyn Ray", + "age": 60, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "James and Sons", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "control", + "category": "certainly", + "price": 828.65, + "stock_quantity": 74 + }, + "customer": { + "name": "Travis Davis", + "age": 45, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Warren Group", + "sector": "Inc", + "founded_year": "1988" + }, + "product": { + "name": "possible", + "category": "identify", + "price": 557.25, + "stock_quantity": 990 + }, + "customer": { + "name": "Shelly Reyes", + "age": 65, + "country": "Nauru" + } + }, + { + "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'", + "company": { + "name": "Bentley Inc", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "some", + "category": "girl", + "price": 32.08, + "stock_quantity": 823 + }, + "customer": { + "name": "Mr. Ryan Wiley MD", + "age": 25, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Brandt PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Brandt PLC", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "information", + "category": "into", + "price": 322.41, + "stock_quantity": 974 + }, + "customer": { + "name": "Mr. Justin Greene MD", + "age": 26, + "country": "Egypt" + } + }, + { + "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'", + "company": { + "name": "Caldwell PLC", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "recently", + "category": "husband", + "price": 320.46, + "stock_quantity": 721 + }, + "customer": { + "name": "David Cox", + "age": 43, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Mcguire, Williams and Gonzalez", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "line", + "category": "network", + "price": 583.87, + "stock_quantity": 310 + }, + "customer": { + "name": "Heather Huynh", + "age": 56, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Foster-Lee", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "than", + "category": "everybody", + "price": 697.6, + "stock_quantity": 187 + }, + "customer": { + "name": "Dylan Brewer", + "age": 34, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Moore-Hendrix", + "sector": "Ltd", + "founded_year": "1994" + }, + "product": { + "name": "nice", + "category": "cup", + "price": 190.58, + "stock_quantity": 616 + }, + "customer": { + "name": "William Davis", + "age": 57, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "Mcmillan Inc", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "ball", + "category": "discover", + "price": 427.01, + "stock_quantity": 363 + }, + "customer": { + "name": "Ricardo Brooks", + "age": 71, + "country": "Bahamas" + } + }, + { + "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'", + "company": { + "name": "Meyer-Hurley", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "marriage", + "category": "executive", + "price": 988.21, + "stock_quantity": 474 + }, + "customer": { + "name": "Angela Taylor", + "age": 32, + "country": "Montserrat" + } + }, + { + "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'", + "company": { + "name": "Brown Group", + "sector": "Group", + "founded_year": "1998" + }, + "product": { + "name": "significant", + "category": "building", + "price": 227.25, + "stock_quantity": 616 + }, + "customer": { + "name": "William Jefferson", + "age": 46, + "country": "Guyana" + } + }, + { + "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", + "company": { + "name": "Williams-Campbell", + "sector": "Group", + "founded_year": "1989" + }, + "product": { + "name": "others", + "category": "against", + "price": 592.61, + "stock_quantity": 908 + }, + "customer": { + "name": "Sara Salazar", + "age": 77, + "country": "Sierra Leone" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Taylor-Adkins'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Taylor-Adkins", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "industry", + "category": "small", + "price": 852.83, + "stock_quantity": 249 + }, + "customer": { + "name": "Sara Moore", + "age": 52, + "country": "United Arab Emirates" + } + }, + { + "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'", + "company": { + "name": "Garcia-Martinez", + "sector": "Inc", + "founded_year": "2022" + }, + "product": { + "name": "human", + "category": "fish", + "price": 246.78, + "stock_quantity": 84 + }, + "customer": { + "name": "Chloe Mclean", + "age": 47, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Mckenzie, Ramirez and Holland", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "institution", + "category": "career", + "price": 202.41, + "stock_quantity": 406 + }, + "customer": { + "name": "Jonathan Clayton", + "age": 29, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "natural_query": "What are the top 9 products by sales for Vargas, Werner and Knight this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vargas, Werner and Knight' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9", + "company": { + "name": "Vargas, Werner and Knight", + "sector": "PLC", + "founded_year": "2004" + }, + "product": { + "name": "view", + "category": "young", + "price": 732.93, + "stock_quantity": 270 + }, + "customer": { + "name": "Margaret Woods", + "age": 77, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Gardner-Duran", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "not", + "category": "society", + "price": 823.51, + "stock_quantity": 298 + }, + "customer": { + "name": "Thomas Herrera", + "age": 48, + "country": "Morocco" + } + }, + { + "natural_query": "List all products of Wheeler Ltd ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Wheeler Ltd' ORDER BY price ASC", + "company": { + "name": "Wheeler Ltd", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "itself", + "category": "ready", + "price": 170.3, + "stock_quantity": 806 + }, + "customer": { + "name": "Elizabeth Cortez", + "age": 52, + "country": "Lithuania" + } + }, + { + "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'", + "company": { + "name": "Phillips-Turner", + "sector": "Group", + "founded_year": "1990" + }, + "product": { + "name": "it", + "category": "artist", + "price": 330.43, + "stock_quantity": 535 + }, + "customer": { + "name": "Kimberly Harris", + "age": 80, + "country": "Eritrea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Daniels Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Daniels Ltd", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "tree", + "category": "as", + "price": 953.89, + "stock_quantity": 862 + }, + "customer": { + "name": "Laura Gates", + "age": 30, + "country": "Mongolia" + } + }, + { + "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'", + "company": { + "name": "Lewis, Johnson and Phillips", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "rise", + "category": "manage", + "price": 529.17, + "stock_quantity": 211 + }, + "customer": { + "name": "Kyle Adams", + "age": 38, + "country": "Angola" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Baker, Arnold and Benitez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Baker, Arnold and Benitez", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "star", + "category": "treatment", + "price": 130.0, + "stock_quantity": 607 + }, + "customer": { + "name": "Samantha Garcia", + "age": 30, + "country": "New Zealand" + } + }, + { + "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", + "company": { + "name": "Flores, Willis and Simpson", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "effect", + "category": "likely", + "price": 790.85, + "stock_quantity": 233 + }, + "customer": { + "name": "Jeff Martinez", + "age": 40, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Jackson, Thompson and Kelley", + "sector": "Group", + "founded_year": "2021" + }, + "product": { + "name": "little", + "category": "sense", + "price": 978.42, + "stock_quantity": 947 + }, + "customer": { + "name": "Emily Flores", + "age": 80, + "country": "Belgium" + } + }, + { + "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'", + "company": { + "name": "Flynn Inc", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "black", + "category": "human", + "price": 308.74, + "stock_quantity": 497 + }, + "customer": { + "name": "Dustin Perez", + "age": 36, + "country": "Lebanon" + } + }, + { + "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'", + "company": { + "name": "Elliott Ltd", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "right", + "category": "thought", + "price": 848.87, + "stock_quantity": 183 + }, + "customer": { + "name": "Rebecca Rodriguez", + "age": 29, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Robinson, Sherman and Shelton", + "sector": "Ltd", + "founded_year": "2010" + }, + "product": { + "name": "help", + "category": "economy", + "price": 522.99, + "stock_quantity": 531 + }, + "customer": { + "name": "Kenneth Williams", + "age": 28, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Bennett-Woodard", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "cell", + "category": "later", + "price": 282.71, + "stock_quantity": 19 + }, + "customer": { + "name": "William Williams", + "age": 63, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Lawson Group", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "born", + "category": "glass", + "price": 458.51, + "stock_quantity": 647 + }, + "customer": { + "name": "Lindsey Davis", + "age": 52, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Richardson, Mullen and Costa", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "economy", + "category": "partner", + "price": 787.97, + "stock_quantity": 418 + }, + "customer": { + "name": "Michelle Russo", + "age": 56, + "country": "Gambia" + } + }, + { + "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", + "company": { + "name": "Diaz-Warner", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "church", + "category": "enough", + "price": 276.39, + "stock_quantity": 636 + }, + "customer": { + "name": "Chad Smith", + "age": 43, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Conrad, Carpenter and Roberts", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "woman", + "category": "we", + "price": 196.06, + "stock_quantity": 112 + }, + "customer": { + "name": "Tabitha Burgess", + "age": 61, + "country": "Timor-Leste" + } + }, + { + "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'", + "company": { + "name": "Sexton-Houston", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "few", + "category": "whether", + "price": 411.37, + "stock_quantity": 797 + }, + "customer": { + "name": "John Monroe", + "age": 40, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Ellison Inc", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "manage", + "category": "defense", + "price": 439.36, + "stock_quantity": 651 + }, + "customer": { + "name": "Melissa Landry", + "age": 70, + "country": "Falkland Islands (Malvinas)" + } + }, + { + "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", + "company": { + "name": "Brown, Shelton and Woods", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "lot", + "category": "game", + "price": 649.99, + "stock_quantity": 4 + }, + "customer": { + "name": "Regina Webb", + "age": 73, + "country": "Guernsey" + } + }, + { + "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", + "company": { + "name": "Huynh, Hawkins and Holland", + "sector": "and Sons", + "founded_year": "1970" + }, + "product": { + "name": "nation", + "category": "care", + "price": 513.64, + "stock_quantity": 943 + }, + "customer": { + "name": "Michelle Hatfield", + "age": 73, + "country": "Israel" + } + }, + { + "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", + "company": { + "name": "Bishop-Cross", + "sector": "LLC", + "founded_year": "1976" + }, + "product": { + "name": "make", + "category": "parent", + "price": 431.34, + "stock_quantity": 353 + }, + "customer": { + "name": "Christine Johnson", + "age": 72, + "country": "Bulgaria" + } + }, + { + "natural_query": "List all products of Townsend, Williams and Wolf ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Townsend, Williams and Wolf' ORDER BY rating ASC", + "company": { + "name": "Townsend, Williams and Wolf", + "sector": "Ltd", + "founded_year": "1998" + }, + "product": { + "name": "teacher", + "category": "fast", + "price": 232.21, + "stock_quantity": 638 + }, + "customer": { + "name": "Victoria Davis", + "age": 64, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Henderson, Sloan and Hurley", + "sector": "LLC", + "founded_year": "2002" + }, + "product": { + "name": "language", + "category": "power", + "price": 805.39, + "stock_quantity": 553 + }, + "customer": { + "name": "Brittany Rangel", + "age": 48, + "country": "Algeria" + } + }, + { + "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", + "company": { + "name": "Taylor, Green and Edwards", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "woman", + "category": "hard", + "price": 576.17, + "stock_quantity": 437 + }, + "customer": { + "name": "Benjamin Lowery", + "age": 45, + "country": "Vietnam" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hernandez, Daniels and Ward'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hernandez, Daniels and Ward", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "plant", + "category": "base", + "price": 927.46, + "stock_quantity": 519 + }, + "customer": { + "name": "Gregory Ramirez", + "age": 61, + "country": "Germany" + } + }, + { + "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", + "company": { + "name": "Ortiz Inc", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "if", + "category": "success", + "price": 746.66, + "stock_quantity": 530 + }, + "customer": { + "name": "Abigail Allen", + "age": 47, + "country": "Palestinian Territory" + } + }, + { + "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", + "company": { + "name": "Taylor-White", + "sector": "Group", + "founded_year": "1997" + }, + "product": { + "name": "born", + "category": "low", + "price": 646.09, + "stock_quantity": 965 + }, + "customer": { + "name": "Matthew Williams", + "age": 34, + "country": "Myanmar" + } + }, + { + "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'", + "company": { + "name": "Guerrero Group", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "hear", + "category": "heavy", + "price": 109.1, + "stock_quantity": 878 + }, + "customer": { + "name": "Ashlee Jones", + "age": 76, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Lopez-Lopez", + "sector": "Inc", + "founded_year": "1990" + }, + "product": { + "name": "movie", + "category": "suffer", + "price": 18.49, + "stock_quantity": 418 + }, + "customer": { + "name": "Michael Walker", + "age": 66, + "country": "Anguilla" + } + }, + { + "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", + "company": { + "name": "Ross, Faulkner and Webster", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "require", + "category": "east", + "price": 39.02, + "stock_quantity": 599 + }, + "customer": { + "name": "Terri Lyons", + "age": 18, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Rivera Ltd", + "sector": "and Sons", + "founded_year": "1978" + }, + "product": { + "name": "strong", + "category": "wrong", + "price": 775.52, + "stock_quantity": 359 + }, + "customer": { + "name": "Barry Russell", + "age": 80, + "country": "South Georgia and the South Sandwich Islands" + } + }, + { + "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", + "company": { + "name": "Hayes-Jenkins", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "must", + "category": "off", + "price": 853.26, + "stock_quantity": 712 + }, + "customer": { + "name": "Matthew Vincent", + "age": 24, + "country": "Russian Federation" + } + }, + { + "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'", + "company": { + "name": "Campbell Ltd", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "buy", + "category": "work", + "price": 887.67, + "stock_quantity": 223 + }, + "customer": { + "name": "David Wilson", + "age": 27, + "country": "Oman" + } + }, + { + "natural_query": "What are the top 8 products by revenue for Clark-Johnson all time?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Clark-Johnson' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8", + "company": { + "name": "Clark-Johnson", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "chance", + "category": "partner", + "price": 608.83, + "stock_quantity": 89 + }, + "customer": { + "name": "Michael Jackson", + "age": 25, + "country": "Djibouti" + } + }, + { + "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", + "company": { + "name": "Price-White", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "despite", + "category": "music", + "price": 855.63, + "stock_quantity": 481 + }, + "customer": { + "name": "Antonio Richardson", + "age": 38, + "country": "Burundi" + } + }, + { + "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'", + "company": { + "name": "Bowman-Hartman", + "sector": "Inc", + "founded_year": "2003" + }, + "product": { + "name": "consumer", + "category": "exactly", + "price": 663.44, + "stock_quantity": 648 + }, + "customer": { + "name": "Gabrielle Parker", + "age": 49, + "country": "Cote d'Ivoire" + } + }, + { + "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'", + "company": { + "name": "Mercado-Kemp", + "sector": "PLC", + "founded_year": "1988" + }, + "product": { + "name": "level", + "category": "know", + "price": 469.37, + "stock_quantity": 905 + }, + "customer": { + "name": "Crystal Hernandez", + "age": 75, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Price-Bennett", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "value", + "category": "official", + "price": 550.98, + "stock_quantity": 638 + }, + "customer": { + "name": "Kyle Johnson", + "age": 62, + "country": "Bahrain" + } + }, + { + "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", + "company": { + "name": "Reed-Torres", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "guess", + "category": "head", + "price": 965.6, + "stock_quantity": 894 + }, + "customer": { + "name": "Miss Shannon Sosa DVM", + "age": 71, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Martinez-Norris", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "give", + "category": "pressure", + "price": 383.42, + "stock_quantity": 891 + }, + "customer": { + "name": "James Brown", + "age": 31, + "country": "Central African Republic" + } + }, + { + "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'", + "company": { + "name": "Richards, Flowers and Martinez", + "sector": "Group", + "founded_year": "2018" + }, + "product": { + "name": "human", + "category": "thank", + "price": 416.38, + "stock_quantity": 15 + }, + "customer": { + "name": "Jackie Smith", + "age": 60, + "country": "El Salvador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Scott Group'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Scott Group", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "doctor", + "category": "attorney", + "price": 942.36, + "stock_quantity": 63 + }, + "customer": { + "name": "Logan Cochran", + "age": 47, + "country": "Guinea" + } + }, + { + "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", + "company": { + "name": "Martin, Silva and Stewart", + "sector": "LLC", + "founded_year": "2017" + }, + "product": { + "name": "respond", + "category": "happy", + "price": 646.73, + "stock_quantity": 700 + }, + "customer": { + "name": "Kimberly Brown", + "age": 62, + "country": "Saint Pierre and Miquelon" + } + }, + { + "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", + "company": { + "name": "Brady, Armstrong and Gates", + "sector": "Inc", + "founded_year": "2012" + }, + "product": { + "name": "analysis", + "category": "experience", + "price": 966.31, + "stock_quantity": 154 + }, + "customer": { + "name": "Amber Carr", + "age": 66, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Flynn and Sons", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "able", + "category": "describe", + "price": 638.99, + "stock_quantity": 841 + }, + "customer": { + "name": "Michael Terry", + "age": 72, + "country": "Comoros" + } + }, + { + "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'", + "company": { + "name": "Johnson-Robbins", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "notice", + "category": "some", + "price": 708.94, + "stock_quantity": 577 + }, + "customer": { + "name": "Anthony Marks", + "age": 37, + "country": "Malawi" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Anderson, Knapp and Clark'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Anderson, Knapp and Clark", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "doctor", + "category": "machine", + "price": 359.67, + "stock_quantity": 963 + }, + "customer": { + "name": "Bridget Nelson", + "age": 72, + "country": "Poland" + } + }, + { + "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", + "company": { + "name": "Lewis LLC", + "sector": "Ltd", + "founded_year": "2022" + }, + "product": { + "name": "several", + "category": "image", + "price": 618.64, + "stock_quantity": 285 + }, + "customer": { + "name": "Elizabeth Gamble", + "age": 41, + "country": "North Macedonia" + } + }, + { + "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'", + "company": { + "name": "Lee, Olsen and Montes", + "sector": "and Sons", + "founded_year": "1973" + }, + "product": { + "name": "identify", + "category": "hold", + "price": 189.62, + "stock_quantity": 412 + }, + "customer": { + "name": "Shannon Collins PhD", + "age": 18, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "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'", + "company": { + "name": "Thompson and Sons", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "become", + "category": "minute", + "price": 447.51, + "stock_quantity": 717 + }, + "customer": { + "name": "Shannon Watts", + "age": 56, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Peterson-Haynes", + "sector": "Inc", + "founded_year": "2017" + }, + "product": { + "name": "possible", + "category": "detail", + "price": 514.25, + "stock_quantity": 689 + }, + "customer": { + "name": "Mr. Christopher Price", + "age": 79, + "country": "Bosnia and Herzegovina" + } + }, + { + "natural_query": "Show me all products in the today category with a price over $275.45.", + "sql_query": "SELECT * FROM products WHERE category = 'today' AND price > 275.45", + "company": { + "name": "Alvarez, Gross and Lamb", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "election", + "category": "today", + "price": 275.45, + "stock_quantity": 872 + }, + "customer": { + "name": "Lee Hicks", + "age": 41, + "country": "Liberia" + } + }, + { + "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'", + "company": { + "name": "Baker, Kirby and Osborne", + "sector": "Group", + "founded_year": "2003" + }, + "product": { + "name": "improve", + "category": "expert", + "price": 890.46, + "stock_quantity": 848 + }, + "customer": { + "name": "Brooke Anderson", + "age": 49, + "country": "Dominican Republic" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Edwards PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Edwards PLC", + "sector": "Inc", + "founded_year": "1985" + }, + "product": { + "name": "however", + "category": "their", + "price": 182.84, + "stock_quantity": 625 + }, + "customer": { + "name": "Veronica Jordan", + "age": 27, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Alexander, Rowland and Brock", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "energy", + "category": "population", + "price": 980.95, + "stock_quantity": 974 + }, + "customer": { + "name": "Scott Proctor", + "age": 61, + "country": "Uganda" + } + }, + { + "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", + "company": { + "name": "Rowland Group", + "sector": "LLC", + "founded_year": "1993" + }, + "product": { + "name": "too", + "category": "current", + "price": 110.13, + "stock_quantity": 475 + }, + "customer": { + "name": "Shawn Mclean", + "age": 38, + "country": "Afghanistan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Reynolds-Weaver'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Reynolds-Weaver", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "nation", + "category": "available", + "price": 661.63, + "stock_quantity": 585 + }, + "customer": { + "name": "Helen Jones", + "age": 42, + "country": "Paraguay" + } + }, + { + "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'", + "company": { + "name": "Mann Inc", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "region", + "category": "because", + "price": 686.04, + "stock_quantity": 799 + }, + "customer": { + "name": "Susan Day", + "age": 19, + "country": "Kazakhstan" + } + }, + { + "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", + "company": { + "name": "Brown-Bush", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "risk", + "category": "drive", + "price": 113.81, + "stock_quantity": 955 + }, + "customer": { + "name": "Matthew Allen", + "age": 37, + "country": "Austria" + } + }, + { + "natural_query": "What is the total quantity for each country in Davis LLC?", + "sql_query": "SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Davis LLC' GROUP BY country ORDER BY total_quantity DESC", + "company": { + "name": "Davis LLC", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "cold", + "category": "we", + "price": 978.65, + "stock_quantity": 452 + }, + "customer": { + "name": "Barbara Simpson", + "age": 22, + "country": "Pitcairn Islands" + } + }, + { + "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'", + "company": { + "name": "Thomas, Morgan and Santiago", + "sector": "and Sons", + "founded_year": "1974" + }, + "product": { + "name": "part", + "category": "among", + "price": 601.68, + "stock_quantity": 681 + }, + "customer": { + "name": "Tammy Jones", + "age": 61, + "country": "Nauru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Morrison, Richardson and Fisher'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Morrison, Richardson and Fisher", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "worker", + "category": "kid", + "price": 396.07, + "stock_quantity": 267 + }, + "customer": { + "name": "Susan Griffith", + "age": 40, + "country": "Belgium" + } + }, + { + "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", + "company": { + "name": "Jones, Banks and Fritz", + "sector": "Inc", + "founded_year": "2014" + }, + "product": { + "name": "threat", + "category": "example", + "price": 424.88, + "stock_quantity": 699 + }, + "customer": { + "name": "William Smith", + "age": 78, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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", + "company": { + "name": "Payne-Sherman", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "population", + "category": "clearly", + "price": 223.08, + "stock_quantity": 78 + }, + "customer": { + "name": "Karen Rodriguez", + "age": 70, + "country": "Costa Rica" + } + }, + { + "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'", + "company": { + "name": "Fritz-Randall", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "specific", + "category": "stuff", + "price": 515.64, + "stock_quantity": 507 + }, + "customer": { + "name": "Timothy Mcneil DDS", + "age": 42, + "country": "Mali" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rodriguez PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rodriguez PLC", + "sector": "and Sons", + "founded_year": "1972" + }, + "product": { + "name": "something", + "category": "visit", + "price": 41.59, + "stock_quantity": 353 + }, + "customer": { + "name": "Sarah Tucker", + "age": 73, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Bowers Inc", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "model", + "category": "almost", + "price": 921.01, + "stock_quantity": 866 + }, + "customer": { + "name": "Leah Frye", + "age": 68, + "country": "Saint Barthelemy" + } + }, + { + "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'", + "company": { + "name": "Phillips Ltd", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "attorney", + "category": "live", + "price": 42.36, + "stock_quantity": 478 + }, + "customer": { + "name": "Juan Stevenson", + "age": 23, + "country": "Tokelau" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jennings, Quinn and Bond'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jennings, Quinn and Bond", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "yard", + "category": "across", + "price": 571.16, + "stock_quantity": 843 + }, + "customer": { + "name": "Lindsay Torres", + "age": 54, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Johnson, Jimenez and Baker", + "sector": "Ltd", + "founded_year": "2009" + }, + "product": { + "name": "nice", + "category": "still", + "price": 830.86, + "stock_quantity": 59 + }, + "customer": { + "name": "Brenda Rodriguez", + "age": 60, + "country": "Jamaica" + } + }, + { + "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", + "company": { + "name": "Silva-Golden", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "sell", + "category": "also", + "price": 363.89, + "stock_quantity": 272 + }, + "customer": { + "name": "Brandy Odonnell", + "age": 73, + "country": "Norfolk Island" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Potter Inc'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Potter Inc", + "sector": "Ltd", + "founded_year": "2023" + }, + "product": { + "name": "certain", + "category": "current", + "price": 45.37, + "stock_quantity": 479 + }, + "customer": { + "name": "David Jones", + "age": 49, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Jones Ltd", + "sector": "Inc", + "founded_year": "2001" + }, + "product": { + "name": "draw", + "category": "care", + "price": 849.25, + "stock_quantity": 733 + }, + "customer": { + "name": "Lindsey Marquez", + "age": 42, + "country": "Afghanistan" + } + }, + { + "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", + "company": { + "name": "Lewis-Armstrong", + "sector": "PLC", + "founded_year": "1977" + }, + "product": { + "name": "hope", + "category": "born", + "price": 753.02, + "stock_quantity": 200 + }, + "customer": { + "name": "Lindsey Ryan", + "age": 65, + "country": "Samoa" + } + }, + { + "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'", + "company": { + "name": "Taylor and Sons", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "hit", + "category": "alone", + "price": 384.13, + "stock_quantity": 641 + }, + "customer": { + "name": "Tammy Pena", + "age": 70, + "country": "American Samoa" + } + }, + { + "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", + "company": { + "name": "Howard and Sons", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "specific", + "category": "century", + "price": 354.02, + "stock_quantity": 112 + }, + "customer": { + "name": "Jeffrey Fields", + "age": 76, + "country": "Honduras" + } + }, + { + "natural_query": "Show me all products in the soldier category with a price over $988.2.", + "sql_query": "SELECT * FROM products WHERE category = 'soldier' AND price > 988.2", + "company": { + "name": "Bradford-Price", + "sector": "Group", + "founded_year": "2020" + }, + "product": { + "name": "suggest", + "category": "soldier", + "price": 988.2, + "stock_quantity": 893 + }, + "customer": { + "name": "Kiara Martin", + "age": 61, + "country": "Australia" + } + }, + { + "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", + "company": { + "name": "Anderson-Morris", + "sector": "PLC", + "founded_year": "2015" + }, + "product": { + "name": "quickly", + "category": "work", + "price": 160.48, + "stock_quantity": 834 + }, + "customer": { + "name": "Robin Lee MD", + "age": 42, + "country": "Sao Tome and Principe" + } + }, + { + "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'", + "company": { + "name": "Tapia-Salazar", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "eat", + "category": "experience", + "price": 389.69, + "stock_quantity": 422 + }, + "customer": { + "name": "James Garcia", + "age": 67, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Stein-Yoder", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "student", + "category": "how", + "price": 341.15, + "stock_quantity": 844 + }, + "customer": { + "name": "Carly Garcia", + "age": 22, + "country": "Malaysia" + } + }, + { + "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", + "company": { + "name": "Camacho, Smith and Stevenson", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "book", + "category": "senior", + "price": 535.95, + "stock_quantity": 687 + }, + "customer": { + "name": "Jonathan Tran", + "age": 67, + "country": "Congo" + } + }, + { + "natural_query": "List all products of Rios PLC ordered by stock_quantity from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Rios PLC' ORDER BY stock_quantity DESC", + "company": { + "name": "Rios PLC", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "force", + "category": "action", + "price": 408.37, + "stock_quantity": 885 + }, + "customer": { + "name": "Kyle Miller", + "age": 60, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "Henderson, Willis and Wilson", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "could", + "category": "TV", + "price": 718.87, + "stock_quantity": 74 + }, + "customer": { + "name": "Cynthia Johnston", + "age": 77, + "country": "Saint Barthelemy" + } + }, + { + "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", + "company": { + "name": "Burns, Lynch and Thompson", + "sector": "and Sons", + "founded_year": "1998" + }, + "product": { + "name": "different", + "category": "theory", + "price": 769.29, + "stock_quantity": 916 + }, + "customer": { + "name": "Stephanie Stokes", + "age": 46, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Simpson, Rodriguez and Shelton", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "campaign", + "category": "training", + "price": 689.32, + "stock_quantity": 776 + }, + "customer": { + "name": "Timothy Cunningham", + "age": 26, + "country": "El Salvador" + } + }, + { + "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", + "company": { + "name": "Stone, Thompson and Hardy", + "sector": "Inc", + "founded_year": "1973" + }, + "product": { + "name": "bill", + "category": "hot", + "price": 840.92, + "stock_quantity": 891 + }, + "customer": { + "name": "Christopher Sanchez", + "age": 44, + "country": "Indonesia" + } + }, + { + "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", + "company": { + "name": "Allen Inc", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "admit", + "category": "computer", + "price": 449.83, + "stock_quantity": 15 + }, + "customer": { + "name": "George Carter", + "age": 47, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Hudson-Powers", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "here", + "category": "world", + "price": 964.32, + "stock_quantity": 70 + }, + "customer": { + "name": "Anthony Weaver", + "age": 44, + "country": "Tajikistan" + } + }, + { + "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", + "company": { + "name": "Torres and Sons", + "sector": "LLC", + "founded_year": "2010" + }, + "product": { + "name": "necessary", + "category": "answer", + "price": 496.04, + "stock_quantity": 278 + }, + "customer": { + "name": "David Davis", + "age": 55, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Stanley and Tucker", + "sector": "Ltd", + "founded_year": "1984" + }, + "product": { + "name": "new", + "category": "side", + "price": 646.07, + "stock_quantity": 928 + }, + "customer": { + "name": "Emily Charles", + "age": 75, + "country": "Ethiopia" + } + }, + { + "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", + "company": { + "name": "Jackson-Jones", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "notice", + "category": "remember", + "price": 424.68, + "stock_quantity": 823 + }, + "customer": { + "name": "Melissa Davis", + "age": 65, + "country": "Latvia" + } + }, + { + "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", + "company": { + "name": "Sullivan, Abbott and Owens", + "sector": "Ltd", + "founded_year": "1991" + }, + "product": { + "name": "man", + "category": "alone", + "price": 624.25, + "stock_quantity": 908 + }, + "customer": { + "name": "Erica Hopkins PhD", + "age": 23, + "country": "Comoros" + } + }, + { + "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", + "company": { + "name": "Alvarez, Contreras and Graves", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "east", + "category": "firm", + "price": 422.63, + "stock_quantity": 495 + }, + "customer": { + "name": "Jason Matthews", + "age": 67, + "country": "Honduras" + } + }, + { + "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", + "company": { + "name": "Wilson LLC", + "sector": "Group", + "founded_year": "1993" + }, + "product": { + "name": "east", + "category": "whether", + "price": 95.81, + "stock_quantity": 221 + }, + "customer": { + "name": "Tammy Lewis", + "age": 74, + "country": "Bahrain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Fernandez-Arroyo'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Fernandez-Arroyo", + "sector": "Group", + "founded_year": "1985" + }, + "product": { + "name": "six", + "category": "soon", + "price": 610.35, + "stock_quantity": 357 + }, + "customer": { + "name": "Christopher Tucker", + "age": 58, + "country": "Colombia" + } + }, + { + "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", + "company": { + "name": "Potts PLC", + "sector": "and Sons", + "founded_year": "1984" + }, + "product": { + "name": "sit", + "category": "in", + "price": 469.54, + "stock_quantity": 58 + }, + "customer": { + "name": "Jeff Williams", + "age": 34, + "country": "Nepal" + } + }, + { + "natural_query": "Show me all products in the total category with a price over $809.69.", + "sql_query": "SELECT * FROM products WHERE category = 'total' AND price > 809.69", + "company": { + "name": "Matthews, Hamilton and Gray", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "dark", + "category": "total", + "price": 809.69, + "stock_quantity": 127 + }, + "customer": { + "name": "Jennifer Mcdonald", + "age": 55, + "country": "Bangladesh" + } + }, + { + "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'", + "company": { + "name": "Rodriguez, Jackson and Hernandez", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "us", + "category": "star", + "price": 372.6, + "stock_quantity": 460 + }, + "customer": { + "name": "Joseph Hardy", + "age": 27, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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", + "company": { + "name": "Stevens LLC", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "become", + "category": "forward", + "price": 318.15, + "stock_quantity": 698 + }, + "customer": { + "name": "Thomas Knight", + "age": 23, + "country": "Mauritius" + } + }, + { + "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", + "company": { + "name": "Martin PLC", + "sector": "LLC", + "founded_year": "1990" + }, + "product": { + "name": "positive", + "category": "price", + "price": 551.45, + "stock_quantity": 422 + }, + "customer": { + "name": "Jennifer Mclaughlin", + "age": 68, + "country": "Pitcairn Islands" + } + }, + { + "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", + "company": { + "name": "Ritter and Sons", + "sector": "Group", + "founded_year": "1976" + }, + "product": { + "name": "term", + "category": "audience", + "price": 243.76, + "stock_quantity": 461 + }, + "customer": { + "name": "Madison Carlson", + "age": 35, + "country": "Cape Verde" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Rivas-Bryant for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rivas-Bryant'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rivas-Bryant", + "sector": "Group", + "founded_year": "2005" + }, + "product": { + "name": "focus", + "category": "among", + "price": 850.38, + "stock_quantity": 357 + }, + "customer": { + "name": "Theresa Walker", + "age": 50, + "country": "Lithuania" + } + }, + { + "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", + "company": { + "name": "Pratt Group", + "sector": "LLC", + "founded_year": "2004" + }, + "product": { + "name": "safe", + "category": "street", + "price": 556.81, + "stock_quantity": 449 + }, + "customer": { + "name": "Kyle Henry", + "age": 59, + "country": "United Arab Emirates" + } + }, + { + "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", + "company": { + "name": "Crawford-Cortez", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "blue", + "category": "since", + "price": 627.54, + "stock_quantity": 141 + }, + "customer": { + "name": "Sarah Rose", + "age": 43, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Wagner, Wilson and Choi", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "court", + "category": "claim", + "price": 277.48, + "stock_quantity": 762 + }, + "customer": { + "name": "Cynthia Woods", + "age": 22, + "country": "Guernsey" + } + }, + { + "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'", + "company": { + "name": "Brooks, Waters and Allen", + "sector": "Inc", + "founded_year": "2024" + }, + "product": { + "name": "through", + "category": "get", + "price": 263.31, + "stock_quantity": 347 + }, + "customer": { + "name": "Christopher Christian", + "age": 60, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Lee PLC", + "sector": "Ltd", + "founded_year": "2008" + }, + "product": { + "name": "black", + "category": "body", + "price": 212.26, + "stock_quantity": 937 + }, + "customer": { + "name": "Robert Cooper", + "age": 32, + "country": "Romania" + } + }, + { + "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", + "company": { + "name": "Odonnell Ltd", + "sector": "PLC", + "founded_year": "1976" + }, + "product": { + "name": "mean", + "category": "whether", + "price": 494.02, + "stock_quantity": 293 + }, + "customer": { + "name": "Tiffany Owen", + "age": 56, + "country": "North Macedonia" + } + }, + { + "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", + "company": { + "name": "Turner Ltd", + "sector": "and Sons", + "founded_year": "2015" + }, + "product": { + "name": "author", + "category": "soldier", + "price": 58.07, + "stock_quantity": 240 + }, + "customer": { + "name": "Brian Wilkinson", + "age": 32, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Gibson, Hughes and Smith", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "college", + "category": "station", + "price": 769.98, + "stock_quantity": 383 + }, + "customer": { + "name": "Jacqueline Guzman", + "age": 58, + "country": "Singapore" + } + }, + { + "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", + "company": { + "name": "Roberts, Campbell and Gray", + "sector": "PLC", + "founded_year": "1983" + }, + "product": { + "name": "country", + "category": "evidence", + "price": 82.81, + "stock_quantity": 528 + }, + "customer": { + "name": "Derek Johnson", + "age": 57, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Huynh-Hamilton", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "throughout", + "category": "physical", + "price": 647.36, + "stock_quantity": 437 + }, + "customer": { + "name": "James Lloyd", + "age": 41, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Phillips, Clark and Barry", + "sector": "LLC", + "founded_year": "1996" + }, + "product": { + "name": "bed", + "category": "attorney", + "price": 996.0, + "stock_quantity": 798 + }, + "customer": { + "name": "Bruce Howell", + "age": 74, + "country": "Slovakia (Slovak Republic)" + } + }, + { + "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", + "company": { + "name": "Castaneda PLC", + "sector": "LLC", + "founded_year": "2000" + }, + "product": { + "name": "lawyer", + "category": "business", + "price": 819.23, + "stock_quantity": 603 + }, + "customer": { + "name": "Robert Richardson", + "age": 72, + "country": "Antarctica (the territory South of 60 deg S)" + } + }, + { + "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", + "company": { + "name": "Green, Reyes and Lane", + "sector": "and Sons", + "founded_year": "1995" + }, + "product": { + "name": "ago", + "category": "general", + "price": 410.74, + "stock_quantity": 297 + }, + "customer": { + "name": "Randy Shaw", + "age": 65, + "country": "Ghana" + } + }, + { + "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", + "company": { + "name": "Marshall Ltd", + "sector": "and Sons", + "founded_year": "2016" + }, + "product": { + "name": "despite", + "category": "accept", + "price": 143.79, + "stock_quantity": 16 + }, + "customer": { + "name": "Brandi King", + "age": 47, + "country": "Bahamas" + } + }, + { + "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", + "company": { + "name": "Mcgee, Gutierrez and Wilkins", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "lot", + "category": "western", + "price": 297.29, + "stock_quantity": 690 + }, + "customer": { + "name": "Catherine Hahn", + "age": 69, + "country": "Peru" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Mcclain-Davis'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Mcclain-Davis", + "sector": "and Sons", + "founded_year": "2020" + }, + "product": { + "name": "home", + "category": "agent", + "price": 435.96, + "stock_quantity": 545 + }, + "customer": { + "name": "Sarah Martinez", + "age": 71, + "country": "Brunei Darussalam" + } + }, + { + "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", + "company": { + "name": "Duke and Sons", + "sector": "LLC", + "founded_year": "2018" + }, + "product": { + "name": "there", + "category": "growth", + "price": 419.6, + "stock_quantity": 730 + }, + "customer": { + "name": "Ryan Michael", + "age": 63, + "country": "Iceland" + } + }, + { + "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", + "company": { + "name": "Hill LLC", + "sector": "LLC", + "founded_year": "2009" + }, + "product": { + "name": "admit", + "category": "model", + "price": 195.43, + "stock_quantity": 197 + }, + "customer": { + "name": "Victor Flores", + "age": 48, + "country": "Korea" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bond-Ramirez'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bond-Ramirez", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "five", + "category": "school", + "price": 880.1, + "stock_quantity": 720 + }, + "customer": { + "name": "Daniel Anderson", + "age": 20, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Cline, Mata and Horn", + "sector": "and Sons", + "founded_year": "2011" + }, + "product": { + "name": "candidate", + "category": "high", + "price": 264.41, + "stock_quantity": 699 + }, + "customer": { + "name": "Dr. Cynthia Fernandez", + "age": 24, + "country": "Libyan Arab Jamahiriya" + } + }, + { + "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'", + "company": { + "name": "Ortega PLC", + "sector": "and Sons", + "founded_year": "1975" + }, + "product": { + "name": "oil", + "category": "nearly", + "price": 46.66, + "stock_quantity": 968 + }, + "customer": { + "name": "Russell Simpson", + "age": 75, + "country": "Botswana" + } + }, + { + "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'", + "company": { + "name": "Simmons-Payne", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "cause", + "category": "including", + "price": 426.24, + "stock_quantity": 98 + }, + "customer": { + "name": "Erica Lawrence", + "age": 39, + "country": "Western Sahara" + } + }, + { + "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'", + "company": { + "name": "Alvarez-Lowery", + "sector": "LLC", + "founded_year": "2015" + }, + "product": { + "name": "glass", + "category": "rock", + "price": 124.53, + "stock_quantity": 841 + }, + "customer": { + "name": "Lynn Mcintyre", + "age": 18, + "country": "Pitcairn Islands" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in West-Marshall for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'West-Marshall'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "West-Marshall", + "sector": "Ltd", + "founded_year": "2018" + }, + "product": { + "name": "eye", + "category": "information", + "price": 484.28, + "stock_quantity": 985 + }, + "customer": { + "name": "Michael Stephens", + "age": 29, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Hall, Benitez and Smith", + "sector": "Inc", + "founded_year": "1982" + }, + "product": { + "name": "owner", + "category": "up", + "price": 149.49, + "stock_quantity": 168 + }, + "customer": { + "name": "Matthew Campos", + "age": 73, + "country": "Cambodia" + } + }, + { + "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'", + "company": { + "name": "Reynolds LLC", + "sector": "PLC", + "founded_year": "2010" + }, + "product": { + "name": "night", + "category": "TV", + "price": 42.19, + "stock_quantity": 883 + }, + "customer": { + "name": "Kendra Christian", + "age": 32, + "country": "Bahrain" + } + }, + { + "natural_query": "What is the total quantity for each category in Brown, Barrera and Mccall?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Brown, Barrera and Mccall' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Brown, Barrera and Mccall", + "sector": "Group", + "founded_year": "2009" + }, + "product": { + "name": "cell", + "category": "answer", + "price": 372.99, + "stock_quantity": 947 + }, + "customer": { + "name": "Melissa Cervantes", + "age": 43, + "country": "Azerbaijan" + } + }, + { + "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'", + "company": { + "name": "Sanchez, Williams and Ramirez", + "sector": "LLC", + "founded_year": "2011" + }, + "product": { + "name": "whom", + "category": "employee", + "price": 129.46, + "stock_quantity": 88 + }, + "customer": { + "name": "Francisco Johnson", + "age": 60, + "country": "Niue" + } + }, + { + "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", + "company": { + "name": "Townsend, Hodge and Cunningham", + "sector": "PLC", + "founded_year": "1994" + }, + "product": { + "name": "seat", + "category": "everything", + "price": 701.97, + "stock_quantity": 950 + }, + "customer": { + "name": "Eric Owens", + "age": 79, + "country": "Senegal" + } + }, + { + "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", + "company": { + "name": "Powers-Gonzalez", + "sector": "Ltd", + "founded_year": "2011" + }, + "product": { + "name": "small", + "category": "yeah", + "price": 820.6, + "stock_quantity": 73 + }, + "customer": { + "name": "Benjamin Diaz", + "age": 59, + "country": "Greenland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Payne LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Payne LLC", + "sector": "Ltd", + "founded_year": "2014" + }, + "product": { + "name": "only", + "category": "price", + "price": 892.39, + "stock_quantity": 946 + }, + "customer": { + "name": "Randall Holmes", + "age": 32, + "country": "Finland" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Martin-Parks'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Martin-Parks", + "sector": "Ltd", + "founded_year": "1986" + }, + "product": { + "name": "need", + "category": "such", + "price": 674.28, + "stock_quantity": 72 + }, + "customer": { + "name": "Gregory Combs", + "age": 50, + "country": "Turkmenistan" + } + }, + { + "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", + "company": { + "name": "Ramsey Group", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "others", + "category": "morning", + "price": 851.39, + "stock_quantity": 780 + }, + "customer": { + "name": "Alyssa Cortez", + "age": 31, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Jones-George", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "reality", + "category": "perform", + "price": 520.27, + "stock_quantity": 96 + }, + "customer": { + "name": "Hannah Smith", + "age": 31, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Aguilar-Jackson", + "sector": "LLC", + "founded_year": "1994" + }, + "product": { + "name": "claim", + "category": "yourself", + "price": 234.62, + "stock_quantity": 663 + }, + "customer": { + "name": "Frederick Campbell", + "age": 19, + "country": "Belarus" + } + }, + { + "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", + "company": { + "name": "Ray and Sons", + "sector": "Inc", + "founded_year": "1978" + }, + "product": { + "name": "section", + "category": "economy", + "price": 924.72, + "stock_quantity": 275 + }, + "customer": { + "name": "Roger Moran", + "age": 56, + "country": "Vanuatu" + } + }, + { + "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", + "company": { + "name": "Wilson Inc", + "sector": "Ltd", + "founded_year": "1972" + }, + "product": { + "name": "finish", + "category": "give", + "price": 444.55, + "stock_quantity": 490 + }, + "customer": { + "name": "Matthew Cook", + "age": 30, + "country": "Central African Republic" + } + }, + { + "natural_query": "What is the average rating of all products for Martinez LLC?", + "sql_query": "SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Martinez LLC'", + "company": { + "name": "Martinez LLC", + "sector": "Inc", + "founded_year": "1984" + }, + "product": { + "name": "under", + "category": "hospital", + "price": 870.76, + "stock_quantity": 694 + }, + "customer": { + "name": "Samantha Williams", + "age": 55, + "country": "Guinea" + } + }, + { + "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'", + "company": { + "name": "Miller-Pena", + "sector": "and Sons", + "founded_year": "2003" + }, + "product": { + "name": "suffer", + "category": "community", + "price": 33.79, + "stock_quantity": 869 + }, + "customer": { + "name": "Keith Rose", + "age": 21, + "country": "Bermuda" + } + }, + { + "natural_query": "Show me all products in the soon category with a price over $303.21.", + "sql_query": "SELECT * FROM products WHERE category = 'soon' AND price > 303.21", + "company": { + "name": "Mendez-Rowland", + "sector": "Group", + "founded_year": "2008" + }, + "product": { + "name": "especially", + "category": "soon", + "price": 303.21, + "stock_quantity": 91 + }, + "customer": { + "name": "Karl Johnson", + "age": 40, + "country": "Malawi" + } + }, + { + "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", + "company": { + "name": "Smith PLC", + "sector": "Ltd", + "founded_year": "2005" + }, + "product": { + "name": "never", + "category": "white", + "price": 93.85, + "stock_quantity": 748 + }, + "customer": { + "name": "Martin Chen", + "age": 26, + "country": "Estonia" + } + }, + { + "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'", + "company": { + "name": "Berry, Brown and Fleming", + "sector": "PLC", + "founded_year": "1979" + }, + "product": { + "name": "executive", + "category": "bed", + "price": 424.6, + "stock_quantity": 318 + }, + "customer": { + "name": "Andrew Morris", + "age": 28, + "country": "Bosnia and Herzegovina" + } + }, + { + "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", + "company": { + "name": "Hayes, Evans and Gomez", + "sector": "LLC", + "founded_year": "1992" + }, + "product": { + "name": "already", + "category": "simple", + "price": 20.2, + "stock_quantity": 53 + }, + "customer": { + "name": "Rhonda Campbell", + "age": 25, + "country": "Niger" + } + }, + { + "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", + "company": { + "name": "Hayden PLC", + "sector": "Ltd", + "founded_year": "2020" + }, + "product": { + "name": "produce", + "category": "low", + "price": 411.44, + "stock_quantity": 216 + }, + "customer": { + "name": "Robin Hernandez", + "age": 29, + "country": "Albania" + } + }, + { + "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", + "company": { + "name": "Evans-Goodman", + "sector": "Inc", + "founded_year": "2020" + }, + "product": { + "name": "issue", + "category": "could", + "price": 156.67, + "stock_quantity": 145 + }, + "customer": { + "name": "John Wilson", + "age": 50, + "country": "Liberia" + } + }, + { + "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", + "company": { + "name": "Molina-Jones", + "sector": "Ltd", + "founded_year": "2015" + }, + "product": { + "name": "company", + "category": "act", + "price": 776.07, + "stock_quantity": 430 + }, + "customer": { + "name": "Brian Smith", + "age": 70, + "country": "Jersey" + } + }, + { + "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'", + "company": { + "name": "Velez-Stevenson", + "sector": "Group", + "founded_year": "2016" + }, + "product": { + "name": "friend", + "category": "cell", + "price": 584.57, + "stock_quantity": 505 + }, + "customer": { + "name": "Kevin Reed", + "age": 50, + "country": "Reunion" + } + }, + { + "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'", + "company": { + "name": "Villa PLC", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "add", + "category": "seem", + "price": 344.19, + "stock_quantity": 113 + }, + "customer": { + "name": "Jerry Wilson", + "age": 39, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Espinoza Inc", + "sector": "Inc", + "founded_year": "1972" + }, + "product": { + "name": "ahead", + "category": "throw", + "price": 358.74, + "stock_quantity": 114 + }, + "customer": { + "name": "Jason Walker", + "age": 59, + "country": "San Marino" + } + }, + { + "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", + "company": { + "name": "Church, Holland and Johnson", + "sector": "LLC", + "founded_year": "1984" + }, + "product": { + "name": "return", + "category": "charge", + "price": 550.41, + "stock_quantity": 258 + }, + "customer": { + "name": "Kaitlin Parker", + "age": 73, + "country": "Tunisia" + } + }, + { + "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'", + "company": { + "name": "Baker-Campbell", + "sector": "and Sons", + "founded_year": "2006" + }, + "product": { + "name": "activity", + "category": "choice", + "price": 645.08, + "stock_quantity": 600 + }, + "customer": { + "name": "Michael Jefferson", + "age": 41, + "country": "Iraq" + } + }, + { + "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", + "company": { + "name": "White-Matthews", + "sector": "Inc", + "founded_year": "1977" + }, + "product": { + "name": "artist", + "category": "company", + "price": 862.4, + "stock_quantity": 587 + }, + "customer": { + "name": "Francisco Anderson", + "age": 66, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Norton, Rodriguez and Johnson", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "require", + "category": "level", + "price": 887.08, + "stock_quantity": 12 + }, + "customer": { + "name": "Michelle Martinez", + "age": 28, + "country": "Svalbard & Jan Mayen Islands" + } + }, + { + "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", + "company": { + "name": "Johnson Group", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "thought", + "category": "high", + "price": 239.52, + "stock_quantity": 391 + }, + "customer": { + "name": "Lauren Johnson", + "age": 49, + "country": "Saint Kitts and Nevis" + } + }, + { + "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", + "company": { + "name": "Moody-Barajas", + "sector": "and Sons", + "founded_year": "1994" + }, + "product": { + "name": "need", + "category": "government", + "price": 998.26, + "stock_quantity": 4 + }, + "customer": { + "name": "Randy Hansen", + "age": 72, + "country": "Cyprus" + } + }, + { + "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'", + "company": { + "name": "Sullivan LLC", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "politics", + "category": "energy", + "price": 907.64, + "stock_quantity": 50 + }, + "customer": { + "name": "Cynthia Franklin", + "age": 41, + "country": "Saint Martin" + } + }, + { + "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'", + "company": { + "name": "Murray-Gutierrez", + "sector": "Group", + "founded_year": "2011" + }, + "product": { + "name": "land", + "category": "nor", + "price": 779.91, + "stock_quantity": 950 + }, + "customer": { + "name": "John Sanders", + "age": 49, + "country": "Cape Verde" + } + }, + { + "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", + "company": { + "name": "Garcia-Frank", + "sector": "Ltd", + "founded_year": "2017" + }, + "product": { + "name": "take", + "category": "put", + "price": 551.17, + "stock_quantity": 777 + }, + "customer": { + "name": "Stephanie Thomas", + "age": 57, + "country": "Bermuda" + } + }, + { + "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", + "company": { + "name": "Carpenter, Alexander and Hunter", + "sector": "LLC", + "founded_year": "1985" + }, + "product": { + "name": "owner", + "category": "increase", + "price": 676.39, + "stock_quantity": 376 + }, + "customer": { + "name": "Lee Martinez", + "age": 36, + "country": "Saint Vincent and the Grenadines" + } + }, + { + "natural_query": "List all products of Mills, Gomez and Clark ordered by rating from highest to lowest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Mills, Gomez and Clark' ORDER BY rating DESC", + "company": { + "name": "Mills, Gomez and Clark", + "sector": "LLC", + "founded_year": "2007" + }, + "product": { + "name": "main", + "category": "TV", + "price": 77.26, + "stock_quantity": 38 + }, + "customer": { + "name": "Christian Moss", + "age": 38, + "country": "Bangladesh" + } + }, + { + "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", + "company": { + "name": "Stokes, Hernandez and Ford", + "sector": "Ltd", + "founded_year": "1987" + }, + "product": { + "name": "score", + "category": "study", + "price": 996.41, + "stock_quantity": 566 + }, + "customer": { + "name": "Timothy Jones", + "age": 71, + "country": "Azerbaijan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Key-Duncan'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Key-Duncan", + "sector": "Ltd", + "founded_year": "2021" + }, + "product": { + "name": "minute", + "category": "animal", + "price": 56.07, + "stock_quantity": 627 + }, + "customer": { + "name": "Brandon Brooks", + "age": 32, + "country": "Tokelau" + } + }, + { + "natural_query": "What are the top 9 products by revenue for Rice-Taylor last quarter?", + "sql_query": "SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Rice-Taylor' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 9", + "company": { + "name": "Rice-Taylor", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "adult", + "category": "civil", + "price": 158.01, + "stock_quantity": 277 + }, + "customer": { + "name": "Trevor Stein", + "age": 69, + "country": "Bahrain" + } + }, + { + "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'", + "company": { + "name": "Gray, Summers and Sheppard", + "sector": "PLC", + "founded_year": "2001" + }, + "product": { + "name": "summer", + "category": "mother", + "price": 682.37, + "stock_quantity": 175 + }, + "customer": { + "name": "Russell Rodriguez", + "age": 54, + "country": "Cameroon" + } + }, + { + "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", + "company": { + "name": "Perez-Logan", + "sector": "PLC", + "founded_year": "1991" + }, + "product": { + "name": "standard", + "category": "agree", + "price": 278.31, + "stock_quantity": 816 + }, + "customer": { + "name": "Latasha Rodriguez", + "age": 58, + "country": "Portugal" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Hughes, Mendoza and Arnold'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Hughes, Mendoza and Arnold", + "sector": "PLC", + "founded_year": "1971" + }, + "product": { + "name": "street", + "category": "development", + "price": 436.89, + "stock_quantity": 699 + }, + "customer": { + "name": "Christopher Wood", + "age": 30, + "country": "Sudan" + } + }, + { + "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'", + "company": { + "name": "Miller Inc", + "sector": "Inc", + "founded_year": "2000" + }, + "product": { + "name": "cause", + "category": "who", + "price": 839.3, + "stock_quantity": 766 + }, + "customer": { + "name": "Mr. Anthony Rodriguez", + "age": 24, + "country": "Gibraltar" + } + }, + { + "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", + "company": { + "name": "Shields, Perez and Cox", + "sector": "PLC", + "founded_year": "1982" + }, + "product": { + "name": "improve", + "category": "material", + "price": 195.11, + "stock_quantity": 414 + }, + "customer": { + "name": "Nancy Johnson", + "age": 56, + "country": "Liechtenstein" + } + }, + { + "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", + "company": { + "name": "Cain, Guerrero and Harris", + "sector": "Inc", + "founded_year": "1993" + }, + "product": { + "name": "phone", + "category": "section", + "price": 770.68, + "stock_quantity": 324 + }, + "customer": { + "name": "Angel Hart", + "age": 76, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Floyd, Larson and Foster", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "impact", + "category": "article", + "price": 749.81, + "stock_quantity": 718 + }, + "customer": { + "name": "Amanda Tran", + "age": 61, + "country": "Mozambique" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bailey, Hayes and Oconnor'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bailey, Hayes and Oconnor", + "sector": "PLC", + "founded_year": "2018" + }, + "product": { + "name": "add", + "category": "democratic", + "price": 823.13, + "stock_quantity": 720 + }, + "customer": { + "name": "Angela Dixon", + "age": 43, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Johnson, Jones and Melendez", + "sector": "Ltd", + "founded_year": "1977" + }, + "product": { + "name": "month", + "category": "close", + "price": 656.38, + "stock_quantity": 97 + }, + "customer": { + "name": "Sarah Smith", + "age": 72, + "country": "Cuba" + } + }, + { + "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'", + "company": { + "name": "Stein-Santana", + "sector": "Ltd", + "founded_year": "2002" + }, + "product": { + "name": "tree", + "category": "protect", + "price": 289.41, + "stock_quantity": 557 + }, + "customer": { + "name": "Carl Walker", + "age": 34, + "country": "Ireland" + } + }, + { + "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", + "company": { + "name": "Livingston LLC", + "sector": "Group", + "founded_year": "1988" + }, + "product": { + "name": "her", + "category": "must", + "price": 833.14, + "stock_quantity": 121 + }, + "customer": { + "name": "Danielle Johnson", + "age": 58, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Harvey, Wood and Ellis", + "sector": "Ltd", + "founded_year": "1976" + }, + "product": { + "name": "decade", + "category": "among", + "price": 348.73, + "stock_quantity": 100 + }, + "customer": { + "name": "Joseph Gray", + "age": 67, + "country": "Kyrgyz Republic" + } + }, + { + "natural_query": "What is the total profit for each supplier in Bright, Taylor and Green?", + "sql_query": "SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Bright, Taylor and Green' GROUP BY supplier ORDER BY total_profit DESC", + "company": { + "name": "Bright, Taylor and Green", + "sector": "and Sons", + "founded_year": "1981" + }, + "product": { + "name": "property", + "category": "theory", + "price": 782.06, + "stock_quantity": 31 + }, + "customer": { + "name": "Corey Gaines", + "age": 71, + "country": "Suriname" + } + }, + { + "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", + "company": { + "name": "Alexander-Harris", + "sector": "PLC", + "founded_year": "1970" + }, + "product": { + "name": "when", + "category": "myself", + "price": 315.3, + "stock_quantity": 948 + }, + "customer": { + "name": "Matthew Thompson", + "age": 43, + "country": "Guinea-Bissau" + } + }, + { + "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", + "company": { + "name": "Edwards, Hernandez and Galloway", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "human", + "category": "federal", + "price": 427.1, + "stock_quantity": 546 + }, + "customer": { + "name": "Brian Arroyo", + "age": 46, + "country": "Somalia" + } + }, + { + "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", + "company": { + "name": "Taylor-Coleman", + "sector": "Group", + "founded_year": "1979" + }, + "product": { + "name": "role", + "category": "not", + "price": 404.27, + "stock_quantity": 524 + }, + "customer": { + "name": "Sandra Adams", + "age": 43, + "country": "Oman" + } + }, + { + "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'", + "company": { + "name": "Becker Inc", + "sector": "and Sons", + "founded_year": "2001" + }, + "product": { + "name": "those", + "category": "across", + "price": 933.82, + "stock_quantity": 826 + }, + "customer": { + "name": "Emily Barajas", + "age": 41, + "country": "Martinique" + } + }, + { + "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'", + "company": { + "name": "Hall, Dixon and Smith", + "sector": "LLC", + "founded_year": "2024" + }, + "product": { + "name": "my", + "category": "ball", + "price": 160.8, + "stock_quantity": 595 + }, + "customer": { + "name": "Sarah Dunn", + "age": 18, + "country": "Tokelau" + } + }, + { + "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", + "company": { + "name": "Marsh, Brown and Johnson", + "sector": "PLC", + "founded_year": "1974" + }, + "product": { + "name": "authority", + "category": "truth", + "price": 500.47, + "stock_quantity": 970 + }, + "customer": { + "name": "Kyle Carrillo", + "age": 79, + "country": "Heard Island and McDonald Islands" + } + }, + { + "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'", + "company": { + "name": "Allen, Gonzalez and Holt", + "sector": "LLC", + "founded_year": "1973" + }, + "product": { + "name": "do", + "category": "job", + "price": 677.06, + "stock_quantity": 971 + }, + "customer": { + "name": "Dana Webb", + "age": 71, + "country": "Aruba" + } + }, + { + "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'", + "company": { + "name": "Harris, Murphy and Hansen", + "sector": "Group", + "founded_year": "1995" + }, + "product": { + "name": "car", + "category": "plan", + "price": 248.62, + "stock_quantity": 701 + }, + "customer": { + "name": "Eileen Parker", + "age": 65, + "country": "Hungary" + } + }, + { + "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", + "company": { + "name": "Scott PLC", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "decision", + "category": "boy", + "price": 118.35, + "stock_quantity": 477 + }, + "customer": { + "name": "Tracy Chang", + "age": 49, + "country": "Korea" + } + }, + { + "natural_query": "What is the total quantity for each category in Kirby PLC?", + "sql_query": "SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Kirby PLC' GROUP BY category ORDER BY total_quantity DESC", + "company": { + "name": "Kirby PLC", + "sector": "Inc", + "founded_year": "1991" + }, + "product": { + "name": "over", + "category": "standard", + "price": 777.9, + "stock_quantity": 726 + }, + "customer": { + "name": "Samuel Travis", + "age": 31, + "country": "Netherlands" + } + }, + { + "natural_query": "List all products of Patton, West and Pena ordered by rating from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Patton, West and Pena' ORDER BY rating ASC", + "company": { + "name": "Patton, West and Pena", + "sector": "PLC", + "founded_year": "1980" + }, + "product": { + "name": "risk", + "category": "design", + "price": 91.43, + "stock_quantity": 26 + }, + "customer": { + "name": "Emily Jones", + "age": 56, + "country": "New Zealand" + } + }, + { + "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'", + "company": { + "name": "Gonzalez-Henderson", + "sector": "and Sons", + "founded_year": "1971" + }, + "product": { + "name": "painting", + "category": "foreign", + "price": 946.46, + "stock_quantity": 519 + }, + "customer": { + "name": "Lisa Brown", + "age": 56, + "country": "Croatia" + } + }, + { + "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", + "company": { + "name": "Oliver, Goodwin and Higgins", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "establish", + "category": "wear", + "price": 663.3, + "stock_quantity": 218 + }, + "customer": { + "name": "Timothy Sanchez", + "age": 31, + "country": "Gambia" + } + }, + { + "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'", + "company": { + "name": "Schmitt, Dawson and Jones", + "sector": "Inc", + "founded_year": "1992" + }, + "product": { + "name": "specific", + "category": "staff", + "price": 845.55, + "stock_quantity": 44 + }, + "customer": { + "name": "Patricia Russell", + "age": 54, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Wheeler, Jones and Franklin", + "sector": "PLC", + "founded_year": "2002" + }, + "product": { + "name": "guess", + "category": "reduce", + "price": 891.77, + "stock_quantity": 670 + }, + "customer": { + "name": "Christopher Reid", + "age": 62, + "country": "Ecuador" + } + }, + { + "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'", + "company": { + "name": "Durham-Ortega", + "sector": "and Sons", + "founded_year": "1982" + }, + "product": { + "name": "commercial", + "category": "partner", + "price": 803.41, + "stock_quantity": 562 + }, + "customer": { + "name": "Sarah Schroeder", + "age": 45, + "country": "Spain" + } + }, + { + "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'", + "company": { + "name": "Larson Ltd", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "eat", + "category": "bar", + "price": 894.07, + "stock_quantity": 48 + }, + "customer": { + "name": "Stacie Pearson", + "age": 46, + "country": "Dominica" + } + }, + { + "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", + "company": { + "name": "Lee Group", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "section", + "category": "easy", + "price": 576.71, + "stock_quantity": 901 + }, + "customer": { + "name": "Lynn Thompson MD", + "age": 27, + "country": "Cyprus" + } + }, + { + "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", + "company": { + "name": "Castro-Moreno", + "sector": "PLC", + "founded_year": "1978" + }, + "product": { + "name": "trial", + "category": "send", + "price": 38.65, + "stock_quantity": 308 + }, + "customer": { + "name": "Joshua Allen", + "age": 79, + "country": "Panama" + } + }, + { + "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", + "company": { + "name": "Stafford LLC", + "sector": "Inc", + "founded_year": "2013" + }, + "product": { + "name": "enough", + "category": "industry", + "price": 742.5, + "stock_quantity": 813 + }, + "customer": { + "name": "Gary Fleming", + "age": 79, + "country": "Montserrat" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Jarvis, Jones and Smith for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Jarvis, Jones and Smith'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Jarvis, Jones and Smith", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "other", + "category": "which", + "price": 266.55, + "stock_quantity": 705 + }, + "customer": { + "name": "Kelly Green", + "age": 47, + "country": "Sri Lanka" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Bush, Smith and Kirk'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Bush, Smith and Kirk", + "sector": "Inc", + "founded_year": "2009" + }, + "product": { + "name": "bank", + "category": "lawyer", + "price": 401.67, + "stock_quantity": 434 + }, + "customer": { + "name": "Brandon Davis", + "age": 38, + "country": "Brazil" + } + }, + { + "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", + "company": { + "name": "Harvey-Little", + "sector": "Group", + "founded_year": "1981" + }, + "product": { + "name": "body", + "category": "pass", + "price": 156.42, + "stock_quantity": 100 + }, + "customer": { + "name": "Donna Thomas", + "age": 31, + "country": "Antigua and Barbuda" + } + }, + { + "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'", + "company": { + "name": "Crosby, Mullins and Olson", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "truth", + "category": "grow", + "price": 225.8, + "stock_quantity": 951 + }, + "customer": { + "name": "Marissa Hernandez", + "age": 42, + "country": "Kiribati" + } + }, + { + "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", + "company": { + "name": "Diaz LLC", + "sector": "Ltd", + "founded_year": "2013" + }, + "product": { + "name": "amount", + "category": "white", + "price": 155.93, + "stock_quantity": 219 + }, + "customer": { + "name": "Patricia Ramirez", + "age": 51, + "country": "Greece" + } + }, + { + "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", + "company": { + "name": "Larsen, Williams and Robertson", + "sector": "Ltd", + "founded_year": "1979" + }, + "product": { + "name": "policy", + "category": "suggest", + "price": 749.59, + "stock_quantity": 797 + }, + "customer": { + "name": "Barbara Matthews", + "age": 26, + "country": "Ecuador" + } + }, + { + "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", + "company": { + "name": "Clarke-May", + "sector": "Inc", + "founded_year": "1987" + }, + "product": { + "name": "time", + "category": "area", + "price": 554.85, + "stock_quantity": 364 + }, + "customer": { + "name": "Joe Miller", + "age": 31, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Herrera-Lowery", + "sector": "PLC", + "founded_year": "2023" + }, + "product": { + "name": "six", + "category": "amount", + "price": 843.2, + "stock_quantity": 186 + }, + "customer": { + "name": "Tammy Melton", + "age": 63, + "country": "Finland" + } + }, + { + "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", + "company": { + "name": "Olson-Clark", + "sector": "Inc", + "founded_year": "2002" + }, + "product": { + "name": "production", + "category": "prevent", + "price": 197.51, + "stock_quantity": 904 + }, + "customer": { + "name": "Brett Powell", + "age": 68, + "country": "India" + } + }, + { + "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", + "company": { + "name": "Bruce, Phillips and Carney", + "sector": "and Sons", + "founded_year": "2017" + }, + "product": { + "name": "wear", + "category": "carry", + "price": 428.77, + "stock_quantity": 906 + }, + "customer": { + "name": "Jennifer Braun", + "age": 79, + "country": "Saudi Arabia" + } + }, + { + "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", + "company": { + "name": "Sweeney, Berry and Allen", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "fact", + "category": "newspaper", + "price": 802.29, + "stock_quantity": 793 + }, + "customer": { + "name": "Monica Price", + "age": 38, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "White-Allen", + "sector": "and Sons", + "founded_year": "2014" + }, + "product": { + "name": "he", + "category": "Mr", + "price": 329.61, + "stock_quantity": 543 + }, + "customer": { + "name": "Christopher Moran", + "age": 21, + "country": "Ecuador" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Wilson Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Wilson Ltd", + "sector": "LLC", + "founded_year": "1997" + }, + "product": { + "name": "hotel", + "category": "available", + "price": 151.49, + "stock_quantity": 93 + }, + "customer": { + "name": "Heather Murphy", + "age": 67, + "country": "Micronesia" + } + }, + { + "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", + "company": { + "name": "Saunders-Hoffman", + "sector": "Ltd", + "founded_year": "2012" + }, + "product": { + "name": "leg", + "category": "audience", + "price": 501.37, + "stock_quantity": 466 + }, + "customer": { + "name": "David Mendez", + "age": 60, + "country": "United States Virgin Islands" + } + }, + { + "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'", + "company": { + "name": "Clark PLC", + "sector": "Inc", + "founded_year": "1994" + }, + "product": { + "name": "contain", + "category": "parent", + "price": 214.17, + "stock_quantity": 345 + }, + "customer": { + "name": "Amanda Cameron", + "age": 48, + "country": "Trinidad and Tobago" + } + }, + { + "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", + "company": { + "name": "Davis, Williams and Martinez", + "sector": "Ltd", + "founded_year": "1970" + }, + "product": { + "name": "agree", + "category": "article", + "price": 819.28, + "stock_quantity": 350 + }, + "customer": { + "name": "Richard Martin", + "age": 23, + "country": "Faroe Islands" + } + }, + { + "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", + "company": { + "name": "Hansen LLC", + "sector": "PLC", + "founded_year": "2012" + }, + "product": { + "name": "yes", + "category": "expect", + "price": 966.56, + "stock_quantity": 271 + }, + "customer": { + "name": "Angela Rodriguez", + "age": 34, + "country": "Iceland" + } + }, + { + "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'", + "company": { + "name": "Elliott PLC", + "sector": "LLC", + "founded_year": "2023" + }, + "product": { + "name": "focus", + "category": "might", + "price": 415.76, + "stock_quantity": 974 + }, + "customer": { + "name": "Hannah Wheeler", + "age": 34, + "country": "San Marino" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Smith-Arnold'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Smith-Arnold", + "sector": "Ltd", + "founded_year": "2004" + }, + "product": { + "name": "push", + "category": "among", + "price": 621.81, + "stock_quantity": 453 + }, + "customer": { + "name": "Stacy Huffman", + "age": 55, + "country": "Denmark" + } + }, + { + "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", + "company": { + "name": "Long-Cole", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "himself", + "category": "stop", + "price": 110.42, + "stock_quantity": 535 + }, + "customer": { + "name": "Tyler Weaver", + "age": 77, + "country": "Madagascar" + } + }, + { + "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", + "company": { + "name": "Choi Group", + "sector": "PLC", + "founded_year": "1999" + }, + "product": { + "name": "kitchen", + "category": "try", + "price": 988.47, + "stock_quantity": 527 + }, + "customer": { + "name": "William Newman", + "age": 80, + "country": "Latvia" + } + }, + { + "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'", + "company": { + "name": "Reed, Ellis and Lee", + "sector": "Group", + "founded_year": "2013" + }, + "product": { + "name": "growth", + "category": "truth", + "price": 433.26, + "stock_quantity": 591 + }, + "customer": { + "name": "Julia Baldwin", + "age": 59, + "country": "Antigua and Barbuda" + } + }, + { + "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", + "company": { + "name": "Cordova-Lopez", + "sector": "LLC", + "founded_year": "1975" + }, + "product": { + "name": "impact", + "category": "foreign", + "price": 554.08, + "stock_quantity": 833 + }, + "customer": { + "name": "Alicia King", + "age": 67, + "country": "Azerbaijan" + } + }, + { + "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", + "company": { + "name": "Wells-Garcia", + "sector": "Group", + "founded_year": "1978" + }, + "product": { + "name": "service", + "category": "but", + "price": 678.15, + "stock_quantity": 777 + }, + "customer": { + "name": "Gary Barrett", + "age": 61, + "country": "Korea" + } + }, + { + "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", + "company": { + "name": "Davidson-Jacobs", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "not", + "category": "discussion", + "price": 182.11, + "stock_quantity": 393 + }, + "customer": { + "name": "Beverly Williams", + "age": 21, + "country": "Guadeloupe" + } + }, + { + "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", + "company": { + "name": "Baker, Smith and Le", + "sector": "PLC", + "founded_year": "2000" + }, + "product": { + "name": "activity", + "category": "western", + "price": 743.06, + "stock_quantity": 176 + }, + "customer": { + "name": "Patrick Davis", + "age": 40, + "country": "Bolivia" + } + }, + { + "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", + "company": { + "name": "Jackson-Taylor", + "sector": "LLC", + "founded_year": "1987" + }, + "product": { + "name": "pass", + "category": "manage", + "price": 178.18, + "stock_quantity": 421 + }, + "customer": { + "name": "Diane Porter", + "age": 49, + "country": "Saint Lucia" + } + }, + { + "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", + "company": { + "name": "Fuller, Ross and Miller", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "onto", + "category": "trial", + "price": 491.41, + "stock_quantity": 373 + }, + "customer": { + "name": "Nichole Rodriguez", + "age": 76, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Bates LLC", + "sector": "LLC", + "founded_year": "2021" + }, + "product": { + "name": "set", + "category": "subject", + "price": 845.02, + "stock_quantity": 530 + }, + "customer": { + "name": "William Prince", + "age": 48, + "country": "Mayotte" + } + }, + { + "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", + "company": { + "name": "Blackwell-Sanchez", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "reveal", + "category": "security", + "price": 784.4, + "stock_quantity": 33 + }, + "customer": { + "name": "William Smith", + "age": 64, + "country": "Denmark" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Kelly and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Kelly and Sons", + "sector": "Inc", + "founded_year": "2015" + }, + "product": { + "name": "six", + "category": "resource", + "price": 39.56, + "stock_quantity": 292 + }, + "customer": { + "name": "Kristin Williams", + "age": 36, + "country": "Guatemala" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Craig and Sons'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Craig and Sons", + "sector": "LLC", + "founded_year": "1995" + }, + "product": { + "name": "let", + "category": "service", + "price": 69.23, + "stock_quantity": 533 + }, + "customer": { + "name": "Jessica Johnson", + "age": 47, + "country": "Norfolk Island" + } + }, + { + "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", + "company": { + "name": "Kane, Gonzales and Merritt", + "sector": "and Sons", + "founded_year": "2024" + }, + "product": { + "name": "focus", + "category": "lose", + "price": 566.88, + "stock_quantity": 623 + }, + "customer": { + "name": "Donna Rowland", + "age": 68, + "country": "Iran" + } + }, + { + "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", + "company": { + "name": "Allen, Miller and Duke", + "sector": "PLC", + "founded_year": "2007" + }, + "product": { + "name": "same", + "category": "score", + "price": 764.74, + "stock_quantity": 917 + }, + "customer": { + "name": "Thomas Patton", + "age": 44, + "country": "United States Minor Outlying Islands" + } + }, + { + "natural_query": "What are the top 10 products by sales for Ferguson Group this year?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Ferguson Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10", + "company": { + "name": "Ferguson Group", + "sector": "Inc", + "founded_year": "1976" + }, + "product": { + "name": "field", + "category": "check", + "price": 656.57, + "stock_quantity": 628 + }, + "customer": { + "name": "Aaron Lewis", + "age": 77, + "country": "Mozambique" + } + }, + { + "natural_query": "What are the top 5 categories by sales for customers aged 25-35 in Waters LLC for the last quarter?", + "sql_query": "SELECT p.category, SUM(s.sales) as total_sales\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Waters LLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Waters LLC", + "sector": "Group", + "founded_year": "1980" + }, + "product": { + "name": "power", + "category": "meeting", + "price": 393.75, + "stock_quantity": 19 + }, + "customer": { + "name": "Nichole Garrison", + "age": 28, + "country": "Bangladesh" + } + }, + { + "natural_query": "List all products of Jimenez, Mcdaniel and Estes ordered by price from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Jimenez, Mcdaniel and Estes' ORDER BY price ASC", + "company": { + "name": "Jimenez, Mcdaniel and Estes", + "sector": "PLC", + "founded_year": "2003" + }, + "product": { + "name": "season", + "category": "skill", + "price": 616.47, + "stock_quantity": 5 + }, + "customer": { + "name": "Rebecca Miller", + "age": 57, + "country": "Bhutan" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'West-Johnson'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "West-Johnson", + "sector": "Inc", + "founded_year": "2011" + }, + "product": { + "name": "young", + "category": "pay", + "price": 400.05, + "stock_quantity": 487 + }, + "customer": { + "name": "Tyler Reed", + "age": 49, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "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", + "company": { + "name": "Wilson-Ramirez", + "sector": "LLC", + "founded_year": "1999" + }, + "product": { + "name": "particularly", + "category": "include", + "price": 456.82, + "stock_quantity": 786 + }, + "customer": { + "name": "Brooke Pollard", + "age": 68, + "country": "Namibia" + } + }, + { + "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", + "company": { + "name": "Cochran-Kennedy", + "sector": "Ltd", + "founded_year": "1993" + }, + "product": { + "name": "experience", + "category": "your", + "price": 47.01, + "stock_quantity": 525 + }, + "customer": { + "name": "Cynthia Beck", + "age": 75, + "country": "Togo" + } + }, + { + "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", + "company": { + "name": "Johnson Ltd", + "sector": "Group", + "founded_year": "1984" + }, + "product": { + "name": "compare", + "category": "any", + "price": 124.54, + "stock_quantity": 522 + }, + "customer": { + "name": "Charlotte Peterson", + "age": 26, + "country": "Guatemala" + } + }, + { + "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", + "company": { + "name": "Gonzalez-Thomas", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "join", + "category": "control", + "price": 476.79, + "stock_quantity": 661 + }, + "customer": { + "name": "Jorge Olson", + "age": 46, + "country": "Bouvet Island (Bouvetoya)" + } + }, + { + "natural_query": "What is the total profit for each category in Shields-Franco?", + "sql_query": "SELECT category, SUM(profit) as total_profit FROM sales WHERE company_name = 'Shields-Franco' GROUP BY category ORDER BY total_profit DESC", + "company": { + "name": "Shields-Franco", + "sector": "and Sons", + "founded_year": "2009" + }, + "product": { + "name": "always", + "category": "word", + "price": 745.2, + "stock_quantity": 494 + }, + "customer": { + "name": "Connie Preston", + "age": 64, + "country": "Bahrain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Silva-Brown'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Silva-Brown", + "sector": "LLC", + "founded_year": "1986" + }, + "product": { + "name": "huge", + "category": "force", + "price": 851.03, + "stock_quantity": 175 + }, + "customer": { + "name": "Jordan Gardner", + "age": 30, + "country": "Sierra Leone" + } + }, + { + "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", + "company": { + "name": "Williams, Jones and Lee", + "sector": "PLC", + "founded_year": "1998" + }, + "product": { + "name": "age", + "category": "real", + "price": 182.25, + "stock_quantity": 308 + }, + "customer": { + "name": "Brittney Boyd", + "age": 79, + "country": "Uganda" + } + }, + { + "natural_query": "How many orders were placed for Taylor-Ford between 2024-07-05 and 2024-09-16?", + "sql_query": "SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Taylor-Ford' AND order_date BETWEEN '2024-07-05' AND '2024-09-16'", + "company": { + "name": "Taylor-Ford", + "sector": "Ltd", + "founded_year": "1980" + }, + "product": { + "name": "run", + "category": "central", + "price": 720.39, + "stock_quantity": 64 + }, + "customer": { + "name": "Bobby Watson", + "age": 53, + "country": "Bhutan" + } + }, + { + "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'", + "company": { + "name": "Reese, Fitzgerald and Rodriguez", + "sector": "PLC", + "founded_year": "1984" + }, + "product": { + "name": "newspaper", + "category": "people", + "price": 669.24, + "stock_quantity": 129 + }, + "customer": { + "name": "Andrea Blevins", + "age": 75, + "country": "Indonesia" + } + }, + { + "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'", + "company": { + "name": "Phillips, Hess and Ramirez", + "sector": "LLC", + "founded_year": "2020" + }, + "product": { + "name": "hot", + "category": "discuss", + "price": 212.12, + "stock_quantity": 612 + }, + "customer": { + "name": "Brittany Cisneros", + "age": 40, + "country": "Congo" + } + }, + { + "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", + "company": { + "name": "Carter, Miller and Thompson", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "air", + "category": "campaign", + "price": 424.22, + "stock_quantity": 931 + }, + "customer": { + "name": "Emily Dyer", + "age": 52, + "country": "Luxembourg" + } + }, + { + "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", + "company": { + "name": "Stephens, Hayes and Mendoza", + "sector": "Inc", + "founded_year": "1970" + }, + "product": { + "name": "at", + "category": "stand", + "price": 940.52, + "stock_quantity": 281 + }, + "customer": { + "name": "Annette Yang", + "age": 52, + "country": "Zimbabwe" + } + }, + { + "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", + "company": { + "name": "Peters Ltd", + "sector": "and Sons", + "founded_year": "1989" + }, + "product": { + "name": "within", + "category": "more", + "price": 61.55, + "stock_quantity": 450 + }, + "customer": { + "name": "Bryan Smith MD", + "age": 21, + "country": "Taiwan" + } + }, + { + "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", + "company": { + "name": "Rodriguez, Hayes and Salazar", + "sector": "Group", + "founded_year": "1996" + }, + "product": { + "name": "situation", + "category": "action", + "price": 16.36, + "stock_quantity": 249 + }, + "customer": { + "name": "Stacy Brown", + "age": 67, + "country": "Cayman Islands" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Rice Ltd'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Rice Ltd", + "sector": "Ltd", + "founded_year": "1974" + }, + "product": { + "name": "sure", + "category": "total", + "price": 732.92, + "stock_quantity": 917 + }, + "customer": { + "name": "Billy Mcintyre", + "age": 80, + "country": "Tonga" + } + }, + { + "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", + "company": { + "name": "Webb LLC", + "sector": "Group", + "founded_year": "2006" + }, + "product": { + "name": "sell", + "category": "rule", + "price": 420.18, + "stock_quantity": 259 + }, + "customer": { + "name": "Amy Cabrera", + "age": 71, + "country": "Kyrgyz Republic" + } + }, + { + "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", + "company": { + "name": "Garcia Inc", + "sector": "Inc", + "founded_year": "2021" + }, + "product": { + "name": "guy", + "category": "camera", + "price": 320.38, + "stock_quantity": 781 + }, + "customer": { + "name": "Sylvia Brown", + "age": 23, + "country": "Kenya" + } + }, + { + "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", + "company": { + "name": "Mckenzie-Young", + "sector": "and Sons", + "founded_year": "2019" + }, + "product": { + "name": "away", + "category": "beat", + "price": 354.58, + "stock_quantity": 820 + }, + "customer": { + "name": "Stephanie Thompson", + "age": 39, + "country": "Netherlands" + } + }, + { + "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", + "company": { + "name": "Roberson, Reese and Lee", + "sector": "Ltd", + "founded_year": "1981" + }, + "product": { + "name": "night", + "category": "which", + "price": 187.74, + "stock_quantity": 796 + }, + "customer": { + "name": "Dr. Frank Todd", + "age": 73, + "country": "China" + } + }, + { + "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", + "company": { + "name": "Clark, Finley and Cobb", + "sector": "Group", + "founded_year": "2002" + }, + "product": { + "name": "hand", + "category": "activity", + "price": 630.03, + "stock_quantity": 587 + }, + "customer": { + "name": "Ryan Johnson", + "age": 57, + "country": "Argentina" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Foley, Nelson and Lambert'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Foley, Nelson and Lambert", + "sector": "and Sons", + "founded_year": "1997" + }, + "product": { + "name": "alone", + "category": "father", + "price": 42.38, + "stock_quantity": 400 + }, + "customer": { + "name": "Thomas Malone", + "age": 24, + "country": "Chad" + } + }, + { + "natural_query": "What are the top 6 products by sales for Giles-Bishop this month?", + "sql_query": "SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Giles-Bishop' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6", + "company": { + "name": "Giles-Bishop", + "sector": "Group", + "founded_year": "2023" + }, + "product": { + "name": "machine", + "category": "senior", + "price": 825.68, + "stock_quantity": 998 + }, + "customer": { + "name": "Deborah Gillespie", + "age": 67, + "country": "Poland" + } + }, + { + "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'", + "company": { + "name": "Bryan-Evans", + "sector": "PLC", + "founded_year": "2014" + }, + "product": { + "name": "model", + "category": "anything", + "price": 670.34, + "stock_quantity": 812 + }, + "customer": { + "name": "William Ramirez", + "age": 76, + "country": "Spain" + } + }, + { + "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\n FROM sales s\n JOIN products p ON s.product_id = p.product_id\n JOIN customers c ON s.customer_id = c.customer_id\n WHERE c.age BETWEEN 25 AND 35\n AND s.company_name = 'Pratt PLC'\n AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH)\n GROUP BY p.category\n ORDER BY total_sales DESC\n LIMIT 5", + "company": { + "name": "Pratt PLC", + "sector": "PLC", + "founded_year": "1995" + }, + "product": { + "name": "include", + "category": "anyone", + "price": 364.41, + "stock_quantity": 728 + }, + "customer": { + "name": "Kelly Rivers", + "age": 67, + "country": "Sao Tome and Principe" + } + }, + { + "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", + "company": { + "name": "Johnson-Mullen", + "sector": "Inc", + "founded_year": "2005" + }, + "product": { + "name": "sell", + "category": "church", + "price": 481.91, + "stock_quantity": 794 + }, + "customer": { + "name": "Crystal Nguyen", + "age": 28, + "country": "South Africa" + } + }, + { + "natural_query": "List all products of Schneider, Johnson and Dunn ordered by stock_quantity from lowest to highest.", + "sql_query": "SELECT * FROM products WHERE company_name = 'Schneider, Johnson and Dunn' ORDER BY stock_quantity ASC", + "company": { + "name": "Schneider, Johnson and Dunn", + "sector": "Inc", + "founded_year": "1996" + }, + "product": { + "name": "father", + "category": "culture", + "price": 908.93, + "stock_quantity": 893 + }, + "customer": { + "name": "Jeffrey Terry", + "age": 48, + "country": "Anguilla" + } + }, + { + "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'", + "company": { + "name": "Brown-Palmer", + "sector": "Group", + "founded_year": "1972" + }, + "product": { + "name": "big", + "category": "apply", + "price": 861.96, + "stock_quantity": 621 + }, + "customer": { + "name": "Tara Hall", + "age": 43, + "country": "Central African Republic" + } + }, + { + "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", + "company": { + "name": "Henderson LLC", + "sector": "and Sons", + "founded_year": "1993" + }, + "product": { + "name": "mission", + "category": "project", + "price": 165.45, + "stock_quantity": 811 + }, + "customer": { + "name": "Claudia Thomas", + "age": 52, + "country": "Rwanda" + } + }, + { + "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", + "company": { + "name": "Sims-Johnson", + "sector": "and Sons", + "founded_year": "1987" + }, + "product": { + "name": "something", + "category": "floor", + "price": 267.87, + "stock_quantity": 558 + }, + "customer": { + "name": "David Smith", + "age": 58, + "country": "United States Minor Outlying Islands" + } + }, + { + "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", + "company": { + "name": "Rogers, Brown and Woods", + "sector": "Group", + "founded_year": "1991" + }, + "product": { + "name": "fish", + "category": "no", + "price": 838.0, + "stock_quantity": 343 + }, + "customer": { + "name": "Amy Shannon", + "age": 37, + "country": "Mauritania" + } + }, + { + "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", + "company": { + "name": "Valenzuela, Olsen and Brown", + "sector": "PLC", + "founded_year": "2022" + }, + "product": { + "name": "century", + "category": "require", + "price": 476.29, + "stock_quantity": 288 + }, + "customer": { + "name": "Nicole Hernandez", + "age": 48, + "country": "South Africa" + } + }, + { + "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'", + "company": { + "name": "Rivera and Sons", + "sector": "Inc", + "founded_year": "2007" + }, + "product": { + "name": "teacher", + "category": "force", + "price": 43.28, + "stock_quantity": 636 + }, + "customer": { + "name": "Alyssa Rice", + "age": 78, + "country": "Latvia" + } + } +] \ No newline at end of file