SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/property/prizes> <http://dbpedia.org/resource/Gold_Medal_of_the_Royal_Astronomical_Society> . ?uri <http://dbpedia.org/property/residence> <http://dbpedia.org/resource/Cape_Town> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Scientist>}
Name a scientist whose official residence is Cape Town and also won a gold medal at the Royal Astronomical Society ?
SELECT DISTINCT ?w WHERE { ?w property:residence resource:Cape_Town . ?w property:prizes resource:Gold_Medal_of_the_Royal_Astronomical_Society . ?w rdf:type ontology:Scientist }
John Herschel
The scientist who won the Gold Medal of the Royal Astronomical Society and official residence is Cape Town is [John Herschel].
The scientist who received the Royal Society Gold Medal and an official residence in Cape Town is [John Hirst].
[John Herschel] is the scientist whose prizes is others and official residence is the city.
[John Hirst] is a scientist whose awards are given to others and whose official residence is the city.