SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/buildingType> <http://dbpedia.org/resource/Ferris_wheel> . ?x <http://dbpedia.org/property/locationTown> ?uri . }
What are some cities which have a Ferris wheel?
SELECT DISTINCT ?h WHERE { ?o property:building_type resource:Ferris_wheel . ?o property:location_town ?h . }
Brighton, Seattle
The towns with Ferris wheel are [Brighton, Seattle].
Cities with Ferris wheels are [Brighton, Seattle].