Tabby SQL › Guides

Guide · Ask Tabby

Plain English to SQL, on your device

Updated 2 December 2026

Short answer: in Tabby SQL, open a connection, choose Ask Tabby… and type a question such as "which customers ordered last week?". Tabby writes the SQL from your schema with Apple Intelligence on your device, checks it, and lets you run it read-only or open it in a tab to keep editing.

Why plain-English SQL helps

You know the question; the hard part is remembering which table holds what, how the joins go, and the date syntax for this particular database. An AI SQL query generator does that first draft for you. The catch with most of them is that you paste your schema, and sometimes your data, into a website. Tabby SQL does it on your own device instead.

How Ask Tabby works

  1. You ask. Type a question in plain words. Tabby knows which database you are connected to: PostgreSQL, MySQL, MariaDB or SQLite.
  2. Tabby reads the schema. It picks the tables that matter for your question and describes their columns, with a few sample values, to the model on your device.
  3. The model writes SQL. Apple Intelligence writes a query, lists the tables it used and up to three things it assumed, such as what "last week" means.
  4. Tabby checks it. The query must be a single read-only SELECT, use only tables that exist, and pass the database's own EXPLAIN. If a check fails, Tabby sends the error back to the model and asks once more.
  5. You decide. Read the SQL, then Run read-only, or Open in tab to keep editing it like any other query.
Tabby SQL
Tabby answering 'how many users have no email' with the SQL it wrote, the checks it passed, and buttons to run it read-only or open it in a tab

Questions to try

On the built-in sample shop database (choose Try the sample database on the empty connection list), try:

A question like "which customers ordered last week?" on PostgreSQL becomes:

SELECT DISTINCT c.name, c.email
FROM customers c
JOIN orders o ON o.customer_id = c.id
WHERE o.ordered_at >= now() - interval '7 days'
ORDER BY c.name;

Tips for better answers

Questions

Is the AI SQL generator free?

Yes. Ask Tabby is part of Tabby SQL, which is free. It uses the Apple Intelligence model already on your device, so there is no API key or usage fee.

Does my schema or data leave my device?

No. Tabby reads your table and column names, and a few sample values so it knows what the data looks like, and hands them to the model on your device. Nothing is uploaded.

Which devices can use Ask Tabby?

A Mac, iPhone or iPad that supports Apple Intelligence, on macOS 26, iOS 26 or iPadOS 26, with Apple Intelligence turned on. On other devices the rest of Tabby SQL works as usual.

Can Ask Tabby change or delete data?

No. Every query it writes is checked to be a single read-only SELECT before you can run it. To change data, open the query in a tab and edit it yourself.

Which SQL dialects does it write?

PostgreSQL, MySQL (and MariaDB) and SQLite. Tabby tells the model which database you are connected to, so date functions and quoting match.

Try Tabby SQL, free

PostgreSQL, MySQL, MariaDB and SQLite on Mac, iPhone and iPad. No account, no ads, no tracking.

Download on theApp Store