what is the {end time} for {Charlemagne} has {spouse} as {Desiderata of the Lombards} ?
Which year was the last year of marriage between Charlemagne and Desiderata of the Lombards ?
What was the last year that Charlemagne and Desiderata of the Lombards were married?
SELECT ?e WHERE { ?q property:end_time ?e . ?q property:spouse resource:Desiderata_of_the_Lombards . resource:Charlemagne property:spouse ?q }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3044> .
?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/Q263474> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q3044 p:P26 ?s . ?s ps:P26 wd:Q263474 . ?s pq:P582 ?value}