text stringlengths 0 220 |
|---|
SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Wheeler, Fleming and Davis' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 |
Natural Query: Show me all products in the behind category with a price over $834.57. |
SQL Query: SELECT * FROM products WHERE category = 'behind' AND price > 834.57 |
Natural Query: List all customers and their total order value for Scott, Smith and Miller. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Scott, Smith and Miller' GROUP BY c.customer_id |
Natural Query: Show me all products in the young category with a price over $679.89. |
SQL Query: SELECT * FROM products WHERE category = 'young' AND price > 679.89 |
Natural Query: What are the top 5 products by sales for Hernandez, Dennis and Graham this month? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hernandez, Dennis and Graham' AND period = 'this month' GROUP BY product_name ORDER BY total_sales DESC LIMIT 5 |
Natural Query: What is the total quantity for each country in Lewis, Mayer and Trevino? |
SQL Query: SELECT country, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Lewis, Mayer and Trevino' GROUP BY country ORDER BY total_quantity DESC |
Natural Query: What is the total sales for each category in Hughes-Figueroa? |
SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Hughes-Figueroa' GROUP BY category ORDER BY total_sales DESC |
Natural Query: How many orders were placed for Thomas-Townsend between 2024-06-09 and 2024-06-16? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Thomas-Townsend' AND order_date BETWEEN '2024-06-09' AND '2024-06-16' |
Natural Query: What are the top 9 products by sales for Davis, Dixon and Arnold all time? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Davis, Dixon and Arnold' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 9 |
Natural Query: What are the top 7 products by customers for Salinas-Holloway this month? |
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Salinas-Holloway' AND period = 'this month' GROUP BY product_name ORDER BY total_customers DESC LIMIT 7 |
Natural Query: What are the top 6 products by customers for Watson, Blackwell and Adkins all time? |
SQL Query: SELECT product_name, SUM(customers) as total_customers FROM sales WHERE company_name = 'Watson, Blackwell and Adkins' AND period = 'all time' GROUP BY product_name ORDER BY total_customers DESC LIMIT 6 |
Natural Query: List all products of Woodward-Freeman ordered by price from highest to lowest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Woodward-Freeman' ORDER BY price DESC |
Natural Query: What is the total quantity for each supplier in Bennett, Vasquez and Lowe? |
SQL Query: SELECT supplier, SUM(quantity) as total_quantity FROM sales WHERE company_name = 'Bennett, Vasquez and Lowe' GROUP BY supplier ORDER BY total_quantity DESC |
Natural Query: What is the total quantity of all products for Green Inc? |
SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Green Inc' |
Natural Query: What is the total profit for each supplier in Lewis, Smith and Gibbs? |
SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Lewis, Smith and Gibbs' GROUP BY supplier ORDER BY total_profit DESC |
Natural Query: How many orders were placed for Martin, Jimenez and Andrews between 2024-05-30 and 2024-07-12? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Martin, Jimenez and Andrews' AND order_date BETWEEN '2024-05-30' AND '2024-07-12' |
Natural Query: What is the total sales for each category in Carson Group? |
SQL Query: SELECT category, SUM(sales) as total_sales FROM sales WHERE company_name = 'Carson Group' GROUP BY category ORDER BY total_sales DESC |
Natural Query: Show me all products in the couple category with a price over $295.87. |
SQL Query: SELECT * FROM products WHERE category = 'couple' AND price > 295.87 |
Natural Query: What are the top 4 products by orders for Romero-Zimmerman this month? |
SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Romero-Zimmerman' AND period = 'this month' GROUP BY product_name ORDER BY total_orders DESC LIMIT 4 |
Natural Query: What is the total quantity of all products for Allen-Murray? |
SQL Query: SELECT TOTAL(quantity) as result FROM products WHERE company_name = 'Allen-Murray' |
Natural Query: How many orders were placed for Parker, Bruce and Smith between 2024-07-17 and 2024-07-28? |
SQL Query: SELECT COUNT(*) as order_count FROM orders WHERE company_name = 'Parker, Bruce and Smith' AND order_date BETWEEN '2024-07-17' AND '2024-07-28' |
Natural Query: What are the top 3 products by sales for Burns Inc all time? |
SQL Query: SELECT product_name, SUM(sales) as total_sales FROM sales WHERE company_name = 'Burns Inc' AND period = 'all time' GROUP BY product_name ORDER BY total_sales DESC LIMIT 3 |
Natural Query: List all customers and their total order value for Medina PLC. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Medina PLC' GROUP BY c.customer_id |
Natural Query: What are the top 10 products by orders for Smith-Gordon all time? |
SQL Query: SELECT product_name, SUM(orders) as total_orders FROM sales WHERE company_name = 'Smith-Gordon' AND period = 'all time' GROUP BY product_name ORDER BY total_orders DESC LIMIT 10 |
Natural Query: List all customers and their total order value for Maxwell, Jackson and Franklin. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Maxwell, Jackson and Franklin' GROUP BY c.customer_id |
Natural Query: Show me all products in the behavior category with a price over $42.36. |
SQL Query: SELECT * FROM products WHERE category = 'behavior' AND price > 42.36 |
Natural Query: List all customers and their total order value for Carlson Inc. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Carlson Inc' GROUP BY c.customer_id |
Natural Query: What is the maximum quantity of all products for Zimmerman PLC? |
SQL Query: SELECT MAXIMUM(quantity) as result FROM products WHERE company_name = 'Zimmerman PLC' |
Natural Query: What is the total profit for each supplier in Gordon, Powers and Dixon? |
SQL Query: SELECT supplier, SUM(profit) as total_profit FROM sales WHERE company_name = 'Gordon, Powers and Dixon' GROUP BY supplier ORDER BY total_profit DESC |
Natural Query: List all customers and their total order value for Conrad PLC. |
SQL Query: SELECT c.customer_name, SUM(o.order_total) as total_value FROM customers c JOIN orders o ON c.customer_id = o.customer_id WHERE c.company_name = 'Conrad PLC' GROUP BY c.customer_id |
Natural Query: What is the minimum price of all products for Clayton, Barnes and Green? |
SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Clayton, Barnes and Green' |
Natural Query: List all products of Clark Ltd ordered by rating from lowest to highest. |
SQL Query: SELECT * FROM products WHERE company_name = 'Clark Ltd' ORDER BY rating ASC |
Natural Query: What is the minimum price of all products for Peters-Robinson? |
SQL Query: SELECT MINIMUM(price) as result FROM products WHERE company_name = 'Peters-Robinson' |
Natural Query: Show me all products in the discussion category with a price over $992.76. |
SQL Query: SELECT * FROM products WHERE category = 'discussion' AND price > 992.76 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.