Chain-of-Query : Unleashing the Power of LLMs in SQL-Aided Table Understanding via Multi-Agent Collaboration

Songyuan Sui, Hongyi Liu, Serena Liu, Li Li,, Soo-Hyun Choi, Rui Chen, Xia Hu · 2025

Read Chain-of-Query : Unleashing the Power of LLMs in SQL-Aided Table Understanding via Multi-Agent Collaboration by Songyuan Sui, Hongyi Liu, Serena Liu, Li Li,, Soo-Hyun Choi, Rui Chen, Xia Hu (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2508-15809.txt.

Description

Songyuan Sui and co-authors tackle a hard task for large language models: reading tables and answering questions about them. Tables have a strict layout that models often misread, and past tools that write SQL queries can pass errors along or lean too much on whether a query runs. Their fix is a team of agents called Chain-of-Query.

The team first restates each table layout in plain words to cut noise. It then builds each SQL query clause by clause, and splits the work so SQL handles the counting while the model handles the logic. Tests on four models and five benchmarks showed higher scores and far fewer bad queries.

Catalog record

CREATORSongyuan Sui, Hongyi Liu, Serena Liu, Li Li,, Soo-Hyun Choi, Rui Chen, Xia Hu
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE62 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2508-15809

Browse the full library · About the Tower of Babel