How many {noble title} are to/by {emir} ?
What is the number of noble titles given to the {emir}?
How many noble titles owned by {emir} ?
SELECT ( COUNT ( ?l ) AS ?g ) { ?l property:noble_title resource:emir }
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/P97> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q166382 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P97 wd:Q166382 }
31