SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/property/deputy> <http://dbpedia.org/resource/Andrew_Peacock> . ?uri <http://dbpedia.org/ontology/predecessor> <http://dbpedia.org/resource/Alexander_Downer> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/OfficeHolder>}
Who is the office holder whose deputy was Andrew Peacock and predecessor was Alexander Downer?
SELECT DISTINCT ?k WHERE { ?k property:deputy resource:Andrew_Peacock . ?k property:predecessor resource:Alexander_Downer . ?k rdf:type ontology:Office_Holder }
John Howard
The office holder with Andrew Peacock as deputy and Alexander Downer as predecessor is [John Howard].
An office holder with deputy Andrew Peacock and predecessor Alexander Downer [John Howard].
[John Howard] is the office holder whose deputy is him and predecessor is Alexander Downer.
[John Howard] is the office holder, of which he is the deputy, and his predecessor Alexander Dovner.