what is the {replaced by} for {Eric Gairy} has {position held} as {Prime Minister of Grenada} ?
What year marked the end of Eric Gairy's reign as Prime Minister of Granada end?
When did Eric Gairy's position as Prime Minister of Grenada end?
SELECT ?l WHERE { ?z property:position_held resource:Prime_Minister_of_Grenada . resource:Eric_Gairy property:position_held ?z . ?z property:replaced_by ?l }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q203046> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q30100613> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q203046 p:P39 ?s . ?s ps:P39 wd:Q30100613 . ?s pq:P1366 ?value}