Question: Count all the places where companies located in Ontario operate.
SPARQL query:
PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x onto:locationCity <http://dbpedia.org/resource/Ontario> . ?x prop:locations ?uri . }