what is the {replaced by} for {Henry Addington, 1st Viscount Sidmouth} has {position held} as {Secretary of State for the Home Department} ?
Which person replaced Henry Addinton as the Secretary of State for the Home Department?
Who replaced Henry Addinton, 1st Viscount Sidmouth who held the Secretary of State for the Home Department position?
SELECT ?d WHERE { ?v property:replaced_by ?d . ?v property:position_held resource:Home_Secretary . resource:Henry_Addington,_1st_Viscount_Sidmouth property:position_held ?v }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q312577> .
?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/Q2484309> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q312577 p:P39 ?s . ?s ps:P39 wd:Q2484309 . ?s pq:P1366 ?value}