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
6s
Input Tokens
2
Output Tokens
137
Cost
$0.02
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;