All projectsCase Study 08 / 10
08·Data Agent·Web · NL2SQL·2026

Natural Language SQL Agent (Atlas SQL)

A schema-aware SQL assistant that routes plain-English business questions to the appropriate database, enforces read-only SQLGlot validation and row limits, and returns clear natural-language explanations.

CLIENT ARCHITECTURE BLUEPRINT · WATERMARK CONSTRUCTIONSLOGIC POWERED SOLUTIONS · AUG 2025 – AUG 2026
01 · Problem & Context

What the system needed to solve

Decision-makers need self-serve answers across operational relational databases without writing SQL or risking destructive queries, unbounded scans, or schema hallucinations.

02 · Ownership & Architecture

What I engineered and owned

Developed the schema routing layer, SQLGlot AST validation guardrails, bounded retry loop, and public synthetic SQLite demonstration alongside the production Azure SQL architecture.

System Architecture Flow
01

Incoming questions are matched against bounded schema metadata to select the target database.

02

The LLM generates candidate SQL which is parsed and validated for read-only safety, table allowlists, and row limits.

03

Execution timeouts and structured error feedback allow automatic query self-correction.

04

Results are returned with both the executed SQL query and a plain-language summary.

03 · Measured Outcome & Highlights

Production impact & verification

  • Read-only AST validation, table allowlists, and bounded result limits
  • Multi-database schema routing across 3 operational domains
  • Transparent SQL inspection alongside plain-English answers
  • Delivered in production via Azure Functions & Bot Service; public demo on synthetic SQLite

PRODUCTION / PUBLIC DEMONSTRATION

The same design concern, different data boundaries.

Client implementation

Python, three Azure SQL databases, schema-aware routing, read-only validation, and Azure Functions / Bot Service delivery.

Public Atlas demonstration

Synthetic SQLite databases illustrate routing, validation, and execution. It contains no production client records and does not demonstrate a live connection to the three Azure SQL databases.

Next Case Study
Industrial Sentinel — Predictive Maintenance ML — Multivariate Time-Series Condition Monitoring
›