QO-Bench: Diagnosing Query-Operator-Preserving Retrieval over Typed Event Tuples

Mengao Zhang, Xiang Yang, Chang Liu, Tianhui Tan, Ke-wei Huang
6/3/2026
1 citation
cs.CLcs.AIcs.IR
benchmark-datasetrag

Official code: ZHANG-MENGAO/qo-bench (0 stars, Python, last commit 2026-08-26).

Abstract

Many real-world questions over business, legal, and scientific corpora are natural-language versions of database-style queries over records latent in text. Existing retrieval-augmented generation (RAG) systems are optimized primarily for semantic relevance, but retrieving plausible passages does not guarantee correct query execution.

Show full abstract

We introduce QO-Bench, a diagnostic benchmark for query-operator question answering over typed event tuples. The benchmark covers 22,984 news articles and 614 corporate events, with 18 query templates instantiating 785 questions. Each gold answer is deterministically computed from typed event tuples and scored by recall, with answers matched to the gold tuples by exact match rather than an LLM judge. This design enables operator-level diagnosis such as joins and intersection. We evaluate RAG, ReAct RAG, GraphRAG, and information-extraction-to-SQL under matched conditions, with a long-context oracle ceiling to isolate retrieval failure. A two-axis framework -- index-time preservation versus query-time execution -- predicts where each paradigm fails, and the results bear it out: systems retrieve relevant text but discard the typed values operators need, and the deployable paradigm ranking inverts across operators, with similarity retrieval leading on filter/project and extraction-to-SQL on intersection and counting. Even given the gold evidence, a long-context oracle stays far from saturated, so operator execution -- not retrieval alone -- is a core bottleneck that a stronger answer model does not remove. QO-Bench reframes the goal from passage relevance to query-operator-preserving retrieval. The benchmark, predictions, and code are released at https://github.com/ZHANG-MENGAO/qo-bench.

View on arXivView PDF

Code Implementations(1)

Official dataset and code for the paper QO-Bench

01PythonJun 3, 20263 months agoNOASSERTION

Similar Papers

Cite this paper

@article{zhang2026qobench,
  title  = {QO-Bench: Diagnosing Query-Operator-Preserving Retrieval over Typed Event Tuples},
  author = {Mengao Zhang and Xiang Yang and Chang Liu and Tianhui Tan and Ke-wei Huang},
  year   = {2026},
  eprint = {2606.04646},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.04646v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.04646.svg)](https://codeofpaper.com/paper/2606.04646)

Discussion