▶ Show me top 10 customers by revenue
SELECT
c.name, SUM(o.total) AS revenue
FROM
customers c
JOIN orders o ON c.id = o.customer_id
GROUP BY c.name
ORDER BY revenue DESC
LIMIT 10;
✓ 10 rows · 24ms
QueryMind translates English questions into precise SQL, executes them, and returns results — instantly.