SQL from a Question (AI)

Turn a plain-English question plus your schema into a ready-to-run SQL query.

๐Ÿ”’ Bring-your-own-key โ€” your key is sent only with this request and never stored. Get a key from Anthropic or OpenAI.

About this tool

Paste your schema and ask a question in plain English to get a single SQL query plus a one-line explanation. Bring your own key.

Frequently asked questions

Do I need to provide a schema?

Providing your tables and columns gives far more accurate queries; without it the AI guesses reasonable names.

Which SQL dialect is produced?

Standard SQL by default — mention your database (PostgreSQL, MySQL, SQL Server) in the schema box for dialect-specific syntax.

Do I need my own API key?

Yes. This tool is bring-your-own-key: paste your own Anthropic or OpenAI key and it is used only for that single request — never stored on our servers.

An unhandled error has occurred. Reload ร—