What is {position held} of {Athelstan} that is {start time} is {927-0-0} ?
In 927, what position did Athelstan hold?
What position did Athelstan hold in 927?
SELECT ?j WHERE { ?j property:position_held ?j . resource:Athelstan property:position_held ?j . FILTER ( CONTAINS ( ?q , '927-0-0' ) ) . ?j property:start_time ?q }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q170017> .
?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> <927-0-0>
} 

SELECT ?obj WHERE { wd:Q170017 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P580 ?x filter(contains(?x , '927-0-0')) }