SQL Generation

Turn plain-English questions into correct SQL against a schema. The skill behind analytics chat, natural-language dashboards, and 'just ask the database' interfaces.

100
Duration
3s
Input Tokens
742
Output Tokens
119
Cost
$0.00
Context
Input
What are the 5 most expensive vehicles ever sold, showing the model and sale price.
Expected output
SELECT v.model, s.sale_price FROM sales s JOIN vehicles v ON s.vehicle_id = v.vehicle_id ORDER BY s.sale_price DESC LIMIT 5;
Model output
SELECT v.model, s.sale_price
FROM sales s
JOIN vehicles v ON s.vehicle_id = v.vehicle_id
ORDER BY s.sale_price DESC
LIMIT 5;