Patient-Similarity Cohort Reasoning in Clinical Text-to-SQL
Not on the map. Why?
Abstract (arXiv)
Real-world clinical text-to-SQL requires reasoning over heterogeneous EHR tables, temporal windows, and patient-similarity cohorts to produce executable queries. We introduce CLINSQL, a benchmark of 633 expert-annotated tasks on MIMIC-IV v3.1 that demands multi-table joins, clinically meaningful filters, and executable SQL. Solving CLINSQL entails navigating schema metadata and clinical coding systems, handling long contexts, and composing multi-step queries beyond traditional text-to-SQL. We evaluate 22 proprietary and open-source models under Chain-of-Thought self-refinement and use rubric-based SQL analysis with execution checks that prioritize critical clinical requirements. Despite recent advances, performance remains far from clinical reliability: on the test set, GPT-5-mini attains 74.7% execution score, DeepSeek-R1 leads open-source at 69.2% and Gemini-2.5-Pro drops from 85.5% on Easy to 67.2% on Hard. Progress on CLINSQL marks tangible advances toward clinically reliable text-to-SQL for real-world EHR analytics.
Key facts. Cited by 3 papers in the map (data through 7 Oct 2026). Builds on 21 of its 40 references that are in the map. First posted on arXiv 14 Jan 2026.
Builds on
21 of 40 references.
References · 21
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022Large Language Models Encode Clinical Knowledgecited by 1,807
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,758
- 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,324
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2025PaperBench: Evaluating AI's Ability to Replicate AI Researchcited by 286
- 2024LiveBench: A Challenging, Contamination-Limited LLM Benchmarkcited by 242
- 2025MedXpertQA: Benchmarking Expert-Level Medical Reasoning and Understandingcited by 212
- 2018emrQA: A Large Corpus for Question Answering on Electronic Medical Recordscited by 134
9 more
- 2024Benchmarking Large Language Models on Answering and Explaining Challenging Medical Questionscited by 106
- 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
- 2024MedExQA: Medical Question Answering Benchmark with Multiple Explanationscited by 58
- 2024EHRNoteQA: An LLM Benchmark for Real-World Clinical Practice Using Discharge Summariescited by 33
- 2022DrugEHRQA: A Question Answering Dataset on Structured and Unstructured Electronic Health Records For Medicine Related Queriescited by 17
- 2024Learn from Global Correlations: Enhancing Evolutionary Algorithm via Spectral GNNcited by 15
- 2024SM3-Text-to-Query: Synthetic Multi-Model Medical Text-to-Query Benchmarkcited by 10
- 2025Experience Retrieval-Augmentation with Electronic Health Records Enables Accurate Discharge QAcited by 9
- 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHRcited by 3
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026MolMem: Memory-Augmented Agentic Reinforcement Learning for Sample-Efficient Molecular Optimizationcited by 3
- 2026Rethinking Reasoning-Intensive Retrieval: Evaluating and Advancing Retrievers in Agentic Search Systemscited by 2
- 2026Ascent: An Agentic System over the Model Context Protocol for Real-World Clinical Data Analysiscited by 0
- 2026Ascent: An Agentic System over the Model Context Protocol for Real-World Clinical Data Analysis21 Sep 2026
- 2026Rethinking Reasoning-Intensive Retrieval: Evaluating and Advancing Retrievers in Agentic Search Systems5 May 2026
- 2026MolMem: Memory-Augmented Agentic Reinforcement Learning for Sample-Efficient Molecular Optimization14 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2026EHR-Complex: Benchmarking Medical Agents for Complex Clinical Reasoning
- 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domain
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation
- 2023LeafAI: query generator for clinical cohort discovery rivaling a human programmer
- 2026ClinLens: Towards Long-Horizon Coding Agents for Longitudinal Multimodal Clinical Data Science
- 2026GraphWalker: Patient Analogy Meets Information Gain for Clinical Reasoning with Large Language Models
- 2026FD-NL2SQL: Feedback-Driven Clinical NL2SQL that Improves with Use
- 2026EHR-RobustGym: Benchmarking and Training Agents for Robust Clinical Reasoning