list diseases or medical conditions associated with diabetology
Entity Entity Entity Entity Entity
m.0849qj m.0c58k m.03bzg8_ m.033pgk m.0146bp
Type 1 diabetes Diabetes mellitus Prediabetes Gestational diabetes Type 2 diabetes
class entity
medicine.disease m.02k697
medicine.disease medicine.medical_specialty
Disease or medical condition Diabetology
none none
medicine.disease.medical_specialties
Associated medical specialties
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.02k697 } 
?x0 :medicine.disease.medical_specialties ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND medicine.disease (JOIN medicine.disease.medical_specialties m.02k697))