SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/ontology/largestCity> <http://dbpedia.org/resource/Papeete> . ?uri <http://dbpedia.org/property/archipelago> ?x . }
Give me a count of everything under the archipelago, where Papeete is the biggest town.
SELECT DISTINCT COUNT ( ?i ) WHERE { ?i property:archipelago ?i . . ?i property:largest_city resource:Papeete }
14
There are [14] things whose archipelago's largest city is Papeete.
There are [14] things whose largest city on the archipelago is Papeete.