How many {official religion} are to/by {Sunni Islam} ?
Sunni Islam has what official religion?
What is the official religion of the Sunni Islam?
SELECT ( COUNT ( ?b ) AS ?d ) { ?b property:official_religion resource:Sunni_Islam }
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/P3075> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q483654 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P3075 wd:Q483654 }
29