instruction: give me the number of patients whose diagnoses icd9 code is 5180 and lab test abnormal status is abnormal?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id INNER JOIN lab ON demographic.hadm_id = lab.hadm_id WHERE diagnoses.icd9_code = "5180" AND lab.flag = "abnormal"