mlsanityData to 7 Oct 2026

Patient-Similarity Cohort Reasoning in Clinical Text-to-SQL

arXiv 2601.09876 ↗First posted 14 Jan 2026cs.CLcited by 3

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

  1. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  3. 2022Large Language Models Encode Clinical Knowledgecited by 1,807
  4. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,758
  5. 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,324
  6. 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
  7. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  8. 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
  9. 2025PaperBench: Evaluating AI's Ability to Replicate AI Researchcited by 286
  10. 2024LiveBench: A Challenging, Contamination-Limited LLM Benchmarkcited by 242
  11. 2025MedXpertQA: Benchmarking Expert-Level Medical Reasoning and Understandingcited by 212
  12. 2018emrQA: A Large Corpus for Question Answering on Electronic Medical Recordscited by 134
9 more
  1. 2024Benchmarking Large Language Models on Answering and Explaining Challenging Medical Questionscited by 106
  2. 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
  3. 2024MedExQA: Medical Question Answering Benchmark with Multiple Explanationscited by 58
  4. 2024EHRNoteQA: An LLM Benchmark for Real-World Clinical Practice Using Discharge Summariescited by 33
  5. 2022DrugEHRQA: A Question Answering Dataset on Structured and Unstructured Electronic Health Records For Medicine Related Queriescited by 17
  6. 2024Learn from Global Correlations: Enhancing Evolutionary Algorithm via Spectral GNNcited by 15
  7. 2024SM3-Text-to-Query: Synthetic Multi-Model Medical Text-to-Query Benchmarkcited by 10
  8. 2025Experience Retrieval-Augmentation with Electronic Health Records Enables Accurate Discharge QAcited by 9
  9. 2024KU-DMIS at EHRSQL 2024:Generating SQL query via question templatization in EHRcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026EHR-Complex: Benchmarking Medical Agents for Complex Clinical Reasoning
  2. 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domain
  3. 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation
  4. 2023LeafAI: query generator for clinical cohort discovery rivaling a human programmer
  5. 2026ClinLens: Towards Long-Horizon Coding Agents for Longitudinal Multimodal Clinical Data Science
  6. 2026GraphWalker: Patient Analogy Meets Information Gain for Clinical Reasoning with Large Language Models
  7. 2026FD-NL2SQL: Feedback-Driven Clinical NL2SQL that Improves with Use
  8. 2026EHR-RobustGym: Benchmarking and Training Agents for Robust Clinical Reasoning