What is {position held} of {Sweyn I of Denmark} that is {start time} is {1013-0-0} ?
Sweyn I of Denmark, held what position in the year 1013?
What position did Sweyn I of Denmark hold in 1013?
SELECT ?q WHERE { ?d property:start_time ?a . resource:Sweyn_I_of_Denmark property:position_held ?d . FILTER ( CONTAINS ( YEAR ( ?a ) , '1013' ) ) . ?d 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/Q181896> .
?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> <1013-0-0>
} 

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