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

Baoxu An, Wenmian Yang, Zhensheng Wang, Weijia Jia
9/5/2026
cs.CL
benchmark-dataset

Official code: xuxubaobaoan/STQA_Project (1 star, Python, last commit 2026-08-25).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

10Python, Jupyter NotebookDec 2, 20253 months ago

Similar Papers

Cite this paper

@article{an2026stqa,
  title  = {STQA: A Benchmark for Stock-Focused Tabular Question Answering over Historical and Forecasted Data},
  author = {Baoxu An and Wenmian Yang and Zhensheng Wang and Weijia Jia},
  year   = {2026},
  eprint = {2609.06117},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.06117v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2609.06117.svg)](https://codeofpaper.com/paper/2609.06117)

Discussion