Text-to-SQL Generation for Question Answering on Electronic Medical Records
Not on the map. Why?
Abstract (arXiv)
Electronic medical records (EMR) contain comprehensive patient information and are typically stored in a relational database with multiple tables. Effective and efficient patient information retrieval from EMR data is a challenging task for medical experts. Question-to-SQL generation methods tackle this problem by first predicting the SQL query for a given question about a database, and then, executing the query on the database. However, most of the existing approaches have not been adapted to the healthcare domain due to a lack of healthcare Question-to-SQL dataset for learning models specific to this domain. In addition, wide use of the abbreviation of terminologies and possible typos in questions introduce additional challenges for accurately generating the corresponding SQL queries. In this paper, we tackle these challenges by developing a deep learning based TRanslate-Edit Model for Question-to-SQL (TREQS) generation, which adapts the widely used sequence-to-sequence model to directly generate the SQL query for a given question, and further performs the required edits using an attentive-copying mechanism and task-specific look-up tables. Based on the widely used publicly available electronic medical database, we create a new large-scale Question-SQL pair dataset, named MIMICSQL, in order to perform the Question-to-SQL generation task in healthcare domain. An extensive set of experiments are conducted to evaluate the performance of our proposed model on MIMICSQL. Both quantitative and qualitative experimental results indicate the flexibility and efficiency of our proposed method in predicting condition values and its robustness to random questions with abbreviations and typos.
Key facts. Cited by 77 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 Jul 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 7; 2022: 9; 2023: 15; 2024: 15; 2025: 17; 2026: 14.
77 papers.
Sort:
By area:
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
- 2021QA Dataset Explosion: A Taxonomy of NLP Resources for Question Answering and Reading Comprehensioncited by 91
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 78
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 56
- 2023ECG-QA: A Comprehensive Question Answering Dataset Combined With Electrocardiogramcited by 54
- 2023EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Imagescited by 53
- 2022Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expectcited by 47
- 2021Biomedical Question Answering: A Survey of Approaches and Challengescited by 46
- 2025DABstep: Data Agent Benchmark for Multi-step Reasoningcited by 46
- 2023EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Recordscited by 45
- 2023ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systemscited by 45
38 more
- 2021OCT-GAN: Neural ODE-based Conditional Tabular GANscited by 27
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
- 2025MedAgentGym: A Scalable Agentic Training Environment for Code-Centric Reasoning in Biomedical Data Sciencecited by 23
- 2025FHIR-AgentBench: Benchmarking LLM Agents for Realistic Interoperable EHR Question Answeringcited by 22
- 2022DrugEHRQA: A Question Answering Dataset on Structured and Unstructured Electronic Health Records For Medicine Related Queriescited by 17
- 2021Natural Language Processing for Smart Healthcarecited by 14
- 2023Semantic Decomposition of Question and SQL for Text-to-SQL Parsingcited by 14
- 2024SM3-Text-to-Query: Synthetic Multi-Model Medical Text-to-Query Benchmarkcited by 14
- 2023A Review on Knowledge Graphs for Healthcare: Resources, Applications, and Promisescited by 13
- 2024Evaluating the Data Model Robustness of Text-to-SQL Systems Based on Real User Queriescited by 12
- 2025ExeSQL: Self-Taught Text-to-SQL Models with Execution-Driven Bootstrapping for SQL Dialectscited by 12
- 2024Overview of the EHRSQL 2024 Shared Task on Reliable Text-to-SQL Modeling on Electronic Health Recordscited by 11
- 2021A Scoping Review of Publicly Available Language Tasks in Clinical Natural Language Processingcited by 10
- 2023Testing the Limits of Unified Sequence to Sequence LLM Pretraining on Diverse Table Data Taskscited by 10
- 2024BookSQL: A Large Scale Text-to-SQL Dataset for Accounting Domaincited by 10
- 2021Question Answering for Complex Electronic Health Records Database using Unified Encoder-Decoder Architecturecited by 9
- 2023Towards Understanding the Generalization of Medical Text-to-SQL Models and Datasetscited by 9
- 2023LeafAI: query generator for clinical cohort discovery rivaling a human programmercited by 9
- 2023Reboost Large Language Model-based Text-to-SQL, Text-to-Python, and Text-to-Function -- with Real Applications in Traffic Domaincited by 9
- 2024Almanac Copilot: Towards Autonomous Electronic Health Record Navigationcited by 9
- 2025Sparks of Tabular Reasoning via Text2SQL Reinforcement Learningcited by 9
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health recordscited by 8
- 2022Learn from Yesterday: A Semi-Supervised Continual Learning Method for Supervision-Limited Text-to-SQL Task Streamscited by 7
- 2023Question Answering for Electronic Health Records: A Scoping Review of datasets and modelscited by 7
- 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 EHRscited by 7
- 2022Artificial Intelligence for In Silico Clinical Trials: A Reviewcited by 6
- 2024Unmasking Database Vulnerabilities: Zero-Knowledge Schema Inference Attacks in Text-to-SQL Systemscited by 6
- 2023Parameterizing Context: Unleashing the Power of Parameter-Efficient Fine-Tuning and In-Context Tuning for Continual Table Semantic Parsingcited by 5
- 2024EHR-SeqSQL : A Sequential Text-to-SQL Dataset For Interactively Exploring Electronic Health Recordscited by 5
- 2021Attention-based Aspect Reasoning for Knowledge Base Question Answering on Clinical Notescited by 4
- 2022Uncertainty-Aware Text-to-Program for Question Answering on Structured Electronic Health Recordscited by 4
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generationcited by 4
- 2025BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Basescited by 4
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunitiescited by 4
- 2026AgentEHR: Advancing Autonomous Clinical Decision-Making via Retrospective Summarizationcited by 4
- 2026ClinEnv: An Interactive Multi-Stage Long Horizon EHR Environment for Agentscited by 4
- 2022On the Security Vulnerabilities of Text-to-SQL Modelscited by 3
- 2024Towards Unbiased Evaluation of Detecting Unanswerable Questions in EHRSQLcited by 3
50 most cited of 77 All 77 (JSON)
- 2026Answering clinicians' questions over trial evidence tables with verifiable, feedback-driven language models1 Oct 2026
- 2026CLARA: Clarification of Language Ambiguity through Result Analysis for Natural-Language Cancer Genomics Queries3 Aug 2026
- 2026ClinEnv: An Interactive Multi-Stage Long Horizon EHR Environment for Agents1 Jun 2026
- 2026EHRBench: An Automated and Reliable EHR-based Benchmark for Clinical Decision Making with LLMs28 May 2026
- 2026CodeClinic: Evaluating Automation of Coding Skills for Clinical Reasoning Agents10 May 2026
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQL24 Apr 2026
- 2026HypEHR: Hyperbolic Modeling of Electronic Health Records for Efficient Question Answering22 Apr 2026
- 2026RAMoEA-QA: Hierarchical Specialization for Robust Respiratory Audio Question Answering6 Mar 2026
- 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domain5 Mar 2026
- 2026FHIRPath-QA: Executable Question Answering over FHIR Electronic Health Records26 Feb 2026
- 2026RA-QA: A Benchmarking System for Respiratory Audio Question Answering Under Real-World Heterogeneity4 Feb 2026
- 2026AgentEHR: Advancing Autonomous Clinical Decision-Making via Retrospective Summarization20 Jan 2026
38 more
- 2026EHRNavigator: A Multi-Agent System for Patient-Level Clinical Question Answering over Heterogeneous Electronic Health Records15 Jan 2026
- 2026RingSQL: Schema-Independent Synthetic Data Generation for Text-to-SQL Reinforcement Learning9 Jan 2026
- 2025SQaLe: A Large Text-to-SQL Corpus Grounded in Real Schemas16 Dec 2025
- 2025Unlocking Electronic Health Records: A Hybrid Graph RAG Approach to Safe Clinical AI for Patient QA27 Nov 2025
- 2025SCARE: A Benchmark for SQL Correction and Question Answerability Classification for Reliable EHR Question Answering13 Nov 2025
- 2025Reliable Curation of EHR Dataset via Large Language Models under Environmental Constraints2 Nov 2025
- 2025FHIR-AgentBench: Benchmarking LLM Agents for Realistic Interoperable EHR Question Answering12 Sep 2025
- 2025Trustworthy Agents for Electronic Health Records through Confidence Estimation26 Aug 2025
- 2025DABstep: Data Agent Benchmark for Multi-step Reasoning30 Jun 2025
- 2025Text2VectorSQL: Towards a Unified Interface for Vector Search and SQL Queries29 Jun 2025
- 2025M3: Conversational LLMs Simplify Secure Clinical Data Access, Understanding, and Analysis27 Jun 2025
- 2025MedAgentGym: A Scalable Agentic Training Environment for Code-Centric Reasoning in Biomedical Data Science4 Jun 2025
- 2025Exploring the Landscape of Text-to-SQL with Large Language Models: Progresses, Challenges and Opportunities28 May 2025
- 2025BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases23 May 2025
- 2025ExeSQL: Self-Taught Text-to-SQL Models with Execution-Driven Bootstrapping for SQL Dialects22 May 2025
- 2025Sparks of Tabular Reasoning via Text2SQL Reinforcement Learning23 Apr 2025
- 2025Domain Specific Question to SQL Conversion with Embedded Data Balancing Technique28 Mar 2025
- 2025TinySQL: A Progressive Text-to-SQL Dataset for Mechanistic Interpretability Research17 Mar 2025
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation28 Feb 2025
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflows12 Nov 2024
- 2024SM3-Text-to-Query: Synthetic Multi-Model Medical Text-to-Query Benchmark8 Nov 2024
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?9 Aug 2024
- 2024Question Answering with Texts and Tables through Deep Reinforcement Learning5 Jul 2024
- 2024Beyond Text-to-SQL for IoT Defense: A Comprehensive Framework for Querying and Classifying IoT Threats25 Jun 2024
- 2024Unmasking Database Vulnerabilities: Zero-Knowledge Schema Inference Attacks in Text-to-SQL Systems20 Jun 2024
- 2024BookSQL: A Large Scale Text-to-SQL Dataset for Accounting Domain12 Jun 2024
- 2024EHR-SeqSQL : A Sequential Text-to-SQL Dataset For Interactively Exploring Electronic Health Records23 May 2024
- 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 EHRs18 May 2024
- 2024Overview of the EHRSQL 2024 Shared Task on Reliable Text-to-SQL Modeling on Electronic Health Records4 May 2024
- 2024Almanac Copilot: Towards Autonomous Electronic Health Record Navigation30 Apr 2024
- 2024Towards Unbiased Evaluation of Detecting Unanswerable Questions in EHRSQL29 Apr 2024
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records14 Mar 2024
- 2024Evaluating the Data Model Robustness of Text-to-SQL Systems Based on Real User Queries13 Feb 2024
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Records13 Jan 2024
- 2023Semantic Parsing for Complex Data Retrieval: Targeting Query Plans vs. SQL for No-Code Access to Relational Databases22 Dec 2023
- 2023Reboost Large Language Model-based Text-to-SQL, Text-to-Python, and Text-to-Function -- with Real Applications in Traffic Domain28 Oct 2023
- 2023EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images28 Oct 2023
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Survey27 Oct 2023
50 newest of 77 All 77 (JSON)
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Recordscited by 78
- 2025DABstep: Data Agent Benchmark for Multi-step Reasoningcited by 46
- 2025MedAgentGym: A Scalable Agentic Training Environment for Code-Centric Reasoning in Biomedical Data Sciencecited by 23
- 2025Sparks of Tabular Reasoning via Text2SQL Reinforcement Learningcited by 9
- 2025BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Basescited by 4
- 2026CodeClinic: Evaluating Automation of Coding Skills for Clinical Reasoning Agentscited by 2
- 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domaincited by 0
- 2026CodeClinic: Evaluating Automation of Coding Skills for Clinical Reasoning Agents10 May 2026
- 2026CBR-to-SQL: Rethinking Retrieval-based Text-to-SQL using Case-based Reasoning in the Healthcare Domain5 Mar 2026
- 2025DABstep: Data Agent Benchmark for Multi-step Reasoning30 Jun 2025
- 2025MedAgentGym: A Scalable Agentic Training Environment for Code-Centric Reasoning in Biomedical Data Science4 Jun 2025
- 2025BiomedSQL: Text-to-SQL for Scientific Reasoning on Biomedical Knowledge Bases23 May 2025
- 2025Sparks of Tabular Reasoning via Text2SQL Reinforcement Learning23 Apr 2025
- 2024EHRAgent: Code Empowers Large Language Models for Few-shot Complex Tabular Reasoning on Electronic Health Records13 Jan 2024
- 2025FHIR-AgentBench: Benchmarking LLM Agents for Realistic Interoperable EHR Question Answeringcited by 22
- 2026ClinEnv: An Interactive Multi-Stage Long Horizon EHR Environment for Agentscited by 4
- 2025Trustworthy Agents for Electronic Health Records through Confidence Estimationcited by 2
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQLcited by 1
- 2026ClinEnv: An Interactive Multi-Stage Long Horizon EHR Environment for Agents1 Jun 2026
- 2026PExA: Parallel Exploration Agent for Complex Text-to-SQL24 Apr 2026
- 2025FHIR-AgentBench: Benchmarking LLM Agents for Realistic Interoperable EHR Question Answering12 Sep 2025
- 2025Trustworthy Agents for Electronic Health Records through Confidence Estimation26 Aug 2025
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health recordscited by 8
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generationcited by 4
- 2025Unlocking Electronic Health Records: A Hybrid Graph RAG Approach to Safe Clinical AI for Patient QAcited by 1
- 2025Unlocking Electronic Health Records: A Hybrid Graph RAG Approach to Safe Clinical AI for Patient QA27 Nov 2025
- 2025Generating patient cohorts from electronic health records using two-step retrieval-augmented text-to-SQL generation28 Feb 2025
- 2024Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records14 Mar 2024
- 2025ExeSQL: Self-Taught Text-to-SQL Models with Execution-Driven Bootstrapping for SQL Dialectscited by 12
- 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 EHRscited by 7
- 2026RingSQL: Schema-Independent Synthetic Data Generation for Text-to-SQL Reinforcement Learningcited by 0
- 2026RingSQL: Schema-Independent Synthetic Data Generation for Text-to-SQL Reinforcement Learning9 Jan 2026
- 2025ExeSQL: Self-Taught Text-to-SQL Models with Execution-Driven Bootstrapping for SQL Dialects22 May 2025
- 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 EHRs18 May 2024
- 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 688
- 2024Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflowscited by 232
- 2021QA Dataset Explosion: A Taxonomy of NLP Resources for Question Answering and Reading Comprehensioncited by 91
- 2024A Survey of Text-to-SQL in the Era of LLMs: Where are we, and where are we going?cited by 56
- 2023ECG-QA: A Comprehensive Question Answering Dataset Combined With Electrocardiogramcited by 54
- 2023EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Imagescited by 53
- 2022Recent Advances in Text-to-SQL: A Survey of What We Have and What We Expectcited by 47
- 2021Biomedical Question Answering: A Survey of Approaches and Challengescited by 46
- 2023EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Recordscited by 45
- 2023ScienceBenchmark: A Complex Real-World Benchmark for Evaluating Natural Language to SQL Systemscited by 45
- 2021OCT-GAN: Neural ODE-based Conditional Tabular GANscited by 27
- 2023Natural Language Interfaces for Tabular Data Querying and Visualization: A Surveycited by 27
12 most cited of 58 All 58 (JSON)
- 2026Answering clinicians' questions over trial evidence tables with verifiable, feedback-driven language models1 Oct 2026
- 2026CLARA: Clarification of Language Ambiguity through Result Analysis for Natural-Language Cancer Genomics Queries3 Aug 2026
- 2026EHRBench: An Automated and Reliable EHR-based Benchmark for Clinical Decision Making with LLMs28 May 2026
- 2026HypEHR: Hyperbolic Modeling of Electronic Health Records for Efficient Question Answering22 Apr 2026
- 2026RAMoEA-QA: Hierarchical Specialization for Robust Respiratory Audio Question Answering6 Mar 2026
- 2026FHIRPath-QA: Executable Question Answering over FHIR Electronic Health Records26 Feb 2026
- 2026RA-QA: A Benchmarking System for Respiratory Audio Question Answering Under Real-World Heterogeneity4 Feb 2026
- 2026AgentEHR: Advancing Autonomous Clinical Decision-Making via Retrospective Summarization20 Jan 2026
- 2026EHRNavigator: A Multi-Agent System for Patient-Level Clinical Question Answering over Heterogeneous Electronic Health Records15 Jan 2026
- 2025SQaLe: A Large Text-to-SQL Corpus Grounded in Real Schemas16 Dec 2025
- 2025SCARE: A Benchmark for SQL Correction and Question Answerability Classification for Reliable EHR Question Answering13 Nov 2025
- 2025Reliable Curation of EHR Dataset via Large Language Models under Environmental Constraints2 Nov 2025
12 newest of 58 All 58 (JSON)