What is {position held} of {Edmund I of England} that is {start time} is {939-0-0} ?
In 1939 Edmund I of England held what position?
What position did Edmund I of England hold beginning in 939?
SELECT ?o WHERE { resource:Edmund_I_of_England property:position_held ?o . ?o property:start_time ?n . ?o property:position_held ?o . FILTER ( CONTAINS ( ?n , '939-0-0' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q190166> .
?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> <939-0-0>
} 

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