Query Bench
Write, run and refine SQL or Python, with AI assistance and results you can inspect.
- SQL in your source’s own dialect, or Python
- AI edits you approve before they apply
- Pin results to a dashboard
SELECT plan, sum(amount) FILTER (WHERE paid_at >= '2026-09-01') / 100.0 AS sep, sum(amount) FILTER (WHERE paid_at < '2026-09-01') / 100.0 AS aug FROM invoices WHERE status = 'paid' AND paid_at >= '2026-08-01' AND paid_at < '2026-10-01' GROUP BY plan ORDER BY sep DESC;
| # | plan | sep | aug |
|---|---|---|---|
| 1 | Growth | 48,210.00 | 46,775.00 |
| 2 | Scale | 21,400.00 | 20,950.00 |
| 3 | Starter | 12,904.50 | 12,311.00 |
sepaug
sep$82,514.50+3.1% on aug
Interactive example with sample data