what is the {end time} for {Giuseppe Verdi} has {spouse} as {Margherita Barezzi} ?
At which point in time did Giuseppe Verdi divorce Margherita Barezzi?
When did Giuseppe Verdi divorce Margherita Barezzi?
SELECT ?g WHERE { ?p property:spouse resource:Margherita_Barezzi . resource:Giuseppe_Verdi property:spouse ?p . ?p property:end_time ?g }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q7317> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P26> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q3290593> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q7317 p:P26 ?s . ?s ps:P26 wd:Q3290593 . ?s pq:P582 ?value}