Question: Name a scientist whose official residence is Cape Town and also won a gold medal at the Royal Astronomical Society ?
SPARQL query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri WHERE {?uri prop:prizes <http://dbpedia.org/resource/Gold_Medal_of_the_Royal_Astronomical_Society> . ?uri prop:residence <http://dbpedia.org/resource/Cape_Town>  . ?uri rdf:type onto:Scientist}