text stringlengths 0 220 |
|---|
WHERE c.age BETWEEN 25 AND 35 |
AND s.company_name = 'Meza Inc' |
AND s.sale_date >= DATE_SUB(CURDATE(), INTERVAL 3 MONTH) |
GROUP BY p.category |
ORDER BY total_sales DESC |
LIMIT 5 |
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' |
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' |
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 |
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' |
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 |
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 |
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 |
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' |
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 |
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' |
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' |
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 |
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 |
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 |
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 |
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 |
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 |
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' |
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 |
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 |
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 |
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 |
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' |
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' |
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 |
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' |
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' |
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 |
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' |
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 |
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' |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.