mlsanityData to 14 Oct 2026

Retrieval augmented text-to-SQL generation for epidemiological question answering using electronic health records

arXiv 2403.09226 ↗First posted 14 Mar 2024cs.CLcited by 8

On the map: Retrieval-augmented generation → Medical and biomedical RAG

Abstract (arXiv)

Electronic health records (EHR) and claims data are rich sources of real-world data that reflect patient health status and healthcare utilization. Querying these databases to answer epidemiological questions is challenging due to the intricacy of medical terminology and the need for complex SQL queries. Here, we introduce an end-to-end methodology that combines text-to-SQL generation with retrieval augmented generation (RAG) to answer epidemiological questions using EHR and claims data. We show that our approach, which integrates a medical coding step into the text-to-SQL process, significantly improves the performance over simple prompting. Our findings indicate that although current language models are not yet sufficiently accurate for unsupervised use, RAG offers a promising direction for improving their capabilities, as shown in a realistic industry setting.

Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Placed in Medical and biomedical RAG, one of 15 directions in Retrieval-augmented generation. Builds on 13 of its 31 references that are in the map. First posted on arXiv 14 Mar 2024.

Builds on

13 of 31 references.

References · 13

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  4. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 477
  5. 2023Text-to-SQL Empowered by Large Language Models: A Benchmark Evaluationcited by 385
  6. 2020Self-Alignment Pretraining for Biomedical Entity Representationscited by 237
  7. 2019Text-to-SQL Generation for Question Answering on Electronic Medical Recordscited by 77
  8. 2023How to Prompt LLMs for Text-to-SQL: A Study in Zero-shot, Single-domain, and Cross-domain Settingscited by 58
  9. 2021Knowledge-Rich Self-Supervision for Biomedical Entity Linkingcited by 31
  10. 2023Selective Demonstrations for Cross-domain Text-to-SQLcited by 21
  11. 2022Multi-label Few-shot ICD Coding as Autoregressive Generation with Promptcited by 17
  12. 2023Towards Understanding the Generalization of Medical Text-to-SQL Models and Datasetscited by 9
1 more
  1. 2022Generalizing over Long Tail Concepts for Medical Term Normalizationcited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 4.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024The Geometry of Queries: Query-Based Innovations in Retrieval-Augmented Generation for Healthcare QA
  2. 2025Retrieval-Augmented Generation in Medicine: A Scoping Review of Technical Implementations, Clinical Applications, and Ethical Considerations
  3. 2025heiDS at ArchEHR-QA 2025: From Fixed-k to Query-dependent-k for Retrieval Augmented Generation
  4. 2024Comprehensive and Practical Evaluation of Retrieval-Augmented Generation Systems for Medical Question Answering
  5. 2025PICOs-RAG: PICO-supported Query Rewriting for Retrieval-Augmented Generation in Evidence-Based Medicine
  6. 2024Development and Testing of Retrieval Augmented Generation in Large Language Models -- A Case Study Report
  7. 2023MKRAG: Medical Knowledge Retrieval Augmented Generation for Medical Question Answering
  8. 2025Evaluating Retrieval-Augmented Generation vs. Long-Context Input for Clinical Reasoning over EHRs