what is the {end time} for {Prince Harry, Duke of Sussex} has {partner} as {Chelsy Davy} ?
On what date did Prince Harry, who is the Duke of Sussex, have a date with Chelsy Davy?
When did Prince Harry, Duke of Sussex, date Chelsy Davy?
SELECT ?a WHERE { resource:Prince_Harry,_Duke_of_Sussex property:unmarried_partner ?h . ?h property:end_time ?a . ?h property:unmarried_partner resource:Chelsy_Davy }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q152316> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P451> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q529485> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q152316 p:P451 ?s . ?s ps:P451 wd:Q529485 . ?s pq:P582 ?value}