Lune

ICML2026Top-tier venue

Sonar-TS: Search-Then-Verify Natural Language Querying for Time Series Databases

Zhao Tan, Yiji Zhao, Shiyu Wang, Chang Xu, Yuxuan Liang, Xiping Liu, Shirui Pan, Ming Jin

Abstract

Natural Language Querying for Time Series Databases (NLQ4TSDB) aims to assist nonexpert users retrieve meaningful events, intervals, and summaries from massive temporal records. However, existing Text-to-SQL methods are not designed for continuous morphological intents such as shapes or anomalies, while time series models struggle to handle ultra-long histories. To address these challenges, we propose Sonar-TS, a neuro-symbolic framework that tackles NLQ4TSDB via a "Search-Then-Verify" pipeline. Analogous to active sonar, it utilizes a feature index to "ping" candidate windows via SQL, followed by generated Python programs to "lock on" and verify candidates against raw signals. To enable effective evaluation, we introduce NLQTS-Bench, the first large-scale benchmark designed for NLQ over TSDB-scale histories. Our experiments highlight the unique challenges within this domain and demonstrate that Sonar-TS effectively navigates complex temporal queries where traditional methods fail. This work presents the first systematic study of NLQ4TSDB, offering a general framework and evaluation standard to facilitate future research. Our code has been made available at https://github.com/ Atlamtiz/Sonar-TS .

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Time-LLM: Time Series Forecasting by Reprogramming Large Language Models cites Informer: Beyond Efficient Transformer for Long Sequence Time-Series Forecasting
  • ChatTS: Aligning Time Series with LLMs via Synthetic Data for Enhanced Understanding and Reasoning cites Time-LLM: Time Series Forecasting by Reprogramming Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Builds on8

  1. Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang et al.AAAI 2021 · 7,289 citations
  2. Time-LLM: Time Series Forecasting by Reprogramming Large Language ModelsMing Jin, Shiyu Wang, Lintao Ma, Zhixuan Chu et al.ICLR 2024 · 915 citations
  3. OmniSQL: Synthesizing High-quality Text-to-SQL Data at ScaleHaoyang Li, Shang Wu, Xiaokang Zhang, Xinmei Huang et al.VLDB 2025 · 90 citations
  4. ChatTS: Aligning Time Series with LLMs via Synthetic Data for Enhanced Understanding and ReasoningZhe Xie, Zeyan Li, Xiao He, Longlong Xu et al.VLDB 2025 · 87 citations
  5. MS-Index: Fast Top-k Subsequence Search for Multivariate Time Series under Euclidean DistanceJens E. d'Hondt, Teun Kortekaas, Odysseas Papapetrou, Themis PalpanasVLDB 2026 · 1 citation

Related papers

  1. NL2SQLBench: A Modular Benchmarking Framework for LLM-Enabled NL2SQL SolutionsShizheng Hou, Wenqi Pei, Nuo Chen, Quang-Trung Ta et al.VLDB 2026 · 1 citation
  2. ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL SystemsYi Zhang, Jan Deriu, George Katsogiannis-Meimarakis, Catherine Kosten et al.VLDB 2024 · 65 citations
  3. MT-Teql: Evaluating and Augmenting Neural NLIDB on Real-world Linguistic and Schema VariationsPingchuan Ma, Shuai WangVLDB 2022 · 38 citations
  4. Enhancing SQL Query Generation with Neurosymbolic ReasoningHenrijs Princis, Cristina David, Alan MycroftAAAI 2025 · 1 citation
  5. Can Large Language Models Adequately Perform Symbolic Reasoning Over Time Series?Zewen Liu, Juntong Ni, Xianfeng Tang, Max S. Y. Lau et al.ACL Findings 2026
Dusk over the sea between two cliffs drawn in fine vertical lines