Using AI in your business. #2 – Natural Language Data Queries

How AI is Changing the Way We Query Databases

For decades, getting answers out of a database has felt harder than it should. The data is there – often rich, valuable, and business-critical, but actually accessing it has traditionally meant learning SQL (the language of databases), relying on IT teams, or making do with rigid dashboards that don’t quite provide what you need.

Now imagine simply asking a database a plain question, in the same way you’d ask a colleague:“Which products are running low on stock this week?” or“Who are our top five customers by revenue this year?”

That’s the promise of natural language querying and AI is finally making it practical.

 

Why Traditional Queries Have Been a Roadblock

Most people don’t think in SQL. They think in questions:

    “Show me customers who haven’t bought anything recently but used to be big spenders.”

    “What’s our customer acquisition cost, broken down by campaign?”

Until recently, you had three options:

1. Learn the technical side yourself.

2. Wait in line for IT or a data analyst.

3. Make do with a pre-built report.

Each of these slows decision-making and, worse, means many people never even try to access the data at all.

 

How AI Bridges the Gap

Recent advances in large language models are starting to change this. These systems can “translate” natural questions into queries a database understands. At a high level, here’s what happens when you ask a question in plain English:

·      The AI identifies your intent i.e., what you’re asking for, which entities are involved (customers, orders, dates, etc.), and how the pieces fit together.

·      It maps that request against the actual schema: which tables, which columns, what relationships.

·      It then generates the SQL (or NoSQL) query, runs it, and delivers the answer, ideally with context or even a suggested next step.

It’s a bit like having a friendly data analyst embedded in the software, always ready to translate.

 

Why MCP Matters

One important piece is something called the Model Context Protocol (MCP). Think of it as a secure middle layer that allows AI models to interact with databases directly – not just by writing queries, but by safely running them and handling errors.

This unlocks:

·      Real-time data access (no stale caches).

·      Multi-step workflows for complex questions.

·      Smarter retries and refinements if something goes wrong.

It’s a technical detail, but a crucial one, it’s what links the AI to the real world, turning it into a powerful business tool.

 

Where This Is Already Useful

·      Retail & E-commerce: Spotting products at risk of running out or analysing marketing costs by channel.

·      Healthcare: Researchers filtering patient outcomes without waiting weeks for a custom report.

·      Finance: Checking transactions, staying on top of performance, spotting trends.

·      HR: Managers identifying which teams are thriving and which are struggling with retention.

The common thread: people who normally wouldn’t touch a database can finally get answers themselves.

 

Things to Keep in Mind

Success depends on a few practical realities:

·      Well defined, consistent data – AI can’t fix messy schemas.

·      Security and governance – queries must respect access rules and be logged.

·      Performance – if everyone suddenly starts firing off natural language queries, the database must keep up.

·      Training and context – the AI needs to understand the terminology of your business and its systems.

Set expectations carefully and it can be a huge productivity win. Oversell it, and trust will be lost quickly.

 

Looking Ahead

The most interesting shift isn’t just speed, it’s accessibility. When anyone in an organisation can ask the data with a question, decision-making becomes faster and more democratic.

What’s next? Likely a mix of:

·      Predictive suggestions (the system hints at questions you should be asking).

·      Cross-system queries (AI pulling from multiple data sources at once).

·      Automatic insights – not waiting for a question at all, but surfacing patterns as they emerge.

 

Conclusion: Democratising Data Access

AI-powered natural language to database query translation represents more than just a technological advancement, it’s a fundamental shift toward democratising data access. By removing the technical barriers that have traditionally separated business users from their data, we’re enabling organisations to become more data-driven, responsive, and innovative.

The combination of sophisticated language models and protocols like MCP creates unprecedented opportunities for seamless human-data interaction. Organisations that embrace these technologies early will gain significant competitive advantages through faster decision-making, broader data literacy, and more agile business operations.

The future belongs to organisations where anyone can ask their data a question and get an intelligent answer. The technology to make this vision reality exists today, the question is no longer whether this transformation will happen, but how quickly organisations can adapt to harness its power.

As we stand at the threshold of this new era in data interaction, one thing is clear: the conversation between humans and databases is just getting started, and AI is making sure everyone gets to participate.

Want to learn more? Let’s chat.

chris.sayer@provanta.ai

 

Footnote

Getting Started: A Practical Roadmap

If you’re considering implementing AI-enhanced database querying in your organisation, here’s a practical approach:

Phase 1: Assessment and Planning

  • Identify your most common database query patterns
  • Assess your current data quality and structure
  • Evaluate security and compliance requirements
  • Choose pilot use cases with high impact and manageable complexity
  • Identify queries with potential performance issues 

Phase 2: Infrastructure Setup

  • Implement MCP server(s) with read-only access to your data source
  • Implement user access to query feature
  • Integrate your preferred AI model linked to your MCP server
  • Provide AI model with details of your specific database schema , domain-specific terminology and business rules
  • Update user access controls and audit mechanisms

Phase 3: Testing and Customization

  • Create test datasets for validation
  • Perform a wide range of test queries
  • Monitor and optimise database
  • Seek to limit large/slow queries 
  • Implement feedback loops for continuous improvement

Phase 4: User Rollout and Iteration

  • Provide training on effective natural language query techniques
  • Start with power users and gradually expand access
  • Collect user feedback and refine the system
  • Monitor performance and optimize as needed

Measuring Success

The impact of AI-enhanced database querying can be measured through several key metrics:

  • Time to insight: How quickly users can get answers to their questions
  • Query accuracy: The percentage of natural language queries that return correct results
  • User adoption: How many people are using the system and how frequently
  • Self-service rate: The reduction in IT tickets for database queries
  • Decision velocity: How much faster business decisions are made with improved data access

 

In parallel with building your spec, we also build you a functional prototype of your system so that you can see a working model of the proposed solution during the design phase. This helps you to get a really solid understanding of what we are thinking and to confirm that it matches your expectations. It also helps to flush out issues or omissions while freeing your thinking to move up from the basic concepts to the more complex aspects of your solution.

We do all of this as an iterative and collaborative process so that you are able to steadily evolve your thinking and expand the specification as you develop confidence in the solution that we are proposing.

The specification and prototype that we create for you are your assets and they will become a living resource that drives the evolution of your system throughout its live usage as your business evolves and needs change.

We feed the specification that we create into our AI tools and these generate your solution. This  means we can eliminate most of the programming work that would have been traditionally carried out by developers.  However, rest assured that our highly-experienced software developers will be overseeing the process, ensuring that the AI generates appropriate output that offers the required functionality as well as being secure, robust and performant.

The system  generation is also an iterative process and so, again, its quick and easy for us to evolve the solution until it meets your needs precisely. This is achieved by continuing to build the system specification so that it describes  the requirements and associated solution with ever improving accuracy, then regenerating your solution via our AI tools.

In addition to generating the system itself, our AI tools also automate the solution testing process so that you can be sure of excellent quality at every stage.

Once you are satisfied with the solution we have generated for you, we can deploy it to whatever hosting environment you prefer – we can provide cloud hosting or you can use your own environment.

We will also apply our AI tools to the process of importing your old data into your new system, a process which thankfully  is also made massively more straightforward with the help of Artificial Intelligence tools.

Once your system has transferred into live operation you can continue to evolve it via the same process documented above. Changes can be made to the specification and a revised system generated so that your business can rapidly evolve to meet whatever needs may arise.

If you have the source code that was used to build your system then we will feed this directly into our AI tools to generate you a new system. This can even be used to change formats e.g. between desktop and web browser-based applications.

However, if you don’t have the source code then all is not lost because modern AI is so capable that it is possible to generate systems from English specifications and screen grabs of forms, so there will be a way to rapidly arrive at a replacement without starting from scratch.

Our AI tools will also take care of software testing and data import from your old system, so there’s really no reason to continue being tied down to your creaky old solution!

Once you have a new system up and running then you will enter a new age of agility as AI continues to provide the means of rapidly and continually updating your solution to meet the ever evolving needs of your business, so you are never tied down by a legacy system again.

Thank you for your interest in working for Provata

Please email your CV to talent@provanta.uk

We are looking forward to meeting you!