AI has transformed how teams analyze data. Natural language queries now make it possible for anyone to ask questions and receive instant insights—without writing code. But as AI-generated analytics become more common, a new challenge has emerged: how do users understand, trust, and refine the logic behind those insights? 

That’s where SQL Refiner, Lumenn AI’s newest feature, comes in. 

SQL Refiner bridges the gap between AI automation and human intent by allowing users to view and refine AI-generated SQL using natural language, after an insight has already been created. It introduces a new level of transparency, control, and confidence in AI-powered analytics. 

The Challenge with AI-Generated Analytics 

AI-driven BI tools excel at speed and accessibility. They translate plain English questions into SQL, execute queries, and generate visualizations in seconds. However, many users—especially in enterprise environments—face common limitations: 

  • They want to understand how an insight was generated 
  • They need to tweak logic like filters, time ranges, or limits 
  • They don’t want to rewrite queries or start analysis from scratch 
  • They may not have SQL expertise 

Without an easy way to refine AI-generated queries, analytics can feel like a black box—fast, but difficult to trust or iterate on. 

What Is SQL Refiner? 

SQL Refiner is a new feature in Lumenn AI that allows users to refine AI-generated SQL using plain English

Once Lumenn AI generates an insight, SQL Refiner lets you: 

  • View the SQL logic behind the insight 
  • Describe changes using natural language 
  • Regenerate the query and update results instantly 

No SQL writing. No rerunning everything from the beginning. Just describe what should change—and Lumenn AI takes care of the rest. 

How SQL Refiner Works 

SQL Refiner fits seamlessly into the existing Lumenn AI workflow. 

  1. Ask a Question 
    Start by asking a natural language question, just as you normally would in Lumenn AI. 
  1. Generate an Insight 
    Lumenn AI generates the SQL, executes the query, and returns insights with visualizations and explanations. 
  1. Refine with Natural Language 
    If you want to modify the result, simply describe the change in plain English, such as: 
  • “Only include the last three quarters” 
  • “Focus on the top five regions” 
  • “Exclude internal accounts” 
  • “Change the grouping to monthly” 
  1. Regenerate Instantly 
    SQL Refiner translates your instructions into updated SQL and regenerates the insight automatically. 

This enables fast, iterative exploration—without technical barriers. 

Why SQL Refiner Matters 

1. Transparency

SQL Refiner removes the mystery behind AI-generated insights. Users can clearly see the logic powering each result, making analytics more explainable and auditable. 

2. Control Without Complexity 

Business users gain control over query logic without needing SQL skills. Analysts can iterate faster. Teams can experiment safely—without relying on technical handoffs. 

3. Trust in AI Outputs 

When users understand and refine the logic behind insights, confidence increases. Decisions are based on analytics that users can validate and adjust themselves. 

4. Faster Decision-Making 

SQL Refiner reduces back-and-forth between teams. Instead of restarting queries or waiting for changes, users can refine insights in real time and move forward quickly. 

Who Benefits from SQL Refiner? 

  • Business Users 
    Explore data freely and refine insights without learning SQL. 
  • Data Analysts 
    Iterate faster, test scenarios quickly, and focus on higher-value analysis. 
  • Enterprise Teams 
    Build trust in AI-driven analytics while maintaining clarity and control. 
  • Organizations Scaling AI Analytics 
    Ensure AI insights remain explainable, traceable, and aligned with business intent. 

A Step Toward Explainable, Interactive Analytics 

SQL Refiner represents an important evolution in AI-powered BI. It transforms SQL from something users must write into something they can interact with conversationally

Instead of static results, teams gain: 

  • Interactive insights 
  • Iterative exploration 
  • Clear visibility into query logic 
  • A balance between automation and human judgment 

This is a critical step toward analytics that are not just fast—but also understandable and trustworthy. 

Final Thoughts 

AI has made analytics more accessible than ever. SQL Refiner ensures it also becomes more transparent, controllable, and reliable

By allowing users to refine AI-generated SQL using natural language, Lumenn AI empowers teams to explore data with confidence, without sacrificing speed or simplicity.