How many {honorific prefix} are to/by {Sir} ?
Give me the honorific prefixes that relate to Sir.
How many honorific prefixes relate to Sir?
SELECT ( COUNT ( ?g ) AS ?f ) { ?g property:honorific_prefix resource:Sir }
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/P511> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q209690 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P511 wd:Q209690 }
20309