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
28s
Input Tokens
563
Output Tokens
693
Cost
$0.01
Context
Input
List all unique cities where customers are from.
Expected output
SELECT DISTINCT city FROM customers;
Model output
SELECT DISTINCT city FROM customers WHERE city IS NOT NULL ORDER BY city;