what is the {replaced by} for {Tutankhamon} has {position held} as {pharaoh} ?
When did Tutankhamon become pharaoh?
when was pharaoh replaced by tutankhamon?
SELECT ?p WHERE { resource:Tutankhamon property:position_held ?e . ?e property:position_held resource:Pharaoh . ?e property:replaced_by ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12154> .
?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/Q37110> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q12154 p:P39 ?s . ?s ps:P39 wd:Q37110 . ?s pq:P1366 ?value}