How many {medical condition treated} are for {diazepam} ?
What medical condition is treated using diazepam?
How many medical conditions are treated by diazepam?
SELECT ( COUNT ( ?p ) AS ?r ) { resource:diazepam property:medical_condition_treated ?p }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q210402> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2175> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q210402 wdt:P2175 ?obj }
10