what is the {end time} for {William Shatner} has {spouse} as {Nerine Kidd} ?
Nerine Kidd and William Shatner got married on what date?
When did William Shatner marry Nerine Kidd?
SELECT ?h WHERE { resource:William_Shatner property:spouse ?b . ?b property:spouse resource:Nerine_Kidd . ?b property:end_time ?h }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16297> .
?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/Q1529685> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q16297 p:P26 ?s . ?s ps:P26 wd:Q1529685 . ?s pq:P582 ?value}