Natural Language to SQL / Generative BI / GenBI
Unified NLQ (Natural Language Query)

Tools
- Dataherald - natural language-to-SQL engine built for enterprise-level question answering over structured data. HN launch post.
- SQLCoder-2–7b: How to Reliably Query Data in Natural Language, on Consumer Hardware | by Sjoerd Tiemensma | Use AI | Medium
- GitHub - RamiKrispin/lang2sql: A tutorial for setting an SQL code generator with the OpenAI API
- Waii - World's most powerful SQL API built with generative AI
- SAAS - Text to SQL & AI Query Generator | Text2SQL.ai
- Uber - QueryGPT
- Wren AI | GenBI (Generative BI) & Embedded Analytics for Smarter Decisions
- GitHub - Canner/WrenAI: ⚡️Wren AI is your GenBI Agent, that you can query any database with natural language, get accurate SQL(Text-to-SQL), charts(Text-to-Charts) & AI-generated insights in seconds. - 9.7K
- GitHub - Canner/wren-engine: 🤖 The Semantic Engine for Model Context Protocol(MCP) Clients and AI Agents 🔥
- Wrenai Cloud Api Demo - a Hugging Face Space by getWrenAI
- Wren AI
- The Wren AI Blog - Wren AI vs. Vanna: The Enterprise Guide to Choosing a Text-to-SQL Solution
- Query & Answering
- How to setup Wren AI using your Custom LLM or Embedder | Wren AI
- GitHub - vanna-ai/vanna: 🤖 Chat with your SQL database 📊. Accurate Text-to-SQL Generation via LLMs using RAG 🔄. - 19.8K
- GitHub - weaviate/elysia: Python package and backend for the Elysia platform app.
- Thesys - The Generative UI Company
- Sigma. Business Intelligence and Analytics Solution
Code
from langchain import OpenAI, SQLDatabase, SQLDatabaseChain
Advanced - HLR-SQL
HLR-SQL, a technique that employs Human-Like Reasoning (HLR) with large language models (LLMs) to translate natural language questions into complex SQL queries. This approach is designed to handle the multi-table joins and intricate logic often found in real-world enterprise databases, which traditional "text-to-SQL" systems struggle with.
Key Concepts of HLR-SQL
- Iterative Query Refinement: Unlike conventional methods that generate a single SQL query in one go, HLR-SQL imitates the way a human data analyst works by incrementally composing the final query through a sequence of intermediate steps.
- Intermediate Sub-queries: The system breaks a complex problem into smaller, manageable sub-questions, generates SQL sub-queries for them, executes these, and stores the results and reasoning steps in a "memory".
- Self-Correction: By executing intermediate SQL sub-queries and observing the feedback (results or errors) from the database, the LLM agent can identify and correct mistakes or false assumptions made in earlier steps, thus preventing error propagation.
- Autonomy and Human-in-the-Loop: The HLR-SQL agent can autonomously decide how many iterations are needed to solve a query. It can also be extended to selectively ask a human for help when it encounters significant ambiguity or persistent errors, integrating user feedback into the reasoning process.
Generative BI in Telecom
- Practical use cases of Generative AI in Telecom
- pages.awscloud.com/rs/112-TZM-766/images/Altman Solon_AWS_Telecoms Generative AI Study.pdf
- Generative AI in Telecom: 5 Use Cases & Future Outlook
Test Prompts
What are the rental patterns and lifetime value segments of customers, including their geographic clustering and seasonal preferences? answer the above question using the database
Customer Rental Pattern Analysis - Claude
Links
- GitHub - anasmalik081/Generative-BI
- Natural Language to SQL | LangChain, SQL Database & OpenAI LLMs - YouTube
- Generative AI use case: Unified Natural Language Query (LLM to SQL) - YouTube
- Chat with SQL and Tabular Databases using LLM Agents (DON'T USE RAG!) - YouTube
- Natural Language to SQL using Google's Gemini Pro Model | SQL Database | Python - YouTube
- End To End Text To SQL LLM App Along With Querying SQL Database Using Google Gemini Pro - YouTube
- Pinterest's Text to SQL system through LLMs!
- Amazon Q generative SQL in Amazon Redshift Query Editor Public Preview Demo | Amazon Web Services - YouTube
- The Future of Tableau-Centric Roles: What’s Next for Data Professionals in the Next Five Years (per Deep Research)? | by Adam Mico | Bootcamp | Medium
- Has Self-Serve BI Finally Arrived Thanks to AI? | ssp.sh
- SQL-GPT: The Dawn of a New SQL Era
- GitHub - sinaptik-ai/pandas-ai: Chat with your database or your datalake (SQL, CSV, parquet). PandasAI makes data analysis conversational using LLMs and RAG.
- The Future of Business Intelligence: The Generative BI (GenBI) | by Howard Chi | Wren AI | Medium
- How we made our internal data warehouse AI-first