What is {heritage designation} of {Quito} that is {start time} is {1978-0-0} ?
In 1978, what is Quito's destination?
What is the destination of Quito in 1978?
SELECT ?h WHERE { resource:Quito property:heritage_designation ?c . ?c property:heritage_designation ?h . FILTER ( CONTAINS ( YEAR ( ?j ) , '1978' ) ) . ?c property:start_time ?j }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2900> .
?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> <1978-0-0>
} 

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