mlsanityData to 14 Oct 2026

SCARE: A Benchmark for SQL Correction and Question Answerability Classification for Reliable EHR Question Answering

arXiv 2511.17559 ↗First posted 13 Nov 2025cs.CL cs.DBcited by 0

Not on the map. Why?

Abstract (arXiv)

Recent advances in Large Language Models (LLMs) have enabled the development of text-to-SQL models that allow clinicians to query structured data stored in Electronic Health Records (EHRs) using natural language. However, deploying these models for EHR question answering (QA) systems in safety-critical clinical environments remains challenging: incorrect SQL queries-whether caused by model errors or problematic user inputs-can undermine clinical decision-making and jeopardize patient care. While prior work has mainly focused on improving SQL generation accuracy or filtering questions before execution, there is a lack of a unified benchmark for evaluating independent post-hoc verification mechanisms (i.e., a component that inspects and validates the generated SQL before execution), which is crucial for safe deployment. To fill this gap, we introduce SCARE, a benchmark for evaluating methods that function as a post-hoc safety layer in EHR QA systems. SCARE evaluates the joint task of (1) classifying question answerability (i.e., determining whether a question is answerable, ambiguous, or unanswerable) and (2) verifying or correcting candidate SQL queries. The benchmark comprises 4,200 triples of questions, candidate SQL queries, and expected model outputs, grounded in the MIMIC-III, MIMIC-IV, and eICU databases. It covers a diverse set of questions and corresponding candidate SQL queries generated by seven different text-to-SQL models, ensuring a realistic and challenging evaluation. Using SCARE, we benchmark a range of approaches-from two-stage methods to agentic frameworks. Our experiments reveal a critical trade-off between question classification and SQL error correction, highlighting key challenges and outlining directions for future research.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 21 of its 29 references that are in the map. First posted on arXiv 13 Nov 2025.

Builds on

21 of 29 references.

References · 21

  1. 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
  2. 2025Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilitiescited by 3,796
  3. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  4. 2024CodeS: Towards Building Open-source Language Models for Text-to-SQLcited by 187
  5. 2019CoSQL: A Conversational Text-to-SQL Challenge Towards Cross-Domain Natural Language Interfaces to Databasescited by 185
  6. 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101
  7. 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 78
  8. 2019Text-to-SQL Generation for Question Answering on Electronic Medical Recordscited by 77
  9. 2023How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settingscited by 58
  10. 2023EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Recordscited by 45
  11. 2023Text2Analysis: A Benchmark of Table Question Answering with Advanced Data Analysis and Unclear Queriescited by 38
  12. 2024MAGIC: Generating Self-Correction Guideline for In-Context Text-to-SQLcited by 35
9 more
  1. 2024Large Language Model Enhanced Text-to-SQL Generation: A Surveycited by 24
  2. 2020Knowledge Graph-based Question Answering with Electronic Health Recordscited by 19
  3. 2024TrustSQL: Benchmarking Text-to-SQL Reliability with Penalty-Based Scoringcited by 17
  4. 2020Did You Ask a Good Question? A Cross-Domain Question Intention Classification Benchmark for Text-to-SQLcited by 16
  5. 2025SQLens: An End-to-End Framework for Error Detection and Correction in Text-to-SQLcited by 12
  6. 2024Overview of the EHRSQL 2024 Shared Task on Reliable Text-to-SQL Modeling on Electronic Health Recordscited by 11
  7. 2025Confidence Estimation for Error Detection in Text-to-SQL Systemscited by 11
  8. 2023Question Answering for Electronic Health Records: A Scoping Review of datasets and modelscited by 7
  9. 2020ColloQL: Robust Cross-Domain Text-to-SQL Over Search Queriescited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026EHR-RobustGym: Benchmarking and Training Agents for Robust Clinical Reasoning
  2. 2025Trustworthy Medical Question Answering: An Evaluation-Centric Survey
  3. 2024LG AI Research & KAIST at EHRSQL 2024: Self-Training Large Language Models with Pseudo-Labeled Unanswerable Questions for a Reliable Text-to-SQL System on EHRs
  4. 2025From Conversation to Query Execution: Benchmarking User and Tool Interactions for EHR Database Agents
  5. 2026Automating Clinical Information Retrieval from Finnish Electronic Health Records Using Large Language Models
  6. 2026Mind the Ambiguity: Aleatoric Uncertainty Quantification in LLMs for Safe Medical Question Answering
  7. 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domain
  8. 2026UIC-AIHealth4All at ArchEHR-QA 2026: Answer-First Evidence Grounding for Clinical Question Answering