How many {medical condition} are to/by {diabetes mellitus} ?
Tell me about diabetes mellitus.
What is the medical condition of the {diabetes mellitus} ?
SELECT ( COUNT ( ?e ) AS ?t ) { ?e property:medical_condition resource:diabetes_mellitus }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1050> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q12206 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1050 wd:Q12206 }
10115