Ask in plain language
Describe what you want to know. The AI SQL generator writes a single SELECT query that only uses existing tables and columns, and sets up filter values as {{parameter}} so you can fill them in yourself.
Platform · Module · SQL Explorer
The SQL Explorer with AI is ENABLE's query environment on your own PostgreSQL data warehouse. You ask a question in plain language, the AI turns it into SQL and ENABLE checks the query first with a read-only query plan. Then you run it yourself and view the result as a table or chart.
1SELECT r.region,2 SUM(i.revenue) FILTER (WHERE i.year = 2026) AS revenue_2026,3 SUM(i.revenue) FILTER (WHERE i.year = 2025) AS revenue_20254FROM sales.invoices i5JOIN master.region r ON r.region_id = i.region_id6WHERE i.quarter = 37GROUP BY r.region8ORDER BY revenue_2026 DESC;
The SQL Explorer with AI lets you ask questions of your own data warehouse, even if you don't know SQL. You type, for example, "Which ten customers had the highest revenue this quarter?", the AI writes a SQL query for it and ENABLE checks that query before anything runs. The calculation is done by your database, not by the language model.
For those who do write SQL, it is a full query editor with tabs, a table browser, parameters and export. The AI then helps you explain or fix a query.
Everything runs read-only. The AI sees the structure of your data warehouse, never the rows of data themselves, and an AI query is never run automatically: you press run yourself.
Features
Describe what you want to know. The AI SQL generator writes a single SELECT query that only uses existing tables and columns, and sets up filter values as {{parameter}} so you can fill them in yourself.
Have the AI explain a query in plain terms, or give it an error message and get a corrected version back. Useful for inherited or long queries.
Every AI query is checked in advance with a read-only query plan. If the query is wrong or very heavy, ENABLE asks the AI for a better version and shows any warnings.
Only SELECT and WITH queries are allowed, inside a read-only transaction. Write statements, system tables and PostgreSQL admin functions are blocked.
Search and sort the result, view it as a bar or line chart and export to CSV (opens directly in Excel) or JSON, up to 50,000 rows per export.
Save good queries for your organisation. If you publish one as an API, each publication gets a version number you can roll back to.
Text-to-SQL only works well if the AI knows your data warehouse. That is why ENABLE builds a data dictionary for each organisation: all tables with their columns, data types, declared relationships (foreign keys) and an estimate of the number of rows. That dictionary goes to the model together with your question, via the OpenAI API. Rows of data, passwords and connection details are not included.
The AI then writes a single read-only query. ENABLE checks it for forbidden statements and runs a query plan on it. If the query fails, or is unnecessarily heavy (for example a DISTINCT over an entire fact table), ENABLE asks the AI once for an improved version. The query lands in the editor, with a note saying whether the check passed. Only when you press run does it execute on your data warehouse.
An AI SQL generator on business data needs hard limits, built into the technology and not just into the instructions given to the AI.
A good question often comes back. That is why you can save queries under a recognisable name; they are then available to your organisation's client admins. If you work with {{parameters}}, you fill in a period or customer code, for example, on each run, without changing the SQL.
If you want another system to fetch the same figures, publish a saved query as a REST endpoint through the Data API. Each publication gets a version number; the version history shows who published when, and you can roll back to an earlier version. Published queries are also the building blocks for custom dashboards and apps.
Alongside SQL, a client admin can run DAX queries on the Power BI model linked to the portal. The semantic model panel shows tables, columns and measures; one click puts a field into the editor in DAX notation.
This lets you quickly check whether a measure in Power BI returns the same result as your own SQL. Your organisation's service principal needs Build permissions on the dataset for this.
The SQL Explorer is enabled by default for client admins. Platform admins can also enable it for regular users, per organisation.
| Feature | Client admin | User (if enabled) |
|---|---|---|
| Run queries and use AI | Yes | Yes |
| Query plan and export (CSV, JSON) | Yes | Yes |
| Save queries | Yes | No |
| DAX on the Power BI model | Yes | No |
| Publish a query as an API | Yes | No |
| Results on screen | 25 rows per page, max. 200 | 25 rows per page, max. 200 |
In ENABLE
Platform admins connect your organisation's PostgreSQL data warehouse using a read-only database account, over SSL by default. The password is stored encrypted.
Type a question in plain language or write SQL yourself, with the table browser alongside.
Review the query the AI suggests, fill in any parameters and run it. The query plan shows you in advance how heavy a query is.
View the result as a table or chart, export it, save the query or publish it as an API for other systems.
FAQ
The SQL Explorer with AI is the query environment in ENABLE that lets you ask questions of your own PostgreSQL data warehouse. You type a question in plain language, the AI writes the SQL and ENABLE checks the query before you run it. If you know SQL, you can use it as a regular query editor.
The AI receives your question and a data dictionary of your data warehouse: tables, columns and relationships. With that it writes a single read-only query, which ENABLE tests in advance with a query plan. The result comes from your own database, not from the language model.
No. Only SELECT and WITH queries are allowed and every query runs in a read-only transaction. Write statements, system tables and admin functions are blocked, and an AI query is never run automatically.
No, not the rows of data. Via the OpenAI API, the AI only receives metadata, such as table and column names, relationships and an estimate of the number of rows, plus your question. Passwords and connection details are never included.
Client admins have access by default. Platform admins can also enable the SQL Explorer for regular users per organisation; those users can then run and export queries, but not save, publish or use DAX.
Yes, as a client admin. You switch from SQL to DAX in the editor and run the query on the semantic model behind your Power BI dashboards. Your organisation's service principal needs Build permissions on the dataset for this.
In an online demo we show you the portal: dashboards per role, row-level security, plain-language questions and how we set it up and manage it for you.