TRANSMISSION // 2611.36856v2

Can AI Query Huge Databases Without Exporting Them?

Source published

OpenTableRAG was evaluated on 280 user questions and a 578-table financial corpus on one platform. It outperformed a single-table baseline, but table retrieval and broader validation remain challenges.

AI-generated conceptual illustration for Can AI Query Huge Databases Without Exporting Them?
AI-generated conceptual illustration; not documentary evidence.

Answering a plain-language question about financial data can require finding the right table, selecting useful fields and querying within platform limits. OpenTableRAG tests a staged approach on one production financial platform, without exporting full tables.

The challenge: finding an answer without copying the data

A question such as “What was a company’s opening share price on a certain date?” may sound simple. But a financial database can contain hundreds of tables with unfamiliar names and columns. A system has to find a relevant table, identify useful fields and query the data correctly.

The authors of OpenTableRAG study this problem under two constraints on their financial platform: full-table exports are prohibited, and SQL execution is limited by time and memory. Indexing every table’s contents for search may be impractical, particularly when data are updated frequently. The researchers ask whether a system can answer real user questions across tables without relying on full-table exports.

A staged route from question to answer

OpenTableRAG has five stages. It first searches table names and column names to identify candidate tables. It then retrieves potentially relevant columns and column–value pairs. For the latter, it uses a bounded index of frequent values from categorical columns—not a complete index of every table value. A language model reasons over each candidate table and issues SQL queries through the platform interface. The system’s prompt restricts those queries to read-only SELECT statements; this is a stated system constraint, not an independent assessment of platform-wide safeguards.

The querying stage uses an interactive loop: SQL results and execution errors are returned to the model, which can revise a subsequent query. For example, it might narrow a query after a timeout. Finally, an answer-aggregation step chooses among candidate answers from different tables. The paper compares ranking candidates by similarity between the question and their SQL with asking a language model to select a candidate or reject them all.

The evaluation used 280 questions collected from users of one production financial platform and a corpus of 578 tables. The questions were split evenly between development and test sets; each could be answered using at least one table. The authors tested two language models. They compared the full system with a “Top-1” setup that uses only the highest-ranked table, and with a closed-domain setup supplied with the correct table. The last comparison helps assess later stages when table discovery is removed from the task.

Better than one table, with retrieval still a hurdle

On the test set, OpenTableRAG with language-model answer selection reached 78.29% accuracy with GPT-6.1 Terra and 71.14% with Qwen3.8-27B. The Top-1 setting reached 31.71% and 29.29%, respectively—more than 40 percentage points lower for each model. The alternative answer-selection method, based on SQL similarity, scored lower than the language-model selector.

Closed-domain accuracy was higher: 96.86% and 90.57%. That gap suggests that finding the correct table remains a major challenge. The paper’s error analysis also identifies table retrieval as the primary source of end-to-end errors. Dense retrieval placed at least one correct table among its 15 candidates for 80% of test questions. But including the correct table in the candidate set does not ensure the system will reason over it successfully or select its answer.

The production corpus included tables with hundreds of millions of rows, but the reported test analysis does not give a separate result for tables of that size. Instead, it groups test questions by whether their ground-truth table had at most 150,994 rows or more than 150,994 rows. Accuracy was lower for the above-threshold group for both models: 71.43% versus 88.57% for GPT-6.1 Terra, and 64.05% versus 81.79% for Qwen3.8-27B.

In a separate closed-domain analysis, the authors examined queries that encountered SQL errors. Among those cases, subsequent-query recovery was reported at 86.00% for GPT-6.1 Terra and 94.67% for Qwen3.8-27B. Few GPT runs encountered errors, making its recovery and success estimates highly variable; these figures should not be read as general recovery rates for all questions.

What the results do—and do not—show

The study demonstrates feasibility on one production financial platform, not performance across industries, database systems or languages. The corpus contains 578 tables, so scalability to substantially larger table collections remains unverified. The authors also do not provide a comprehensive end-to-end efficiency comparison with other methods, and querying multiple candidate tables may incur substantial SQL costs.

There are measurement caveats. Answers were scored with hand-crafted matching rules, not semantic verification. A prediction containing the right value could count as correct even if its surrounding text did not answer the question; equivalent answers could also be marked incorrect. The test set had 140 questions, and reported accuracy was averaged across five runs. The findings therefore apply to this dataset and scoring procedure, rather than establishing broad reliability.

OpenTableRAG is described in an arXiv preprint. The source does not establish peer-reviewed validation. Its results are best understood as a promising demonstration under specific platform constraints, with table discovery and performance on larger tables still needing improvement.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • A smarter route from questions to SQL

    Shared method: Both papers describe using SQL execution outcomes in multi-step reasoning: OpenTableRAG says it adapts ReAct for multi-round SQL querying and revises queries based on execution results and errors; DecoSearch uses execution feedback for query-level repair and may revise its decomposition when failures persist. The excerpts support this bounded methodological overlap, not equivalence between the systems or their evaluations.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.36856v2 — Original paper

      Excerpt reference: static/papers/2611.36856v2.md:588-685
      Basis: Paper text
      Source file SHA-256: 709f0f535d384ccd951e954bd5fc04df06162c387b00ae04613f20c68fd365b9

    • 2606.17821v2 — Original paper

      Excerpt reference: static/papers/2606.17821v2.md:86-157
      Basis: Paper text
      Source file SHA-256: dab04dd48ebcd21b772023b4d961e01485140d2c86da741630aaef206a28d5b9

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.