instruction: Count the number of patients whose admission type is elective and have stayed in the hospital for more than 9 days.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "ELECTIVE" AND demographic.days_stay > "9"