How many {significant drug interaction} are to/by {cocaine} ?
How often does cocaine have significant drug interactions?
How many significant drug interactions are there to cocaine.
SELECT ( COUNT ( ?g ) AS ?c ) { ?g property:significant_drug_interaction resource:cocaine }
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/P769> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q41576 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P769 wd:Q41576 }
37