How long was Shirley Temple the United States Ambassador to Ghana?
SELECT ?value WHERE { wd:Q182580 p:P39 ?s . ?s ps:P39 wd:Q7889302 . ?s pq:P582 ?value}
shirley temple: Q182580 united states ambassador to ghana: Q7889302