text stringlengths 0 220 |
|---|
Natural Query: List all products of Watkins, Williams and Bell ordered by price from lowest to highest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Watkins, Williams and Bell' ORDER BY price ASC |
Natural Query: Show me all products in the close category with a price over $756.11. |
SQL Query: SELECT * FROM products WHERE category = 'close' AND price > 756.11 |
Natural Query: What is the maximum quantity of all products for Wilson, Huffman and Stout? |
SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Wilson, Huffman and Stout' |
Natural Query: Show me all products in the inside category with a price over $621.59. |
SQL Query: SELECT * FROM products WHERE category = 'inside' AND price > 621.59 |
Natural Query: What is the total quantity for each category in Stephens, Harrington and Conner? |
SQL Query: SELECT category, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Stephens, Harrington and Conner' GROUP BY category ORDER BY total_quantity DESC |
Natural Query: Show me all products in the third category with a price over $222.06. |
SQL Query: SELECT * FROM products WHERE category = 'third' AND price > 222.06 |
Natural Query: List all products of Franco-Mccall ordered by price from highest to lowest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Franco-Mccall' ORDER BY price DESC |
Natural Query: List all products of Ali-Miller ordered by rating from lowest to highest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Ali-Miller' ORDER BY rating ASC |
Natural Query: Show me all products in the car category with a price over $845.77. |
SQL Query: SELECT * FROM products WHERE category = 'car' AND price > 845.77 |
Natural Query: What is the total quantity for each country in Padilla-Potter? |
SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Padilla-Potter' GROUP BY country ORDER BY total_quantity DESC |
Natural Query: What is the total profit for each supplier in Martin, Hale and Bell? |
SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Martin, Hale and Bell' GROUP BY supplier ORDER BY total_profit DESC |
Natural Query: Show me all products in the main category with a price over $547.62. |
SQL Query: SELECT * FROM products WHERE category = 'main' AND price > 547.62 |
Natural Query: How many orders were placed for Chang-Sanchez between 2023-10-01 and 2023-12-15? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Chang-Sanchez' AND order_date BETWEEN '2023-10-01' AND '2023-12-15' |
Natural Query: Show me all products in the those category with a price over $880.14. |
SQL Query: SELECT * FROM products WHERE category = 'those' AND price > 880.14 |
Natural Query: What is the total quantity of all products for Perez-Gillespie? |
SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Perez-Gillespie' |
Natural Query: List all products of Long, Turner and Richards ordered by price from highest to lowest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Long, Turner and Richards' ORDER BY price DESC |
Natural Query: What is the total price of all products for Johnson-Christian? |
SQL Query: SELECT TOTAL(price) as result FROM products WHERE company_name = 'Johnson-Christian' |
Natural Query: What is the total sales for each category in Delgado LLC? |
SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Delgado LLC' GROUP BY category ORDER BY total_sales DESC |
Natural Query: How many orders were placed for Barnes PLC between 2024-03-17 and 2024-08-29? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Barnes PLC' AND order_date BETWEEN '2024-03-17' AND '2024-08-29' |
Natural Query: What are the top 6 products by revenue for Mccall Inc all time? |
SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Mccall Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 6 |
Natural Query: What is the minimum quantity of all products for Mitchell, Cunningham and Hartman? |
SQL Query: SELECT MINIMUM(quantity) as result FROM products WHERE company_name = 'Mitchell, Cunningham and Hartman' |
Natural Query: What is the total sales for each country in Robinson, Parks and Wright? |
SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Robinson, Parks and Wright' GROUP BY country ORDER BY total_sales DESC |
Natural Query: What are the top 3 products by sales for Villegas and Sons this month? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Villegas and Sons' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 |
Natural Query: How many orders were placed for Cervantes, Nguyen and Jefferson between 2024-06-24 and 2024-07-15? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cervantes, Nguyen and Jefferson' AND order_date BETWEEN '2024-06-24' AND '2024-07-15' |
Natural Query: How many orders were placed for Cortez Group between 2024-06-22 and 2024-09-11? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Cortez Group' AND order_date BETWEEN '2024-06-22' AND '2024-09-11' |
Natural Query: List all products of Acosta Group ordered by rating from lowest to highest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Acosta Group' ORDER BY rating ASC |
Natural Query: How many orders were placed for Carey, Mayer and Castillo between 2024-04-23 and 2024-08-24? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Carey, Mayer and Castillo' AND order_date BETWEEN '2024-04-23' AND '2024-08-24' |
Natural Query: What is the total sales for each country in Reyes Ltd? |
SQL Query: SELECT country, SUM(sales) as total_sales FROM sales WHERE company_name = 'Reyes Ltd' GROUP BY country ORDER BY total_sales DESC |
Natural Query: What are the top 7 products by orders for Vargas Group all time? |
SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Vargas Group' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 7 |
Natural Query: List all customers and their total order value for Carter-Mitchell. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Carter-Mitchell' GROUP BY c.customer_id |
Natural Query: What are the top 3 products by customers for Sanchez PLC this month? |
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Sanchez PLC' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 3 |
Natural Query: List all customers and their total order value for Russo LLC. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Russo LLC' GROUP BY c.customer_id |
Natural Query: What are the top 8 products by revenue for Parker Inc this year? |
SQL Query: SELECT product_name, SUM(revenue) as total_revenue FROM sales WHERE company_name = 'Parker Inc' AND period = 'this year' GROUP BY product_name ORDER BY total_revenue DESC LIMIT 8 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.