what is the {end time} for {Edward Gorey} has {educated at} as {School of the Art Institute of Chicago} ?
Mention the school over time at school of art based out of Chicago
what time does school end at the school of art in Chicago?
SELECT ?y WHERE { ?j property:educated_at resource:School_of_the_Art_Institute_of_Chicago . ?j property:end_time ?y . resource:Edward_Gorey property:educated_at ?j }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q982401> .
?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> <http://wikidata.dbpedia.org/resource/Q7432601> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q982401 p:P69 ?s . ?s ps:P69 wd:Q7432601 . ?s pq:P582 ?value}