What is {position held} of {John Paul II} that is {start time} is {1978-10-16} ?
On 10.10.1978 what position did John Paul II hold?
What position did John Paul II hold starting on October 10, 1978?
SELECT ?h WHERE { ?o property:position_held ?h . resource:John_Paul_II property:position_held ?o . FILTER ( CONTAINS ( YEAR ( ?u ) , '1978' ) ) . ?o property:start_time ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q989> .
?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> <1978-10-16>
} 

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