what is the {end time} for {Mary of Teck} has {spouse} as {George V} ?
Mary of Teck & George V marriage end?
When did the marriage of Mary of Teck and George V end?
SELECT ?z WHERE { ?e property:end_time ?z . resource:Mary_of_Teck property:spouse ?e . ?e property:spouse resource:George_V }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q76927> .
?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/Q269412> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q76927 p:P26 ?s . ?s ps:P26 wd:Q269412 . ?s pq:P582 ?value}