instruction: Get the number of patients with chest pain as their primary disease who were born before 2112.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "CHEST PAIN" AND demographic.dob_year < "2112"