instruction: count the number of patients whose admission type is elective and discharge location is dead/expired?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.discharge_location = "DEAD/EXPIRED"