arXiv

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

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

Abstract:

While Large Language Models (LLMs) have significantly enhanced the capabilities of Text-to-SQL—facilitating natural language interaction with databases—current evaluation frameworks remain limited in scope. Prominent benchmarks like Spider, BIRD, and Spider~2.0 primarily assess schema generalization, performance on large-scale databases, and realistic workflow adherence. However, these benchmarks largely neglect enterprise-specific contexts, where generating accurate SQL queries often hinges on accessing private business intelligence, including internal metrics, established reporting standards, and organizational protocols.

To address this gap, we present EntSQL, a benchmark specifically designed for enterprise-oriented Text-to-SQL tasks that evaluates a model's ability to ground long-context information within proprietary business documents. The dataset comprises 1,066 aligned semantic examples in both Chinese and English, spanning five distinct business domains. The majority of these examples demand domain-specific knowledge that extends beyond the immediate question and database schema, often necessitating the construction of complex SQL structures.

Our evaluation results underscore the significant challenges involved in this domain. When provided with lengthy, long-form documents, the top-performing system achieved an execution accuracy of merely 15.9% on English inputs, illustrating the substantial difficulty models face when attempting to ground SQL generation in enterprise-specific knowledge.


Source: arXiv Generated at: 2026-06-03 00:00:00 UTC

Related Articles

TechCrunch

The world’s largest privately owned laser just turned on

Xcimer Energy activated the Phoenix laser, the world’s largest privately owned laser, aiming to commercialize fusion pow...

Uber Targets Doubling Its Fleet of Electric Motorcycles in Kenya
Bloomberg

Uber Targets Doubling Its Fleet of Electric Motorcycles in Kenya

Uber plans to double its electric motorcycle fleet in Kenya. This expansion aims to enhance sustainable transport option...

AI Saves Time But Most Companies Waste the Gain, Study Shows
Bloomberg

AI Saves Time But Most Companies Waste the Gain, Study Shows

A study reveals that while AI saves employee time, most companies fail to capitalize on these gains, squandering potenti...

JPMorgan Lifts S&P Target on Earnings 'Supercycle'
Bloomberg

JPMorgan Lifts S&P Target on Earnings 'Supercycle'

JPMorgan raised its S&P 500 target, citing an earnings “supercycle” that reflects heightened confidence in corporate pro...

Europe Sleepwalking Into Economic Ruin, Serb Leader Says
Bloomberg

Europe Sleepwalking Into Economic Ruin, Serb Leader Says

Serbian leader warns Europe is sleepwalking into economic ruin.

Delta Electronics Flags Power Crunch
Bloomberg

Delta Electronics Flags Power Crunch

Delta Electronics warns of a looming power deficit due to surging demand and constrained production, predicting serious ...