NaturalQL is a compact LLM API-powered NL→SQL system built around safe defaults: schema-bounded prompting, SELECT-only queries, static SQL validation, and a single repair pass when generation fails.
What it demonstrates
- guardrailed natural-language → SQL generation instead of unconstrained prompting
- a focused evaluation surface around correctness, safety, and recoverability
- a simple but polished Streamlit interface backed by DuckDB
Highlights
- schema-bounded prompting with explicit table/column context
- SQL sanitization and validation before execution
- one repair pass that feeds parser errors back into generation
- deterministic handling of time phrases for reproducible demos