What “Ask Your Database in Plain English” Actually Means
Every AI analytics tool on the market claims you can "ask your data questions in plain English." It sounds great in a demo. But if you've ever tried one and gotten a wildly wrong answer — or a technically correct answer to the wrong question — you know that the promise and the reality don't always match. Here's what actually happens under the hood, why most tools get it wrong, and what it takes to make natural language querying reliable enough for real business decisions.
The Gap Between a Question and a Query
When you type "What were our top 10 customers last month?" into a natural language interface, something has to translate that into a precise database query. That translation is harder than it sounds.
"Top 10" by what? Revenue? Order count? Profit margin? "Last month" — is that calendar month, or rolling 30 days? "Customers" — does that include internal transfers? Inactive accounts? Subsidiaries that should be rolled up under a parent?
A basic AI tool will guess. It'll pick revenue because that's the most common interpretation, use calendar month because that's the default, and return whatever the customer table gives it. Sometimes it'll be right. Often it won't — and you won't know it's wrong because the answer looks plausible.
This is the core problem with natural language querying: the AI can generate SQL, but it doesn't understand your business. It doesn't know that your company defines "active customer" as someone with at least one order in the last 90 days. It doesn't know that your sales team measures "top customers" by gross margin, not revenue. It doesn't know that your ERP has three different date fields on every order and only one of them is the confirmed delivery date.
"Generating SQL from English is the easy part. The hard part is knowing which SQL is actually correct for your business."
What Makes It Work: The Knowledge Layer
The difference between a natural language tool that's a gimmick and one you can trust comes down to context. Specifically, how much the system knows about your data beyond the raw schema.
At Treeo, we call this the Knowledge Layer. It's the accumulation of business rules, metric definitions, column descriptions, and query patterns that tell the AI what your data actually means. Think of it as the institutional knowledge that your best analyst carries in their head — except it's codified, shared, and applied to every query automatically.
Here's what that looks like in practice:
- Column descriptions — Your ERP has a field called
dt_conf. Meaningless to an AI. But once you tell the system "this is the confirmed delivery date, use this for all delivery timing calculations," every future query about delivery performance uses the right field. - Business rules — "Active customer = at least one order in the last 90 days." "Revenue = net of returns and discounts." "Exclude internal transfer orders from all sales metrics." These rules get applied automatically to every relevant query, so users don't have to specify them every time.
- Saved definitions — When your finance director defines "gross margin" as
(revenue - COGS - freight) / revenue, that definition becomes available to everyone. The next person who asks about margins gets the same calculation, not a different interpretation. - Query feedback — When a user corrects a query result ("no, top customers should be by margin, not revenue"), that correction gets saved. The system learns your team's intent over time, getting more accurate with use rather than staying static.
Why Schema Awareness Matters
Most AI query tools treat your database as a generic collection of tables and columns. They see res_partner and sale_order_line and try to figure out the relationships on the fly. Sometimes they join correctly. Sometimes they create cartesian products that inflate numbers by 10x.
If your company runs on an ERP — Odoo, SAP, Dynamics, NetSuite — the schema isn't generic. It follows specific patterns. Odoo's res_partner holds both customers and vendors. SAP's document flow links orders to deliveries to invoices through a specific chain. Dynamics uses business units and fiscal calendars that affect how data should be filtered.
A system that understands these ERP-specific patterns doesn't have to guess at table relationships. It knows how your data model works because it was built to work with it. That's the difference between getting an approximate answer and getting the right one.
What This Means for Your Team
The real value of natural language querying isn't that it replaces SQL. SQL isn't going anywhere, and for complex analytical work, it's still the right tool. The value is that it removes the bottleneck between a business question and a data answer.
Today, when your operations manager wants to know which warehouse has the highest pick error rate this week, they have three options: ask IT (wait two days), export data to Excel (spend an hour, maybe get it wrong), or just not ask. Most of the time, they pick option three. The question goes unasked, and the decision gets made on instinct instead of data.
Natural language querying — when it actually works — makes option four possible: type the question, get a trusted answer in seconds, and move on. Not because the AI is magic, but because someone took the time to teach it how your business works, and now that knowledge compounds with every query.
That's what "ask your database in plain English" actually means. Not a party trick. Not a chatbot that generates SQL and hopes for the best. A system that understands your data, your business rules, and your team's intent — and gets more accurate over time.
See how it works with your data
Connect your ERP and ask your first question in plain English — with business rules that make the answers trustworthy.