What is the {medical specialty} for {studied by} of {diabetes mellitus}
What study secluded diabeted mellitus?
What is the name of the study that isolated diabetes mellitus?
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:medical_specialty . resource:diabetes_mellitus property:studied_by ?s }
select distinct ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12206> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2579> . ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj . ?obj <http://www.wikidata.org/entity/P31> <http://wikidata.dbpedia.org/resource/Q930752> } 
 select distinct ?obj where { wd:Q12206 wdt:P2579 ?obj . ?obj wdt:P31 wd:Q930752 } 
endocrinology diabetology