what is the {end time} for {Canaletto} has {work location} as {Great Britain} ?
What year was the last year Canaletto worked in Great Britain?
When was the final year Canaletto worked in Great Britain?
SELECT ?e WHERE { ?r property:end_time ?e . resource:Canaletto property:work_location ?r . ?r property:work_location resource:Great_Britain }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q182664> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P937> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q23666> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q182664 p:P937 ?s . ?s ps:P937 wd:Q23666 . ?s pq:P582 ?value}