What is {end time} and {place of marriage} of {{Marilyn Monroe} has {spouse} as {James Dougherty}}
When did Marilyn Monroe & James Dougherty separate?
When did the marriage between Marilyn Monroe and James Dougherty end?
SELECT ?q ?t WHERE { ?z property:spouse resource:James_Dougherty . ?z property:end_time ?q . resource:Marilyn_Monroe property:spouse ?z . ?z property:place_of_marriage ?t }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q4616> . ?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/Q946783>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q4616 p:P26 ?s . ?s ps:P26 wd:Q946783 . ?s pq:P582 ?value1 . ?s pq:P2842 ?value2 }