mlsanityData to 24 Nov 2026

From Questions to Queries to Insights: A Schema-Grounded Agentic Workflow for Natural-Language Crash Data Analysis

arXiv 2610.35054 ↗Submitted 26 Oct 2026cs.CLcited by 0

On the map: LLM agents and tool use → Web, search, and research agents

Abstract (arXiv)

Transportation agencies maintain extensive crash databases to identify safety priorities, evaluate countermeasures, and guide resource allocation. Making these data accessible to practitioners requires flexible ways to translate analytical questions into reliable results. Existing dashboards support predefined analyses, while additional requests often depend on specialists who understand database queries, coded fields, and agency conventions. This study presents CrashDB-QA, a fully local, schema-grounded agentic workflow that enables natural-language analysis of crash databases. Specialized components interpret questions, generate and validate read-only SQL, execute queries, and explain the results. A shared knowledge base grounds query construction in the agency's data dictionary and safety-analysis conventions, while recorded intermediate outputs support inspection and auditing. An optional extension, CrashDB-QA+, checks the alignment among the question, query, and execution result and supplies evidence for iterative repair. We evaluate the workflow on a frozen snapshot of 4.4 million Wisconsin crash records using a new benchmark of 300 questions across ten analytical categories and nine local open-weight models. Domain grounding substantially improves query accuracy, and a code-specialized 7B model provides the best accuracy-latency balance among the tested models. Compositional analyses remain more difficult than routine retrieval, particularly comparisons between groups or periods. Verification improves performance when the Judge uses authoritative field definitions and the Refiner receives execution evidence, whereas additional checking alone offers no consistent benefit. These findings demonstrate the potential of locally deployed, domain-grounded workflows to broaden access to crash analysis and identify the reasoning and verification capabilities needed for reliable use.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Web, search, and research agents, one of 16 directions in LLM agents and tool use. Builds on 39 of its 50 references that are in the map. Submitted 26 Oct 2026.

Builds on

39 of 50 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023MAC-SQL: A Multi-Agent Collaborative Framework for Text-to-SQL18 Dec

Other references · 38

  1. 2024The Llama 3 Herd of Modelscited by 16,113
  2. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,963
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,845
  4. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
  5. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,810
  6. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 6,016
  7. 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,789
  8. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,799
  9. 2024Qwen2.5-Coder Technical Reportcited by 1,301
  10. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,241
  11. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,205
  12. 2023Large Language Models Cannot Self-Correct Reasoning Yetcited by 1,170
26 more
  1. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 747
  2. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 714
  3. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 503
  4. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 446
  5. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 407
  6. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 216
  7. 2024CHESS: Contextual Harnessing for Efficient SQL Synthesiscited by 181
  8. 2020Semantic Evaluation for Text-to-SQL with Distilled Test Suitescited by 137
  9. 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 104
  10. 2024UrbanGPT: Spatio-Temporal Large Language Modelscited by 88
  11. 2023LLMLight: Large Language Models as Traffic Signal Control Agentscited by 80
  12. 2023TrafficGPT: Viewing, Processing and Interacting with Traffic Foundation Modelscited by 47
  13. 2025Exploring the Roles of Large Language Models in Reshaping Transportation Systems: A Survey, Framework, and Roadmapcited by 27
  14. 2023Large Language Models in Analyzing Crash Narratives -- A Comparative Study of ChatGPT, BARD and GPT-4cited by 18
  15. 2024Leveraging Large Language Models with Chain-of-Thought and Prompt Engineering for Traffic Crash Severity Analysis and Inferencecited by 15
  16. 2025V2X-LLM: Enhancing V2X Integration and Understanding in Connected Vehicle Corridorscited by 15
  17. 2023ChatGPT is on the Horizon: Could a Large Language Model be Suitable for Intelligent Traffic Safety Research and Applications?cited by 11
  18. 2024Learning Traffic Crashes as Language: Datasets, Benchmarks, and What-if Causal Analysescited by 11
  19. 2026CrashSight: A Phase-Aware, Infrastructure-Centric Video Benchmark for Traffic Crash Scene Understanding and Reasoningcited by 6
  20. 2025Advanced Crash Causation Analysis for Freeway Safety: A Large Language Model Approach to Identifying Key Contributing Factorscited by 4
  21. 2025Accuracy is Not Agreement: Expert-Aligned Evaluation of Crash Narrative Classification Modelscited by 3
  22. 2025Improving Crash Data Quality with Large Language Models: Evidence from Secondary Crash Narratives in Kentuckycited by 3
  23. 2026An Agentic Workflow for Detecting Personally Identifiable Information in Crash Narrativescited by 3
  24. 2026Benchmarking Frontier Large Language Models Against Official Crash Database Coding Using Police Crash Narrativescited by 3
  25. 2026TransportAgents: a multi-agents LLM framework for traffic accident severity predictioncited by 1
  26. 2026Forecasting the Emergence and Evolution of Crash Hotspots: A Unified Deep Learning Framework for Proactive Traffic Safetycited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025CrashSage: A Large Language Model-Centered Framework for Contextual and Interpretable Traffic Crash Analysis
  2. 2026CRASH: Cognitive Reasoning Agent for Safety Hazards in Autonomous Driving
  3. 2026ASTRA - Agentic System for Ticket Resolution and Analysis
  4. 2025Domain-Adapted Pre-trained Language Models for Implicit Information Extraction in Crash Narratives
  5. 2025From Narratives to Probabilistic Reasoning: Predicting and Interpreting Drivers' Hazardous Actions in Crashes Using Large Language Model
  6. 2026Crash Narrative-Guided Countermeasure Recommendation Using Large Language Models: A Retrieval-Augmented Generation Framework for Intersection Safety
  7. 2025Crash Report Enhancement with Large Language Models: An Empirical Study
  8. 2025Evaluating Retrieval Augmented Generative Models for Document Queries in Transportation Safety