instruction: give me the number of patients whose year of birth is less than 1887 and item id is 50994?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE demographic.dob_year < "1887" AND lab.itemid = "50994"