What is {position held} of {Ayub Khan} that is {end time} is {1958-10-26} ?
What position of Ayub Khan ended on October 26, 1958?
SELECT ?obj WHERE { wd:Q190071 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1958')) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q190071> .
?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> <1958-10-26>
} 

On October 26 1958, which position of Ayub Khan came to an end?