What is {end time} and {start time} of {{John Steinbeck} has {spouse} as {Elaine Anderson Steinbeck}}
When did John Steinbeck get married to Elaine Anderson Steinberg, and when did it end?
When did John Steinbeck get married to Elaine Anderson Steinberg, and when did it end?
SELECT ?x ?i WHERE { ?h property:end_time ?x . resource:John_Steinbeck property:spouse ?h . ?h property:spouse resource:Elaine_Anderson_Steinbeck . ?h property:start_time ?i }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q39212> . ?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/Q5353161>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q39212 p:P26 ?s . ?s ps:P26 wd:Q5353161 . ?s pq:P582 ?value1 . ?s pq:P580 ?value2 }