Lune

ACL Findings2024

EHR-SeqSQL : A Sequential Text-to-SQL Dataset For Interactively Exploring Electronic Health Records

Jaehee Ryu, Seonhee Cho, Gyubok Lee, Edward Choi

Abstract

In this paper, we introduce EHR-SeqSQL, a novel sequential text-to-SQL dataset for Electronic Health Record (EHR) databases. EHR-SeqSQL is designed to address critical yet underexplored aspects in text-to-SQL parsing: interactivity, compositionality, and efficiency. To the best of our knowledge, EHR-SeqSQL is not only the largest but also the first medical text-to-SQL dataset benchmark to include sequential and contextual questions. We provide a data split and the new test set designed to assess compositional generalization ability. Our experiments demonstrate the superiority of a multiturn approach over a single-turn approach in learning compositionality. Additionally, our dataset integrates specially crafted tokens into SQL queries to improve execution efficiency. With EHR-SeqSQL, we aim to bridge the gap between practical needs and academic research in the text-to-SQL domain.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • From Conversation to Query Execution: Benchmarking User and Tool Interactions for EHR Database Agents cites Text-to-SQL Generation for Question Answering on Electronic Medical Records
  • MedAgentGym: A Scalable Agentic Training Environment for Code-Centric Reasoning in Biomedical Data Science cites Text-to-SQL Generation for Question Answering on Electronic Medical Records
  • RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQL cites HIE-SQL: History Information Enhanced Network for Context-Dependent Text-to-SQL Semantic Parsing
  • STAR: SQL Guided Pre-Training for Context-dependent Text-to-SQL Parsing cites HIE-SQL: History Information Enhanced Network for Context-Dependent Text-to-SQL Semantic Parsing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. MedAgentGym: A Scalable Agentic Training Environment for Code-Centric Reasoning in Biomedical Data ScienceRan Xu, Yuchen Zhuang, Yishan Zhong, Yue Yu et al.ICLR 2026 · 17 citations
  2. From Conversation to Query Execution: Benchmarking User and Tool Interactions for EHR Database AgentsGyubok Lee, Woosog Chay, Heeyoung Kwak, Yeong Hwa Kim et al.ICLR 2026 · 2 citations

Builds on10

  1. Text-to-SQL Generation for Question Answering on Electronic Medical RecordsPing Wang, Tian Shi, Chandan K. ReddyWWW 2020 · 148 citations
  2. A Learned Query Rewrite System using Monte Carlo Tree SearchXuanhe Zhou, Guoliang Li, Chengliang Chai, Jianhua FengVLDB 2022 · 85 citations
  3. RASAT: Integrating Relational Structures into Pretrained Seq2Seq Model for Text-to-SQLJiexing Qi, Jingyao Tang, Ziwei He, Xiangpeng Wan et al.EMNLP 2022 · 73 citations
  4. HIE-SQL: History Information Enhanced Network for Context-Dependent Text-to-SQL Semantic ParsingYanzhao Zheng, Haibin Wang, Baohua Dong, Xingjun Wang et al.ACL Findings 2022 · 34 citations
  5. STAR: SQL Guided Pre-Training for Context-dependent Text-to-SQL ParsingZefeng Cai, Xiangyu Li, Binyuan Hui, Min Yang et al.EMNLP Findings 2022 · 27 citations

Related papers

  1. CSS: A Large-scale Cross-schema Chinese Text-to-SQL Medical DatasetHanchong Zhang, Jieyu Li, Lu Chen, Ruisheng Cao et al.ACL Findings 2023 · 2 citations
  2. Decoupled Dialogue Modeling and Semantic Parsing for Multi-Turn Text-to-SQLZhi Chen, Lu Chen, Hanqi Li, Ruisheng Cao et al.ACL Findings 2021 · 20 citations
  3. STARQA: A Question Answering Dataset for Complex Analytical Reasoning over Structured DatabasesMounica Maddela, Lingjue Xie, Daniel Preotiuc-Pietro, MausamEMNLP 2025
  4. Exploring the Compositional Generalization in Context Dependent Text-to-SQL ParsingAiwei Liu, Wei Liu, Xuming Hu, Shuang Li et al.ACL Findings 2023 · 1 citation
  5. MultiSQL: A Schema-Integrated Context-Dependent Text2SQL Dataset with Diverse SQL OperationsChunhui Li, Yifan Wang, Zhen Wu, Zhen Yu et al.ACL Findings 2024 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines