instruction: find the number of patients born before the year 1837 who are no longer alive.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.expire_flag = "1" AND demographic.dob_year < "1837"