instruction: provide the number of patients whose year of birth is less than 1882 and drug route is tp?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN prescriptions ON demographic.hadm_id = prescriptions.hadm_id WHERE demographic.dob_year < "1882" AND prescriptions.route = "TP"