text stringlengths 0 220 |
|---|
LIMIT 5 |
Natural Query: What are the top 3 products by sales for Vincent Group last quarter? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Vincent Group' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 |
Natural Query: What is the total quantity for each country in Ellis-Hoffman? |
SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Ellis-Hoffman' GROUP BY country ORDER BY total_quantity DESC |
Natural Query: List all products of Rogers Group ordered by rating from lowest to highest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Rogers Group' ORDER BY rating ASC |
Natural Query: List all customers and their total order value for Jackson PLC. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Jackson PLC' GROUP BY c.customer_id |
Natural Query: What is the total quantity for each category in Pena and Sons? |
SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Pena and Sons' GROUP BY category ORDER BY total_quantity DESC |
Natural Query: What is the total quantity of all products for Roach, Montgomery and Davis? |
SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Roach, Montgomery and Davis' |
Natural Query: What is the average quantity of all products for Goodman-Blair? |
SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Goodman-Blair' |
Natural Query: Show me all products in the hundred category with a price over $262.54. |
SQL Query: SELECT * FROM products WHERE category = 'hundred' AND price > 262.54 |
Natural Query: What are the top 5 products by sales for Moss, Evans and Ortiz this month? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Moss, Evans and Ortiz' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 |
Natural Query: What are the top 7 products by orders for Roberts Ltd this year? |
SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Roberts Ltd' AND period = 'this year' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 |
Natural Query: List all customers and their total order value for Baker, Forbes and Todd. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Baker, Forbes and Todd' GROUP BY c.customer_id |
Natural Query: What are the top 10 products by sales for Hernandez Group this year? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hernandez Group' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 10 |
Natural Query: List all customers and their total order value for Chavez and Sons. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Chavez and Sons' GROUP BY c.customer_id |
Natural Query: What are the top 9 products by sales for Hodge and Sons all time? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hodge and Sons' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 |
Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Davis, Jones and Powell for the last quarter? |
SQL Query: SELECT p.category, SUM(s.sales) as total_sales |
FROM sales s |
JOIN products p ON s.product_id = p.product_id |
JOIN customers c ON s.customer_id = c.customer_id |
WHERE c.age BETWEEN 25 AND 35 |
AND s.company_name = 'Davis, Jones and Powell' |
AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) |
GROUP BY p.category |
ORDER BY total_sales DESC |
LIMIT 5 |
Natural Query: How many orders were placed for Owens, Wright and Davenport between 2024-05-26 and 2024-08-31? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Owens, Wright and Davenport' AND order_date BETWEEN '2024-05-26' AND '2024-08-31' |
Natural Query: List all customers and their total order value for Murphy Ltd. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Murphy Ltd' GROUP BY c.customer_id |
Natural Query: What is the maximum price of all products for Owen Group? |
SQL Query: SELECT MAXIMUM(price) as result FROM products WHERE company_name = 'Owen Group' |
Natural Query: What are the top 6 products by sales for Huff, Anderson and Grimes this year? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Huff, Anderson and Grimes' AND period = 'this year' GROUP BY product_name ORDER BY total_sales DESC LIMIT 6 |
Natural Query: Show me all products in the international category with a price over $326.62. |
SQL Query: SELECT * FROM products WHERE category = 'international' AND price > 326.62 |
Natural Query: What is the maximum quantity of all products for Poole PLC? |
SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Poole PLC' |
Natural Query: What is the average price of all products for Moore, King and Howell? |
SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Moore, King and Howell' |
Natural Query: Show me all products in the develop category with a price over $123.15. |
SQL Query: SELECT * FROM products WHERE category = 'develop' AND price > 123.15 |
Natural Query: List all products of Taylor, Garcia and Snyder ordered by stock_quantity from lowest to highest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Taylor, Garcia and Snyder' ORDER BY stock_quantity ASC |
Natural Query: How many orders were placed for Brown-Donaldson between 2023-12-22 and 2024-02-13? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Brown-Donaldson' AND order_date BETWEEN '2023-12-22' AND '2024-02-13' |
Natural Query: What is the average rating of all products for Mitchell LLC? |
SQL Query: SELECT AVERAGE(rating) as result FROM products WHERE company_name = 'Mitchell LLC' |
Natural Query: What is the total quantity for each supplier in Kelley, Barron and Craig? |
SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Kelley, Barron and Craig' GROUP BY supplier ORDER BY total_quantity DESC |
Natural Query: What is the average price of all products for Jones LLC? |
SQL Query: SELECT AVERAGE(price) as result FROM products WHERE company_name = 'Jones LLC' |
Natural Query: What is the total sales for each category in Johnson-Wagner? |
SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Johnson-Wagner' GROUP BY category ORDER BY total_sales DESC |
Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Case-Rodriguez for the last quarter? |
SQL Query: SELECT p.category, SUM(s.sales) as total_sales |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.