ECQL: An Executable Benchmark for Auditable Corpus Query Semantic Parsing

Yuxi Zheng, Yeqing Liu, Ziming Zhou, Xiaodong Wang, Yongwei Zhang, Jingsong Yu


Abstract
Corpus Query Language (CQL) supports precise corpus analysis but requires expertise in annotations, regular expressions, structural scopes, and platform-specific syntax. Natural-language interfaces simplify access, but their answers can be difficult to inspect, reproduce, or revise. We study Text-to-CQL as executable semantic parsing, mapping intents to inspectable queries. We introduce ECQL, a Sketch-Engine-oriented benchmark of 3,572 natural language–CQL pairs comprising 811 tutorial-derived and 2,761 synthetic examples, with a default split of 3,215 training and 357 test examples. ECQL focuses on Sketch Engine normalization, CQL Diagnostic Profile (CQL-DP) annotations, controlled semantic contrasts, audit-oriented metadata, and generalization protocols, alongside an evaluation suite covering syntactic validity, exact match, canonical match, and execution match. The full 357-example headline test set is independently double-annotated and adjudicated, with 96.9% agreement for intent clarity, 94.7% agreement for CQL–intent alignment, and a 3.1% post-adjudication intent-match error rate. Experiments with prompting, retrieval-augmented prompting, syntax repair, DeepSeek-R1 reasoning prompting, a GPT-4o Agent/API alternative, and supervised fine-tuning reveal persistent difficulties with corpus-query semantics. The best fine-tuned model reaches 85.6% execution accuracy on the random split, but drops to 68.9% on template-disjoint evaluation. ECQL provides a reproducible testbed for auditable semantic parsing over specialized linguistic query languages.
Anthology ID:
2026.findings-aacl.3
Volume:
Findings of the Association for Computational Linguistics: IJCNLP-AACL 2026
Month:
November
Year:
2026
Address:
Hengqin, China
Editors:
Yue Zhang, Ruifeng Xu, Ayu Purwarianti, Tong Rong, Jun Suzuki
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
35–44
Language:
URL:
https://aclanthology.org/2026.findings-aacl.3/
DOI:
Bibkey:
Cite (ACL):
Yuxi Zheng, Yeqing Liu, Ziming Zhou, Xiaodong Wang, Yongwei Zhang, and Jingsong Yu. 2026. ECQL: An Executable Benchmark for Auditable Corpus Query Semantic Parsing. In Findings of the Association for Computational Linguistics: IJCNLP-AACL 2026, pages 35–44, Hengqin, China. Association for Computational Linguistics.
Cite (Informal):
ECQL: An Executable Benchmark for Auditable Corpus Query Semantic Parsing (Zheng et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-aacl.3.pdf