what is the {end time} for {Michelangelo} has {work location} as {Rome} ?
When did Michelangelo finish his work in Rome?
SELECT ?value WHERE { wd:Q5592 p:P937 ?s . ?s ps:P937 wd:Q220 . ?s pq:P582 ?value}
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q5592> .
?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/Q220> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

When did Michelangelo complete his work in Rome?