What is {position held} of {Henry IV of England} that is {start time} is {1399-9-30} ?
In the year 1399, what was the position held by Henry IV of England?
What was the position held by Henry IV of England in the year 1399?
SELECT ?t WHERE { FILTER ( CONTAINS ( YEAR ( ?m ) , '1399' ) ) . resource:Henry_IV_of_England property:position_held ?f . ?f property:position_held ?t . ?f property:start_time ?m }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q161866> .
?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> <1399-9-30>
} 

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