What is {position held} of {Andrés Manuel López Obrador} that is {end time} is {2017-0-0} ?
Andres Manuel Lopez Obrador held what  position in 0-0-2017?
SELECT ?obj WHERE { wd:Q318508 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2017')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q318508> .
?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> <2017-0-0>
} 

In 0-0-2017, Andres Manuel Lopez Obrador held what position?