What is {position held} of {Ariel Sharon} that is {end time} is {1981-8-5} ?
What position did Ariel Sharon hold on August 5th 1981?
What was the last position held by Ariel Sharon on 5th August 1981?
SELECT ?p WHERE { FILTER ( CONTAINS ( YEAR ( ?f ) , '1981' ) ) . resource:Ariel_Sharon property:position_held ?w . ?w property:end_time ?f . ?w property:position_held ?p }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q60206> .
?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> <1981-8-5>
} 

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