How many {place of publication} are to/by {Brasília} ?
Are there many places where someone can publish in Brasilia?
How many places of publication are in Brasília?
SELECT ( COUNT ( ?x ) AS ?p ) { ?x property:place_of_publication resource:Brasília }
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/P291> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q2844 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P291 wd:Q2844 }
12865