Text-to-SQL Agent with Automated Query Repair
A six-layer Text-to-SQL architecture — input processing, prompt engineering, LLM generation, execution, validation/repair, and output generation — with an iterative, execution-driven repair loop. Improved on the no-repair baseline by 20.8 percentage points across 1,034 questions and 20 databases, beating the referenced STRUG result.