SELECT DISTINCT COUNT(?uri) WHERE {?uri <http://dbpedia.org/property/location> <http://dbpedia.org/resource/Toronto> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Building>}
How many buildings are located in Toronto ?
SELECT DISTINCT COUNT ( ?s ) WHERE { ?s property:location resource:Toronto . ?s rdf:type ontology:Building }
142
There are [142] buildings whose Location is Toronto.
In Toronto [142] buildings are there.
There are [142] buildings whose Location is the country.
The country has [142] buildings.