What is {position held} of {Hammer DeRoburt} that is {end time} is {1986-9-17} ?
on September 17, 1986 for which position did Hammer DeRoburt left?
What position did Hammer DeRoburt leave on September 17, 1986?
SELECT ?q WHERE { FILTER ( CONTAINS ( YEAR ( ?y ) , '1986' ) ) . ?v property:end_time ?y . resource:Hammer_DeRoburt property:position_held ?v . ?v 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/Q336231> .
?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/P582> <1986-9-17>
} 

SELECT ?obj WHERE { wd:Q336231 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1986')) }