instruction: provide the number of patients whose admission type is elective and diagnoses long title is subarachnoid hemorrhage?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.admission_type = "ELECTIVE" AND diagnoses.long_title = "Subarachnoid hemorrhage"