What is {end time} and {start time} of {{Charles Boyer} has {spouse} as {Pat Paterson}}
Charles Boyer and Pat Paterson were married for how long?
How long were Charles Boyer and Pat Paterson married?
SELECT ?r ?p WHERE { ?m property:start_time ?p . resource:Charles_Boyer property:spouse ?m . ?m property:spouse resource:Pat_Paterson . ?m property:end_time ?r }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q105987> . ?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/Q3368580>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q105987 p:P26 ?s . ?s ps:P26 wd:Q3368580 . ?s pq:P582 ?value1 . ?s pq:P580 ?value2 }