what is the {end time} for {Antonio de Padua María Severino López de Santa Anna y Pérez de Lebrón} has {position held} as {President of Mexico} ?
When was Antonio de Padua María Severino López de Santa Anna y Pérez de Lebrón relieved from his position as President of Mexico?
SELECT ?value WHERE { wd:Q189145 p:P39 ?s . ?s ps:P39 wd:Q628004 . ?s pq:P582 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q189145> .
?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> <http://wikidata.dbpedia.org/resource/Q628004> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

Give the date Antonio de Padua Maria Severino Lopex De Santa Anna y Perez de Lebron was relieved from his position as President of Mexico.