How many {place of publication} are to/by {Nottingham} ?
What is the number of works that have been published in Nottingham?
How many works have been published in Nottingham?
SELECT ( COUNT ( ?y ) AS ?z ) { ?y property:place_of_publication resource:Nottingham }
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/Q41262 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P291 wd:Q41262 }
9