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
4s
Input Tokens
621
Output Tokens
164
Cost
$0.00
Context
Input
Show customer names (name) and the models(model) of the vehicles they bought.
Expected output
SELECT c.name, v.model FROM sales s JOIN customers c ON s.customer_id = c.customer_id JOIN vehicles v ON s.vehicle_id = v.vehicle_id;
Model output
SELECT c.name, v.model FROM sales s JOIN customers c ON s.customer_id = c.customer_id JOIN vehicles v ON s.vehicle_id = v.vehicle_id;