What is {position held} of {Juan Ponce de León} that is {end time} is {1511-0-0} ?
Juan Ponce de Leon held what role until 1511?
What position did Juan Ponce de León hold until 1511?
SELECT ?n WHERE { FILTER ( CONTAINS ( YEAR ( ?p ) , '1511' ) ) . resource:Juan_Ponce_de_León property:position_held ?g . ?g property:end_time ?p . ?g property:position_held ?n }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q185974> .
?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> <1511-0-0>
} 

SELECT ?obj WHERE { wd:Q185974 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1511')) }