what is the {end time} for {Bob Hawke} has {spouse} as {Hazel Hawke} ?
Hazel Hawke and Bob Hawke was married for how long?
How long has Bob Hawke been married to Hazel Hawke?
SELECT ?i WHERE { ?u property:spouse resource:Hazel_Hawke . ?u property:end_time ?i . resource:Bob_Hawke property:spouse ?u }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q269372> .
?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/Q5687926> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q269372 p:P26 ?s . ?s ps:P26 wd:Q5687926 . ?s pq:P582 ?value}