mlsanityData to 7 Oct 2026

Speculative Ad-hoc Querying

arXiv 2503.00714 ↗First posted 2 Mar 2025cs.DB cs.AI cs.HCcited by 0

Not on the map. Why?

Abstract (arXiv)

Analyzing large datasets requires responsive query execution, but executing SQL queries on massive datasets can be slow. This paper explores whether query execution can begin even before the user has finished typing, allowing results to appear almost instantly. We propose SpeQL, a system that leverages Large Language Models (LLMs) to predict likely queries based on the database schema, the user's past queries, and their incomplete query. Since exact query prediction is infeasible, SpeQL speculates on partial queries in two ways: 1) it predicts the query structure to compile and plan queries in advance, and 2) it precomputes smaller temporary tables that are much smaller than the original database, but are still predicted to contain all information necessary to answer the user's final query. Additionally, SpeQL continuously displays results for speculated queries and subqueries in real time, aiding exploratory analysis. A utility/user study showed that SpeQL improved task completion time, and participants reported that its speculative display of results helped them discover patterns in the data more quickly. In the study, SpeQL improves user's query latency by up to 289× and kept the overhead reasonable, at 4 per hour.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 5 of its 39 references that are in the map. First posted on arXiv 2 Mar 2025.

Builds on

5 of 39 references.

References · 5

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023Teaching Large Language Models to Self-Debugcited by 963
  3. 2024The Faiss librarycited by 370
  4. 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 54
  5. 2021Enhancing the Interactivity of Dataframe Queries by Leveraging Think Timecited by 2

Built on by

Not cited yet.