How many {symptoms} are to/by {cough} ?
"Cough" is a symptom for how many conditions?
How many conditions list “cough” as a symptom?
SELECT ( COUNT ( ?s ) AS ?d ) { ?s property:symptoms resource:cough }
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/P780> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q35805 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P780 wd:Q35805 }
193