rheumatoid is affiliated with which diseases or conditions?
Entity
m.094nwl
Fordyce spots
class entity
medicine.disease m.02tds8
medicine.disease medicine.disease
Disease or medical condition rheumatoid
none none
medicine.disease.affiliated_diseases
Affiliated diseases
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :medicine.disease . 
VALUES ?x1 { :m.02tds8 } 
?x0 :medicine.disease.affiliated_diseases ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND medicine.disease (JOIN medicine.disease.affiliated_diseases m.02tds8))