What is {position held} of {Fernando Álvarez de Toledo, 3rd Duke of Alba} that is {start time} is {1581-1-1} ?
Which position did Fernando Alvarez de Toledo hold in 1581?.
What was the position of Fernando Álvarez de Toledo in 1581?
SELECT ?i WHERE { resource:Fernando_Álvarez_de_Toledo,_3rd_Duke_of_Alba property:position_held ?w . ?w property:position_held ?i . FILTER ( CONTAINS ( YEAR ( ?y ) , '1581' ) ) . ?w property:start_time ?y }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80847> .
?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> <1581-1-1>
} 

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