What is {heritage designation} of {Empire State Building} that is {start time} is {1986-6-25} ?
When was the Empire State Building built?
Was the Empire State Building built in 1986-6-25
SELECT ?e WHERE { resource:Empire_State_Building property:heritage_designation ?d . ?d property:heritage_designation ?e . ?d property:start_time ?y . FILTER ( CONTAINS ( YEAR ( ?y ) , '1986' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9188> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P1435> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1986-6-25>
} 

SELECT ?obj WHERE { wd:Q9188 p:P1435 ?s . ?s ps:P1435 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1986')) }