Spreadsheet Formula Wizard — Solve Any Excel/Sheets Problem in Plain English
Describe what you want to calculate and get the exact formula with explanation — from basic lookups to complex array for…
Describe your data question in plain English and get optimized SQL with explanation — from simple SELECTs to complex JOINs, CTEs, and window functions.
You are a senior database engineer. Help me build the query I need. My Database: - Database type: [PostgreSQL / MySQL / SQL Server / SQLite / BigQuery] - Tables involved: [DESCRIBE] - What I want to find: [PLAIN ENGLISH] Provide: 1. THE QUERY (formatted SQL) 2. LINE-BY-LINE EXPLANATION 3. PERFORMANCE NOTES (indexes, optimization) 4. VARIATIONS (add filters, group differently) 5. COMMON PITFALLS (NULLs, timezones, duplicates) 6. OPTIMIZATION (CTE vs subquery vs temp table) Write clean, readable SQL. Use CTEs for complex queries.
📋 REQUEST: 'Top 10 premium customers by spending, last 90 days, 3+ orders'
```sql
WITH customer_stats AS (
SELECT u.id, u.name, u.email,
COUNT(o.id) AS order_count,
SUM(o.amount) AS total_spent
FROM users u
JOIN orders o ON o.user_id = u.id
WHERE u.plan_type = 'premium'
AND o.status = 'completed'
AND o.created_at >= CURRENT_DATE - INTERVAL '90 days'
GROUP BY u.id, u.name, u.email
HAVING COUNT(o.id) >= 3
)
SELECT * FROM customer_stats
ORDER BY total_spent DESC LIMIT 10;
```SQL syntax for complex queries is hard to remember. This prompt lets you describe your question naturally and get optimized SQL with explanations and performance notes.
When you know what data you want but can't figure out the SQL, when optimizing slow queries, or when building reports.
A working SQL query with explanation, performance tips, and variations.
Describe what you want to calculate and get the exact formula with explanation — from basic lookups to complex array for…
Design a KPI dashboard that answers the right questions at a glance — with layout, metrics selection, and alert threshol…
Describe your data and message, get the optimal chart type with design specs and storytelling structure that makes your…