What is {end time} and {start time} of {{Jimmy Wales} has {spouse} as {Pamela Green}}
How long were Jimmy Grains and Pamela Green married?
How long were Jimmy Wales and Pamela Green married?
SELECT ?q ?r WHERE { resource:Jimmy_Wales property:spouse ?t . ?t property:end_time ?q . ?t property:spouse resource:Pamela_Green . ?t property:start_time ?r }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q181> . ?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/Q21476682>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q181 p:P26 ?s . ?s ps:P26 wd:Q21476682 . ?s pq:P582 ?value1 . ?s pq:P580 ?value2 }