What is {spouse} of {Drew Barrymore} and {end time}
When did companion of Drew Barrymore and conclusion time?
When did spouse of Drew Barrymore and end time?
SELECT ?c ?n WHERE { resource:Drew_Barrymore property:spouse ?o . ?o property:spouse ?n . ?o property:end_time ?c . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q676094> . ?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> ?obj . ?statement <http://www.wikidata.org/entity/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q676094 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?value1 . }