What is {spouse} of {Irving Thalberg} and {end time}
Who did Irving Thalberg wed and when did the marriage conclusion?
Who did Irving Thalberg marry and when did the marriage end?
SELECT ?v ?o WHERE { resource:Irving_Thalberg property:spouse ?h . ?h property:spouse ?o . ?h property:end_time ?v . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q438472> . ?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:Q438472 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?value1 . }