what is the {end time} for {Charlize Theron} has {partner} as {Stuart Townsend} ?
When did Stuart Townsend and Charlize Theron split?
When did Charlize Theron's relationship with Stuart Townsend end?
SELECT ?a WHERE { resource:Charlize_Theron property:unmarried_partner ?n . ?n property:end_time ?a . ?n property:unmarried_partner resource:Stuart_Townsend }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80046> .
?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/Q363525> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q80046 p:P451 ?s . ?s ps:P451 wd:Q363525 . ?s pq:P582 ?value}