What is {position held} of {Corazon Aquino} that is {end time} is {1992-6-30} ?
Name the position that was held by Corazon Aquino before 1992, June 6?
What position did Corazon Aquino hold before June 6, 1992?
SELECT ?o WHERE { ?y property:position_held ?o . ?y property:end_time ?s . resource:Corazon_Aquino property:position_held ?y . FILTER ( CONTAINS ( YEAR ( ?s ) , '1992' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1480> .
?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> <1992-6-30>
} 

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