cs.AIOct 2, 2026

From Benchmarks to Production: A Text-to-SQL System for Complex Financial Data

Authors: Arijit Sehanobish, Bruno Gomes Coelho, Guillaume Michel, Sophia Zhi, Valerie Faucon-Morin, Kristen Howell

Organizations: Kensho Technologies

Abstract

General-purpose Text-to-SQL systems achieve strong performance on academic benchmarks like Spider and BIRD, where schemas are relatively shallow and column values are often human readable. In production financial databases, where concepts are stored as opaque integer keys rather than human-readable strings, these methods fall below 50%, as even simple queries require multiple joins and filter predicates reference opaque IDs. We present Financial LINking Text-to-SQL (FLINT), a domain-specialized Text-to-SQL system that closes this gap through three key components: (1) a lookup agent that dynamically resolves natural-language concepts to question-specific reference table constraints, (2) embedding-based retrieval of structurally similar query templates from a compact, expert-authored bank, and (3) schema linking that prunes a large table schema to the relevant subset by traversing foreign-key chains, rather than relying on name similarity alone. We evaluate on two datasets totaling 359 questions over production financial schemas. FLINT outperforms various state-of-the-art baselines using the same LLM. The system is deployed in production as part of a financial data retrieval service.

Figures & tables

Appendix figures & tables10 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. BIRD-History: A Benchmark for History-Driven Text-to-SQL with Fine-Grained Knowledge Annotations

    Aug 29, 2026Yunfan Zhou, Qiming Shi, Yizhou Yang +2Text-to-SQLText-to-SQL Evaluation

  2. TAHOE: Text-to-SQL with Automated Hint Optimization from Experience

    Jun 10, 2026Zhiyi Chen, Jie Song, Peng LiLLM PromptingText-to-SQL

  3. MDB-Link: Hierarchical Schema Linking for Multi-Database Text-to-SQL

    Aug 10, 2026Beiyu Xu, Zhenyu Wu, Jiaoyan Chen +1Schema LinkingText-to-SQL