instruction: what is the number of patients whose admission type is elective and primary disease is s/p hanging?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.diagnosis = "S/P HANGING"