Question: What country did the successor of William Ofori Atta swear his oath to?
SPARQL query: SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/predecessor> <http://dbpedia.org/resource/William_Ofori_Atta> . ?x <http://dbpedia.org/property/allegiance> ?uri  . }
Answer: [Ghana] is the country where the person with predecessor William Ofori Atta swear his allegiance.