Most "AI SQL generator" tools write a query against a schema you describe to them by hand. QueryFlow's Ask panel already sees your real tables and columns, so the query it writes is the one that actually runs.
No credit card. 14 days. Cancel in one click.
Quick answer: QueryFlow's Ask panel is an AI SQL generator that reads your actual connection, its tables, columns, and types, before writing a query, instead of guessing at a generic schema. Type a question, get back SQL in the right dialect for your warehouse, then run it, insert it into the editor, or watch it. Bring your own key for Claude, GPT-6, Gemini, or Grok.
Most tools that call themselves an AI SQL generator are a text box: you paste a rough description of your tables, and it writes SQL against that description. The catch is obvious once you use it against anything real. You either paste your entire schema by hand every time, or the model quietly guesses at column names and gets some of them wrong. Either way, the SQL it hands back isn't guaranteed to run.
Say you have a BigQuery connection with a dataset called analytics_prod, and you type this into the Ask panel:
"Which plan had the most new subscriptions in the last 7 days?"
Because the Ask panel already has schema access through the connection, it doesn't ask you to describe the table. It comes back with:
SELECT plan_name, COUNT(*) AS new_subscriptions FROM `analytics_prod.subscriptions` WHERE created_at >= TIMESTAMP_SUB(CURRENT_TIMESTAMP(), INTERVAL 7 DAY) GROUP BY plan_name ORDER BY new_subscriptions DESC LIMIT 1;
Backtick-quoted project.dataset.table, GoogleSQL's TIMESTAMP_SUB, real column names from your actual schema. Point the same question at a Databricks connection instead, and it comes back written against catalog.schema.table with Databricks SQL date functions, no extra instruction needed, because the panel already knows which warehouse it's talking to.
The Ask panel reads table names, column names, and types through the connection you're already using, plus recent query results and errors when you attach them. That's the difference between a generic SQL generator and one that produces something you can run immediately. It's still worth reading the SQL before you run it against anything that writes data, the panel is good, not infallible, and a wrong WHERE clause on a SELECT is a lot cheaper than one on a DELETE.
Answers default to a single sentence plus the SQL that produced it, so you can skim it and move on. Type /verbose if you want to see the full reasoning and the step cards showing which tables and columns it actually looked at, useful the first time you're checking whether it read the right dataset.
Once the panel writes a query, three buttons sit under it: Insert into editor, Run, and Watch this. That last one is the difference between generating a one-off query and turning it into something that checks itself, click it and the same SQL becomes a Watch with a condition and a destination, no retyping.
It doesn't design your schema, tune indexes, or replace understanding what a query does before you run it. It's also not free-floating: it needs your own API key under Settings → AI Assistant and a real connection to read schema from. If you want SQL written against a schema you haven't connected anything to yet, a generic AI chat tool is still the faster path for that narrower case.
The Ask panel doesn't lock you into one vendor. Add a key for Anthropic, OpenAI, Google, or xAI and pick Claude Sonnet 5, Haiku 4.5, GPT-6 Sol, GPT-6 Luna, Gemini 3.5 Flash, Flash-Lite, or Grok 4.20 from the model switcher, or leave it on Auto and let a cheap, fast model handle exploring your schema and recent results while a stronger model writes the final query. That split matters for a generator specifically, most of the cost in generating SQL against a real schema is in reading through table and column names, not in the writing itself, so routing that exploration step to a cheaper model keeps a session of ten or twenty questions from adding up to real money.
Generating a query is often the first step, not the last one. Once the panel writes something you'd want to see again, checking whether a table stayed empty, whether a count crossed a line, the natural next move isn't to keep asking the same question every morning, it's to turn the SQL into a Watch once and stop asking. That's the same button, Watch this, sitting under any answer the panel gives you, generated SQL or hand-written.
ChatGPT writes SQL against a schema you describe to it in the prompt, or a guess at a common one. QueryFlow's Ask panel already sees your actual tables, columns, and types through your connection, and can run the query it writes directly against the warehouse.
Whichever one you've added a key for: Claude Sonnet 5, Haiku 4.5, GPT-6 Sol, GPT-6 Luna, Gemini 3.5 Flash, Flash-Lite, or Grok 4.20. Auto mode picks a cheap model to explore and a stronger one to write the final query.
Yes. The Ask panel writes in the dialect of whichever connection is active, Snowflake SQL, GoogleSQL for BigQuery, Databricks SQL, standard Postgres or MySQL, and so on.
About 2 cents per question, billed by the model provider on your own API key. QueryFlow doesn't add a markup or a separate AI charge.
14-day free trial, no card. Bring your own key and ask your actual database.
No credit card. 14 days. Cancel in one click.