SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/ontology/headquarter> <http://dbpedia.org/resource/Berlin> . ?x <http://dbpedia.org/ontology/leader> ?uri . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Politician>}
How many party leaders are there whose parties are headquartered in Berlin?
SELECT DISTINCT COUNT ( ?o ) WHERE { ?e property:headquarter resource:Berlin . ?e property:leader ?o . ?o rdf:type ontology:Politician }
31
There are [31] party leaders whose parties are headquartered in Berlin.
[31] party leaders are there whose parties are based in Berlin.