what is the {end time} for {Kate Hudson} has {spouse} as {Chris Robinson} ?
Kate Hudson and Chris Robinson ended their relationship in what year?
In what year did Kate Hudson end her relationship with Chris Robinson?
SELECT ?d WHERE { resource:Kate_Hudson property:spouse ?x . ?x property:end_time ?d . ?x property:spouse resource:Chris_Robinson }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q169946> .
?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/Q1077723> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q169946 p:P26 ?s . ?s ps:P26 wd:Q1077723 . ?s pq:P582 ?value}