How long was Shirley Temple the United States Ambassador to Ghana?
SELECT ?value WHERE { wd:/Shirley Temple/ p:/position held/ ?s . ?s ps:/position held/ wd:/United States Ambassador to Ghana/ . ?s pq:/end time/ ?value}