Mahal Systems

Overview › Benchmark catalog

EHRSQL

Fits text-to-SQL or data-retrieval agents over hospital databases. Borrow the questions collected from 222 real hospital staff, the time-expression templates, the unanswerable question split, and the execution-based F1 that penalizes confident wrong answers.

What it asks the agent to do

  • translate a hospital staff question into SQL over MIMIC-III or eICU
  • resolve relative time expressions such as last year or since admission
  • abstain when a question cannot be answered from the database

What to borrow from it

case templategrading designprivacy pattern

Caveats

Single-shot text-to-SQL, no agent loop; shipped SQLite databases have shuffled patient values and rebuilding from source needs PhysioNet credentialed MIMIC-III and eICU; the MIMIC-IV version (EHRSQL-2024 shared task) lives in a separate repo; annotations were revised in 2026 (v1.5) so older numbers are not comparable.

Details

Workloadshealthcare, sql
Interactionsingle turn
Environmentdatabase
End state checkedNo
ToolsSQLite database
Gradingexact match, programmatic check
Size24,411
Datareal public
Personal datapossible
LicenseCC-BY-4.0
Harnessown repo
Statusactive

Links