OpenTableRAG: Open-Domain Table Question Answering over Enterprise-Scale Database through Interactive Reasoning

Yu-Hsuan Lin, Tzu-Hsuan Chou, Chun-Nan Chou, Yun-Nung ChenarXiv 2026

TL;DR

Answering natural-language questions over massive enterprise databases is notoriously tricky when you can’t just dump the tables into a search index or run infinitely heavy SQL queries. OpenTableRAG bridges the gap between clean academic benchmarks and messy production environments by combining lightweight metadata retrieval, interactive SQL error-recovery, and smart LLM-based answer selection. Tested on a live financial platform with tables spanning hundreds of millions of rows, it boosts accuracy by over 40 percentage points compared to standard single-table retrieval.

What Problem Does This Paper Address?

Imagine trying to find a specific financial metric across hundreds of database tables without knowing their schemas. Open-Domain Table Question Answering (OTQA) aims to automate this: take a user’s plain-English question, find the right table, and extract the answer.

Existing OTQA systems look great on paper, largely because they are tested on bite-sized academic datasets (like Wikipedia tables) where the median table has about 6 to 11 rows. At that toy scale, you can easily export and index every single cell.

Production reality is much harsher. In the live financial platform studied here, tables have a median of over 150,000 rows—four orders of magnitude larger than standard benchmarks. Furthermore, production systems impose strict guardrails:

  1. No full-table exports: Nearly half the tables update daily, meaning static full-table indexes quickly go stale, and data policies forbid bulk exports anyway.
  2. Tight SQL limits: Queries face a strict 120-second timeout and a 2 GB memory ceiling. Write an unoptimized query on a massive table, and the system kills it.

The authors ask: How do we build an accurate OTQA system when tables are gigantic, constantly changing, and locked behind strict execution limits?

Methods

The authors extend an existing closed-domain framework called TableRAG (which assumes you already have the exact table you need) into OpenTableRAG, a five-stage pipeline built for the open-domain wilderness:

Figure 1: Overview of OpenTableRAG. Table retrieval identifies the top-k relevant tables for a user query. Each retrieved table is processed independently through parallel schema and cell retrieval, followed by table reasoning. Answer aggregation selects the final answer from the per-table candidate answers.
  1. Metadata-Only Table Retrieval: Instead of indexing millions of cells, the system uses dense embeddings to index just the table names and column headers, retrieving the top-$k$ ($k=15$) candidate tables for a query.
  2. Schema Retrieval: Using LLM query expansion, it narrows down up to 25 relevant columns per candidate table.
  3. Bounded Cell Retrieval: In parallel, to help the LLM know how specific values are formatted without exporting whole tables, the system indexes only the top-$b$ ($b=5,000$) most frequent categorical column–value pairs, refreshed nightly at midnight.
  4. Interactive Table Reasoning: Replacing TableRAG's Python solver, an LLM uses a ReAct loop (up to 12 iterations) to write and run live SQL queries against each candidate table independently. Crucially, if a query hits a timeout or syntax error, the error message is fed back as an observation so the LLM can rewrite and optimize its SQL on the fly.
  5. Answer Aggregation: Processing 15 tables yields up to 15 different candidate answers. The authors test two ways to pick the winner: SQL Similarity Ranking (SSR), which matches the user query embedding to the final SQL query, and LLM-based Answer Selection (LAS), which asks the LLM to review the independent candidate answers and classify the best one.

Datasets

The authors evaluate OpenTableRAG on a proprietary production financial corpus (market prices, financial statements, institutional holdings) paired with 280 real-world user queries split evenly into 140 dev and 140 test questions.

Table 1: Comparison of table corpus statistics across NQ-Tables (NQ), Open-WikiTable (OWT), and our pro- duction table corpus (Ours).

While this corpus has fewer total tables (578) than academic benchmarks like NQ-Tables (169,898) or Open-WikiTable (24,680), its individual tables are behemoths—peaking at 254.3 million rows and 645 columns, with 47.8% of tables updating daily.

Key Insights and Ideas

  • Metadata goes surprisingly far, if you cast a wide net: Relying solely on table and column names gets the right table at rank 1 only ~34% of the time. Expanding the net to the top 15 tables pushes recall to 80%, proving you don't need full-table exports if your downstream reasoning can sift through candidates.
  • Beware of "plausible-looking" SQL: Why did LLM-based Answer Selection (LAS) crush SQL Similarity Ranking (SSR) by over 30 percentage points? Because an LLM given an irrelevant table will still write a SQL query that mirrors the phrasing of the user's question, tricking embedding-similarity rankers. Evaluating the reasoning outcomes directly via LAS avoids this trap.
  • LLMs are resilient database debuggers: Smaller open-weight models make plenty of initial SQL mistakes under strict memory and timeout rules, but giving them an interactive loop lets them course-correct remarkably well.
  • Retrieval is still the bottleneck: When the system fails end-to-end, it’s rarely because the LLM fumbled the SQL or picked the wrong candidate—it's almost always because the right table never made it into the top 15.
Figure 2: Error decomposition of OpenTableRAG with LAS on the test set, averaged over five runs. Each bar represents the queries entering a stage. The solid portion shows queries passing the stage, while the hatched por- tion shows queries failing at that stage. Table retrieval errors occur when no ground-truth table is retrieved and no correct candidate answer is generated. Table reason- ing errors occur when a ground-truth table is retrieved but no correct candidate answer is generated. Answer aggregation errors occur when a correct candidate an- swer is generated but the final answer is incorrect.

Key Results

Evaluated with both proprietary (GPT-6.1 Terra) and open-weight (Qwen3.8-27B) models:

  • End-to-End Accuracy: OpenTableRAG (with LAS) hits 78.29% accuracy with GPT-6.1 Terra and 71.14% with Qwen3.8-27B—beating the Top-1 table baseline (31.71% and 29.29%) by over 40 percentage points.
  • The Oracle Ceiling: When handed the exact ground-truth table (closed-domain), accuracy jumps to 96.86% (GPT-6.1 Terra) and 90.57% (Qwen3.8-27B), underscoring how strong the schema/cell/SQL reasoning core is.
  • SQL Error Recovery: In closed-domain tests, Qwen3.8-27B hit SQL errors on 38.17% of queries, yet successfully recovered with a valid query 94.67% of the time, landing on the exact right final answer in 84.24% of error cases.
  • Scale Penalty: For tables larger than the 150,994-row median, accuracy dips from 88.57% to 71.43% (GPT-6.1 Terra), showing massive tables still pose distinct hurdles.

Limitations and Future Work

  • Single-Platform Scope: Experiments were run on one financial platform with 578 tables. How well metadata retrieval scales to enterprise lakes with tens of thousands of massive tables—or generalizes to other domains—remains untested.
  • Compute Overhead: Running independent multi-round ReAct SQL loops across 15 tables per user query can get expensive, and the paper lacks a head-to-head latency or cost comparison against other OTQA methods.
  • Future Directions: Closing the ~20-point gap to closed-domain performance means building smarter table retrievers and sharpening reasoning over ultra-massive tables.

Summary updated

BibTeX
@misc{lin2026opentablerag,
  author = {Yu-Hsuan Lin and Tzu-Hsuan Chou and Chun-Nan Chou and Yun-Nung Chen},
  title = {{OpenTableRAG: Open-Domain Table Question Answering over Enterprise-Scale Database through Interactive Reasoning}},
  year = {2026},
  eprint = {2611.36856},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.36856},
}
Figure