Question: How long was Shirley Temple the United States Ambassador to Ghana?
Paraphrase: How long was Shirley Sanctuary the Joined together States Minister to Ghana?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q182580 p:P39 ?s . ?s ps:P39 wd:Q7889302 . ?s pq:P582 ?value}