SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/ontology/locationCity> <http://dbpedia.org/resource/Ontario> . ?x <http://dbpedia.org/property/locations> ?uri . }
Count all the places where companies located in Ontario operate.
SELECT DISTINCT COUNT ( ?a ) WHERE { ?v property:location_city resource:Ontario . ?v property:locations ?a . }
29
There are [29] locations of the companies which are located in Ontario.
There are [29] company offices in Ontario.