01
Ask in plain English
Type a question. Widen's agents search your schema for the right tables and columns, draft SQL with an explanation and confidence, and verify it against Postgres before showing you.
- Agents discover the schema themselves — no giant context dump
- SQL is verified against PostgreSQL before it reaches your editor
- One repair if it doesn't parse, then it stops
- Or write raw SQL yourself when you don't need the agents
- Persistent sessions that survive restarts
Which users have spent the most?
SELECT u.name, SUM(o.total_cents) / 100.0 AS spent
FROM users u
JOIN orders o ON o.user_id = u.id
GROUP BY u.name
ORDER BY spent DESC
LIMIT 5 | name | spent |
|---|---|
| Ada Lovelace | $482.50 |
| Grace Hopper | $391.00 |
| Alan Turing | $274.20 |
| Katherine Johnson | $168.75 |