instruction: Calculate the total number of patients who had transient ischemic attack as their primary disease.
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.diagnosis = "TRANSIENT ISCHEMIC ATTACK"