How many {capital of} are to/by {Kingdom of Sicily} ?
How many capitals does the Kingdom of Sicily have?
The Kingdom of Sicily has how many capitals?
SELECT ( COUNT ( ?f ) AS ?m ) { ?f property:capital_of resource:Kingdom_of_Sicily }
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/P1376> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q188586 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1376 wd:Q188586 }
3