instruction: how many patients who stayed in the hospital for more than 17 days have death status as 1?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.days_stay > "17"