22-25 April 2026

Text2SQL vs. Semantic Layers: Choosing the Right Approach for Natural Language Analytics

Regular 50 minute session for SQLBits 2026

TL; DR

I'll demonstrate both approaches side by side. First, a live Text2SQL demo: what works and where it breaks down. Then, I'll explain semantic layers in detail: what they are, how to build them, and why they matter. Finally, I'll show an AI agent using both methods, comparing results directly. You'll see how semantic layers reduce errors and enforce business rules.

Session Details

Text2SQL works for simple questions but often struggles with unclear business terms, complex logic, and multi-step AI workflows. Semantic layers fix this by creating one trusted shared definition of your data for everyone. In this session, I'll demonstrate both approaches side by side. First, I'll show a live Text2SQL demo: what it does well and where it breaks down. Then, I'll explain the semantic layer approach in detail: what it is, how to build it, and why it matters. Finally, I'll demonstrate an AI agent over a data warehouse using both methods, comparing the results directly. You'll see how semantic layers reduce errors and enforce business rules automatically.

3 things you'll get out of this session

Give a set of examples when Text2SQL approach works well and when don't
Provide a detailed overview of semantic layer
Compare both approaches side-by-size building an AI agent