what is the {replaced by} for {Martha Washington} has {position held} as {First Lady of the United States} ?
Who replaced Martha Washington as First Lady
Who replaced the First Lady of the United States Martha Washington?
SELECT ?x WHERE { ?x property:replaced_by ?x . ?x property:position_held resource:First_Lady_of_the_United_States . resource:Martha_Washington property:position_held ?x }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q191789> .
?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/Q7166256> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q191789 p:P39 ?s . ?s ps:P39 wd:Q7166256 . ?s pq:P1366 ?value}