text stringlengths 0 220 |
|---|
Natural Query: What are the top 10 products by orders for Donaldson-Moore this month? |
SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Donaldson-Moore' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 |
Natural Query: List all products of Kelly, Mercado and Garcia ordered by price from lowest to highest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Kelly, Mercado and Garcia' ORDER BY price ASC |
Natural Query: How many orders were placed for Garcia Inc between 2024-04-27 and 2024-05-11? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Garcia Inc' AND order_date BETWEEN '2024-04-27' AND '2024-05-11' |
Natural Query: Show me all products in the receive category with a price over $329.71. |
SQL Query: SELECT * FROM products WHERE category = 'receive' AND price > 329.71 |
Natural Query: List all customers and their total order value for Williams-Griffin. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Williams-Griffin' GROUP BY c.customer_id |
Natural Query: Show me all products in the nearly category with a price over $297.31. |
SQL Query: SELECT * FROM products WHERE category = 'nearly' AND price > 297.31 |
Natural Query: What are the top 4 products by revenue for Ayala, Snyder and Johnston all time? |
SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Ayala, Snyder and Johnston' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 |
Natural Query: Show me all products in the industry category with a price over $502.74. |
SQL Query: SELECT * FROM products WHERE category = 'industry' AND price > 502.74 |
Natural Query: What are the top 5 products by customers for Beltran PLC this month? |
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Beltran PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 5 |
Natural Query: Show me all products in the act category with a price over $776.07. |
SQL Query: SELECT * FROM products WHERE category = 'act' AND price > 776.07 |
Natural Query: List all customers and their total order value for Gilmore-Dennis. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Gilmore-Dennis' GROUP BY c.customer_id |
Natural Query: Show me all products in the on category with a price over $301.01. |
SQL Query: SELECT * FROM products WHERE category = 'on' AND price > 301.01 |
Natural Query: How many orders were placed for Strong and Sons between 2024-04-10 and 2024-08-22? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Strong and Sons' AND order_date BETWEEN '2024-04-10' AND '2024-08-22' |
Natural Query: List all products of Franklin Inc ordered by rating from highest to lowest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Franklin Inc' ORDER BY rating DESC |
Natural Query: What are the top 4 products by customers for Lucas-Dalton this month? |
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Lucas-Dalton' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 4 |
Natural Query: How many orders were placed for Chambers-Murray between 2024-02-20 and 2024-06-09? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Chambers-Murray' AND order_date BETWEEN '2024-02-20' AND '2024-06-09' |
Natural Query: What are the top 7 products by sales for Williams Inc last quarter? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Williams Inc' AND period = 'last quarter' GROUP BY product_name ORDER BY total_sales DESC LIMIT 7 |
Natural Query: Show me all products in the somebody category with a price over $944.57. |
SQL Query: SELECT * FROM products WHERE category = 'somebody' AND price > 944.57 |
Natural Query: Show me all products in the truth category with a price over $554.14. |
SQL Query: SELECT * FROM products WHERE category = 'truth' AND price > 554.14 |
Natural Query: What are the top 5 categories by sales for customers aged 25-35 in Moyer Group for the last quarter? |
SQL Query: SELECT p.category, SUM(s.sales) as total_sales |
FROM sales s |
JOIN products p ON s.product_id = p.product_id |
JOIN customers c ON s.customer_id = c.customer_id |
WHERE c.age BETWEEN 25 AND 35 |
AND s.company_name = 'Moyer Group' |
AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) |
GROUP BY p.category |
ORDER BY total_sales DESC |
LIMIT 5 |
Natural Query: List all products of Harris PLC ordered by stock_quantity from highest to lowest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Harris PLC' ORDER BY stock_quantity DESC |
Natural Query: What are the top 4 products by revenue for Smith-Hansen last quarter? |
SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Smith-Hansen' AND period = 'last quarter' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 4 |
Natural Query: What is the total quantity for each country in Atkinson-Mccarthy? |
SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Atkinson-Mccarthy' GROUP BY country ORDER BY total_quantity DESC |
Natural Query: What is the total quantity for each supplier in Wheeler, Fleming and Caldwell? |
SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Wheeler, Fleming and Caldwell' GROUP BY supplier ORDER BY total_quantity DESC |
Natural Query: Show me all products in the poor category with a price over $668.28. |
SQL Query: SELECT * FROM products WHERE category = 'poor' AND price > 668.28 |
Natural Query: List all products of Smith, Scott and Baker ordered by stock_quantity from highest to lowest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Smith, Scott and Baker' ORDER BY stock_quantity DESC |
Natural Query: What are the top 5 products by orders for Turner LLC this month? |
SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Turner LLC' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 5 |
Natural Query: Show me all products in the morning category with a price over $846.64. |
SQL Query: SELECT * FROM products WHERE category = 'morning' AND price > 846.64 |
Natural Query: How many orders were placed for Fox, Simmons and Le between 2024-03-10 and 2024-09-06? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Fox, Simmons and Le' AND order_date BETWEEN '2024-03-10' AND '2024-09-06' |
Natural Query: What is the average quantity of all products for Cruz PLC? |
SQL Query: SELECT AVERAGE(quantity) as result FROM products WHERE company_name = 'Cruz PLC' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.