Metraipolis › archive › dc_99da2b6f1c95
text2ql: Multi-Target Natural Language Querying via a Language-Agnostic Intermediate Representation — arXiv:2609.02115
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.02115
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-17T03:37:09.332Z
- SHA-256 of the archived text
78887a6368a14873dcf411086cf2a5aa3289ecfc80f583da10bca3d72050b93b- Stable URL of this page
https://metraipolis.com/documento/dc_99da2b6f1c95
How to cite
text2ql: Multi-Target Natural Language Querying via a Language-Agnostic Intermediate Representation — arXiv:2609.02115 — arXiv (en), https://arxiv.org/abs/2609.02115 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_99da2b6f1c95 (Metraipolis archive dc_99da2b6f1c95, sha256 78887a6368a14873dcf411086cf2a5aa3289ecfc80f583da10bca3d72050b93b)
BibTeX
@misc{dc99da2b6f1c95,
title = {text2ql: Multi-Target Natural Language Querying via a Language-Agnostic Intermediate Representation — arXiv:2609.02115},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.02115},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_99da2b6f1c95; sha256 78887a6368a14873dcf411086cf2a5aa3289ecfc80f583da10bca3d72050b93b},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.02115. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Natural language interfaces to databases have traditionally suffered from three structural limitations: exclusive targeting of relational SQL, unconditional dependence on large language model (LLM) inference at query time, and absence of any runtime signal when generated queries are semantically incorrect. This paper presents text2ql, an open-source Python framework that addresses all three limitations through a language-agnostic Intermediate Representation (QueryIR) and a pluggable renderer architecture. A single seven-stage detection pipeline serves both SQL and GraphQL targets; a zero-LLM deterministic mode delivers 100% execution accuracy at a median latency of 3.2 ms with no API cost; and every generated query carries a runtime confidence score in [0.15, 0.97] computed from an additive signal model. Evaluated on 50-query random samples from the Spider and BIRD benchmarks (indicative results; full-set evaluation is planned), the LLM-backed mode achieves 62-70% exact match and 84-91% execution accuracy; the deterministic mode achieves 100% execution accuracy with zero parse errors across all 100 test cases. An ablation study isolates schema-aware prompting as the dominant accuracy lever, contributing +18.4 percentage points of exact-match gain over the schema-free baseline on both benchmarks. text2ql is publicly available at this https URL under the Apache 2.0 license. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-03 in cs.AI). Categorie arXiv: Computation and Language (cs.CL) ; Artificial Intelligence (cs.AI); Databases (cs.DB). Pagina del lavoro: https://arxiv.org/abs/2609.02115 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-17T03:13:12.506Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-03?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).