What is {position held} of {Raúl Alfonsín Gato} that is {end time} is {2002-7-3} ?
Raul Alfonsin Gato held what position until July3, 2002?
What position did Raúl Alfonsín Gato hold until July 3, 2002?
SELECT ?e WHERE { FILTER ( CONTAINS ( YEAR ( ?q ) , '2002' ) ) . ?b property:position_held ?e . resource:Raúl_Alfonsín property:position_held ?b . ?b property:end_time ?q }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q193062> .
?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> <2002-7-3>
} 

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