EHRSQL: A Practical Text-to-SQL Benchmark for Electronic Health Records