Reproduce “Bridging the Semantic Gap with SQL Query Logs in Natural Language Interfaces to Databases” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Christopher Baik, H. V. Jagadish, Yunyao Li

TEMPLAR augments Natural Language Interfaces to Databases (NLIDBs) by extracting and leveraging patterns from existing SQL query logs, enhancing keyword mapping and join path inference. The system achieved up to a 138% increase in full query accuracy for augmented pipeline-based NLIDBs on benchmark datasets.

Key insights

  • SQL query logs, though not direct NLQ-SQL pairs, contain valuable output-side information that can implicitly inform and improve NLQ-to-SQL translation.
  • The Query Fragment Graph (QFG) effectively captures semantic relationships and common usage patterns from historical SQL queries, which is crucial for disambiguating mappings and inferring relevant joins.
  • Balancing word similarity with query log-driven co-occurrence patterns provides optimal accuracy for keyword mapping, demonstrating that both sources of information are essential.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.