EntSQL: A Benchmark for Grounding Text-to-SQL in Long-Context Enterprise Knowledge

Chengxi Liao, Tao Xu, Zulong Chen, Chuanfei Xu, Yiyan Wang +5 more
6/2/2026
cs.CL
benchmark-dataset

No confident code implementation found for this paper.

Abstract

Text-to-SQL enables natural language access to databases, and recent LLMs have substantially advanced its capabilities. Existing benchmarks such as Spider, BIRD, and Spider~2.0 evaluate schema generalization, large-scale databases, and realistic workflows, but largely overlook enterprise scenarios where SQL generation depends on private business knowledge, such as internal metrics, reporting conventions, and organizational rules.

Show full abstract

We introduce EntSQL, an enterprise-oriented Text-to-SQL benchmark for evaluating long-context grounding over proprietary business documents. EntSQL contains 1,066 aligned Chinese-English semantic examples across five business domains, with most examples requiring domain knowledge beyond the question and schema and involving complex SQL structures. On English inputs, the best evaluated system reaches only 15.9\% when long-form documents are provided, highlighting the difficulty of grounding SQL generation in enterprise knowledge.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liao2026entsql,
  title  = {EntSQL: A Benchmark for Grounding Text-to-SQL in Long-Context Enterprise Knowledge},
  author = {Chengxi Liao and Tao Xu and Zulong Chen and Chuanfei Xu and Yiyan Wang and Xinyun Wang and Yanlong Zhang and Xiaojun Chen and Zhibo Yang and Zeyi Wen},
  year   = {2026},
  eprint = {2606.03363},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.03363v3}
}

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.03363.svg)](https://codeofpaper.com/paper/2606.03363)

Discussion