What is {position held} of {Ahmad ibn Ibrihim al-Ghazi} that is {start time} is {1526-0-0} ?
Ahmad ib Ibrhim al Ghazi held what position in 1526
What position did Ahmad ibn Ibrihim al-Ghazi hold beginning in 1526?
SELECT ?e WHERE { ?b property:start_time ?y . ?b property:position_held ?e . resource:Ahmad_ibn_Ibrihim_al-Ghazi property:position_held ?b . FILTER ( CONTAINS ( YEAR ( ?y ) , '1526' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q335728> .
?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> <1526-0-0>
} 

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