What is {position held} of {Harold Harefoot} that is {start time} is {1037-0-0} ?
Which is {position held} of {Harold Harefoot} whose {start time} is {1037-0-0} ?
SELECT ?obj WHERE { wd:Q188627 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1037')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q188627> .
?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> <1037-0-0>
} 

Which is {position held} of {Harold Harefoot} whose {begin time} is {1037-0-0} ?