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.

75
Duration
31s
Input Tokens
961
Output Tokens
1284
Cost
$0.01
Context
Input
Create an index to speed up queries filtering by active users.
Expected output
CREATE INDEX idx_users_is_active ON users(is_active);
Model output
CREATE INDEX IF NOT EXISTS idx_users_active_true ON users (user_id) WHERE is_active;