cs.CLSep 5, 2026

STQA: A Benchmark for Stock-Focused Tabular Question Answering over Historical and Forecasted Data

Authors: Baoxu An, Wenmian Yang, Zhensheng Wang, Weijia Jia

Organizations: School of Artificial Intelligence, Beijing Normal University, Beijing, PR China · Institute of Artificial Intelligence and Future Networks, Beijing Normal University, Zhuhai, PR China · Beijing Normal-Hong Kong Baptist University, Zhuhai, PR China

Abstract

Stock market analysis inherently requires composite reasoning over historical records and future projections, yet existing benchmarks remain fragmented across isolated tasks. We introduce STQA (Stock-focused Tabular Question Answering), an end-to-end benchmark designed to systematically evaluate natural-language question answering over historical data, numerical forecasts, and forecast-based reasoning. Built on a large-scale financial dataset, STQA covers 4,417 stocks and contains 31,400 question-answer pairs derived from expert-crafted templates, accompanied by fine-grained intent and slot annotations. To operationalize this benchmark, we present SQFRS (Stock Query-Forecast-Reasoning System), an agent-based unified framework that orchestrates SQL retrieval and time-series forecasting tools. Experiments demonstrate that while current large language models perform well on historical queries, forecast-based reasoning poses a substantial challenge, revealing critical bottlenecks in tool coordination and reasoning under uncertainty. The dataset and code are available at https://github.com/xuxubaobaoan/STQA_Project. STQA thus serves as a rigorous testbed for future research on trustworthy, tool-augmented financial agents.

Figures & tables

Appendix figures & tables28 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Reasoning through Verifiable Forecast Actions: Consistency-Grounded RL for Financial LLMs

    May 21, 2026Jialin Chen, Aosong Feng, Harshit Verma +7Time Series ReasoningStock Price Forecasting

  2. FinTradeBench: A Financial Reasoning Benchmark for LLMs

    Mar 19, 2026Yogesh Agrawal, Aniruddha Dutta, Md Mahadi Hasan +2Financial Reasoning in Language ModelsFinancial Reasoning Benchmarks

  3. XForecast: The KDD 2026 Finance Day Challenge on News-Grounded Financial Forecasting

    Oct 12, 2026Jaehoon Lee, Jun Seo, Seunghan Lee +10Financial ForecastingStock Price Forecasting