Question: Name a scientist whose official residence is Cape Town and also won a gold medal at the Royal Astronomical Society ?
SPARQL query: 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>}
Answer: The scientist who won the Gold Medal of the Royal Astronomical Society and official residence is Cape Town is [John Herschel].