FloodSQL-Bench: A Retrieval-Augmented Benchmark for Geospatially-Grounded Text-to-SQL
Hanzhou Liu, Kai Yin, Zhitong Chen, Chenyue Liu, Ali Mostafavi
TL;DR
FloodSQL-Bench addresses the lack of domain-specific, geospatially grounded Text-to-SQL benchmarks by introducing a real-world flood-management dataset suite with multi-table and geospatial reasoning. The benchmark combines ten heterogeneous tables spanning non-spatial, polygon, and point layers across TX, FL, and LA, and includes 443 question–SQL pairs organized by join complexity, enabling systematic evaluation under a retrieval-augmented generation framework with a rich metadata schema. The authors evaluate a wide range of LLMs, reveal that retrieval grounding improves complex spatial reasoning, and show performance gaps on the most challenging queries, highlighting the need for domain-aware, metadata-driven methods. The work provides an open, practical testbed for advancing geospatial Text-to-SQL research and disaster-management applications.
Abstract
Existing Text-to-SQL benchmarks primarily focus on single-table queries or limited joins in general-purpose domains, and thus fail to reflect the complexity of domain-specific, multi-table and geospatial reasoning, To address this limitation, we introduce FLOODSQL-BENCH, a geospatially grounded benchmark for the flood management domain that integrates heterogeneous datasets through key-based, spatial, and hybrid joins. The benchmark captures realistic flood-related information needs by combining social, infrastructural, and hazard data layers. We systematically evaluate recent large language models with the same retrieval-augmented generation settings and measure their performance across difficulty tiers. By providing a unified, open benchmark grounded in real-world disaster management data, FLOODSQL-BENCH establishes a practical testbed for advancing Text-to-SQL research in high-stakes application domains.
