instruction: Calculate the maximum age of patients who had pneumonia, human immunodeficiency virus (rule out tuberculosis) as their primary disease and remained admitted for 5 days.
response: SELECT MAX(demographic.age) FROM demographic WHERE demographic.diagnosis = "PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS" AND demographic.days_stay = "5"