SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/residence> <http://dbpedia.org/resource/Kensington,_Maryland> . ?x <http://dbpedia.org/ontology/president> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/OfficeHolder>}
Under which president did some politicians live in Kensington?
SELECT DISTINCT ?g WHERE { ?r rdf:type ontology:Office_Holder . ?r property:residence resource:Kensington,_Maryland . ?r property:president ?g }
Barack Obama
The president of the office holders lived in Kensington, Maryland is [Barack Obama].
The president of the office holders, who lived in Kensington, Maryland, is [Barack Obama].