what is the {end time} for {George Santayana} has {residence} as {Ávila} ?
What year did George Santayana move from Ávila?
When did George Santayana move from Ávila?
SELECT ?c WHERE { resource:George_Santayana property:residence ?w . ?w property:end_time ?c . ?w property:residence resource:Ávila }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q237833> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q15688> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q237833 p:P551 ?s . ?s ps:P551 wd:Q15688 . ?s pq:P582 ?value}