How many {authority} are to/by {European Union} ?
How many officials govern the EU?
how many authorities lead the european union?
SELECT ( COUNT ( ?q ) AS ?o ) { ?q property:authority resource:European_Union }
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/P797> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q458 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P797 wd:Q458 }
4