SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/predecessor> <http://dbpedia.org/resource/William_Ofori_Atta> . ?x <http://dbpedia.org/property/allegiance> ?uri . }
What country did the successor of William Ofori Atta swear his oath to?
SELECT DISTINCT ?g WHERE { ?n property:allegiance ?g . . ?n property:predecessor resource:William_Ofori_Atta }
Ghana
[Ghana] is the country where the person with predecessor William Ofori Atta swear his allegiance.
[Ghana] is a country where a man with a predecessor, William Ofori Atta, is sweeping away allusions.
[Ghana] is the allegiance of the office holder whose predecessor is him .
[Ghana] is the loyalty of the person whose predecessor he is.
[Ghana] is the allegiance of the office holder whose predecessor is the person .
[Ghana] is the loyalty of an office holder whose predecessor is a human.