the disease or conditions of ankylosing spondylitis are associated with which medical specialty?
(AND medicine.medical_specialty (JOIN medicine.medical_specialty.diseases_treated (JOIN (R medicine.disease_cause.diseases) m.02gwg9)))