What is {position held} of {Ögedei Khan} that is {end time} is {1241-0-0} ?
What of Ogedei Khan's positions came to an end in 1241?
Which position of Ogedei Khan was came to end in the year 1241?
SELECT ?n WHERE { FILTER ( CONTAINS ( YEAR ( ?e ) , '1241' ) ) . ?w property:position_held ?n . ?w property:end_time ?e . resource:Ögedei_Khan property:position_held ?w }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7519> .
?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/P582> <1241-0-0>
} 

SELECT ?obj WHERE { wd:Q7519 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1241')) }