What is {position held} of {Mahathir Mohamad} that is {start time} is {2018-5-10} ?
In 2018-5-10, what position did Mahathir Mohamad hold?
What position did Mahathir Mohamad hold starting 2018-5-10?
SELECT ?w WHERE { ?y property:start_time ?v . resource:Mahathir_Mohamad property:position_held ?y . FILTER ( CONTAINS ( YEAR ( ?v ) , '2018' ) ) . ?y 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/Q181383> .
?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> <2018-5-10>
} 

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