What is {spouse} of {Anna Karina} and {end time}
To whom did Anna Karina got hitched and when did it ended?
To whom did Anna Karina  got married and when did it ended?
SELECT ?m ?u WHERE { resource:Anna_Karina property:spouse ?g . ?g property:spouse ?u . ?g property:end_time ?m . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q232113> . ?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:Q232113 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?value1 . }