Metraipolis › archive › dc_a2325618062b
AptMQL-Bench: From Text-to-SQL to Text-to-MQL via Access-Pattern Schema Design and Data-Preserving Migration — arXiv:2610.02770
- Source
- arXiv
- Original
- https://arxiv.org/abs/2610.02770
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-05T22:51:34.491Z
- SHA-256 of the archived text
846fb336881137a1a9a652592191481ece28cf82f459e36831d7b4540305a6ee- Stable URL of this page
https://metraipolis.com/documento/dc_a2325618062b
How to cite
AptMQL-Bench: From Text-to-SQL to Text-to-MQL via Access-Pattern Schema Design and Data-Preserving Migration — arXiv:2610.02770 — arXiv, https://arxiv.org/abs/2610.02770 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a2325618062b (Metraipolis archive dc_a2325618062b, sha256 846fb336881137a1a9a652592191481ece28cf82f459e36831d7b4540305a6ee)
BibTeX
@misc{dca2325618062b,
title = {AptMQL-Bench: From Text-to-SQL to Text-to-MQL via Access-Pattern Schema Design and Data-Preserving Migration — arXiv:2610.02770},
howpublished = {arXiv},
url = {https://arxiv.org/abs/2610.02770},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a2325618062b; sha256 846fb336881137a1a9a652592191481ece28cf82f459e36831d7b4540305a6ee},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv, https://arxiv.org/abs/2610.02770. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Document databases such as MongoDB are core infrastructure for modern applications, and natural-language interfaces to them---text-to-MQL---would let non-experts query complex, semi-structured data without mastering the query language. Progress on this task depends on high-quality benchmarks, which are most practically obtained by converting an existing text-to-SQL benchmark to the document setting. Unfortunately, existing efforts rely on heuristics for mechanical conversion: the document schema mirrors the relational foreign-key graph, and each query mirrors its source SQL. As a result in our experiments, these approaches fail to migrate 6 of 21 BIRD databases outright, silently drop up to 25.9\% of rows on others, and yield schemas whose ground-truth queries run over an order of magnitude slower as the data scales. We instead propose a conversion pipeline, driven by coding agents with human-in-the-loop verification, that designs each document schema from expected access patterns and rewrites queries to be MongoDB-native. Applying it to BIRD, we build an access-pattern-based text-to-MQL benchmark (AptMQL-Bench). It includes 21 document-oriented databases, 3,186 natural-language requests, and their associated MQL queries---whose databases are migrated from SQLite without data loss and scale efficiently. The strongest model, Claude Opus 4.5, achieves only 57.38\% accuracy without external knowledge evidence and 70.34\% with it. This indicates that realistic text-to-MQL generation remains challenging. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno). Categorie arXiv: Computation and Language (cs.CL) ; Databases (cs.DB). Pagina del lavoro: https://arxiv.org/abs/2610.02770 — 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-05T22:46:10.548Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).