What is {position held} of {Robert Walpole} that is {start time} is {1721-4-4} ?
Give me the position that Robert Walpole covered, starting 1721-4-4.
What position did Robert Walpole cover starting from 1721-4-4 onward?
SELECT ?q WHERE { ?a property:start_time ?n . resource:Robert_Walpole property:position_held ?a . FILTER ( CONTAINS ( YEAR ( ?n ) , '1721' ) ) . ?a property:position_held ?q }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q104190> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1721-4-4>
} 

SELECT ?obj WHERE { wd:Q104190 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1721')) }