What is {position held} of {Miguel de la Madrid} that is {start time} is {1999-1-1} ?
Starting in 1999-1-1, what position was held by Miguel de la Madrid?
What position held of Miguel de la Madrid that is start time is 1999-1-1 ?
SELECT ?z WHERE { ?d property:position_held ?z . FILTER ( CONTAINS ( YEAR ( ?n ) , '1999' ) ) . ?d property:start_time ?n . resource:Miguel_de_la_Madrid property:position_held ?d }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q296691> .
?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> <1999-1-1>
} 

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