What is {start time} and {end time} of {{Drew Barrymore} has {spouse} as {Tom Green}}
Drew Barrymore and Tom Green have been married for how long?
How long were Drew Barrymore and Tom Green married?
SELECT ?f ?a WHERE { ?b property:start_time ?f . resource:Drew_Barrymore property:spouse ?b . ?b property:end_time ?a . ?b property:spouse resource:Tom_Green }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q676094> . ?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/Q315826>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q676094 p:P26 ?s . ?s ps:P26 wd:Q315826 . ?s pq:P580 ?value1 . ?s pq:P582 ?value2 }