Product demo: NL2Query
Customized Reports From a Plain-English Question
NL2Query translates report requests written in natural language into database queries, so you no longer keep a team just to build custom reports for each client.
nl2query, one request
Question
“List the top 10 applications that don't renew automatically, ordered by name.”
Generated query
db.applications.aggregate([ { $match: { org_id: 3, auto_renewal: false } }, { $sort: { name: 1 } }, { $limit: 10 }, { $project: { _id: 0, name: 1 } } ])Result
[ { name: 'CogniSys' }, { name: 'CogniWave' }, { name: 'EchoSync' }, … ]
The problem
Software product companies keep tailoring reports to each client's requirements.
One report per client
One client wants average expense per user per month; another wants weekly expenses per department.
Reporting screens never settle
Product teams keep adapting reporting interfaces to meet each client's needs.
A team just for reports
Organizations carry the overhead of a team that produces customized client reports.
Questions are messy
Users misspell or half-remember field names, and some questions name people whose data must stay private.
Before, each new report meant new interface work. Now the client asks, and the report comes back.
Before
A Build per Report
With NL2Query
A Question per Report
Outcome
Less Reporting Overhead
How it works
At its core is a large language model that works out what the user wants, builds the database query and retrieves the data from your tables.
- 01
Ask in plain English
Type the report you want, the way you would say it.
- 02
Clean the question
Wrong or incomplete field names are corrected, and PII is swapped for anonymous IDs.
- 03
Build the query
The model writes an accurate query, including complex logic and arithmetic.
- 04
Return the report
Results come back from the database in a few seconds, with meta-information cards.
See it work
Real screens from the demo: the question, the query it wrote and what came back.
Filtering on columns
1Question

2Generated query

3Result

Advanced features
- 01
Catches spelling mistakes
When users type wrong or incomplete field names, it suggests or uses the right ones.
- 02
Keeps PII out of queries
It recognizes people and other PII in a question, looks up their anonymous IDs and rewrites the question.
- 03
Resolves complex queries
It generates accurate queries for complex logical and arithmetic operations.
- 04
Engineered for speed
A question is parsed, checked and answered from the database in just a few seconds.
- 05
Shows meta-information
Each answer comes with meta-information cards alongside the query output.
- Currently supports
- MongoDB, MySQL and PostgresExtends easily to any relational or document-oriented database.
