What is {educated at} of {John Roberts} that is {end time} is {1979-0-0} ?
In the end of 1979, what school did John Roberts attend?
Which school did John Roberts attend at the end of 1979?
SELECT ?e WHERE { ?d property:educated_at ?e . ?d property:end_time ?s . resource:John_Roberts property:educated_at ?d . FILTER ( CONTAINS ( YEAR ( ?s ) , '1979' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q11153> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1979-0-0>
} 

SELECT ?obj WHERE { wd:Q11153 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1979')) }