What is {spouse} of {Abigail Adams} and {end time}
Who was married to Abigail Adams, and how did it end?
Who was Abigail Adams married to, and how did it end?
SELECT ?i ?j WHERE { ?h property:end_time ?i . . ?h property:spouse ?j . resource:Abigail_Adams property:spouse ?h }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q206191> . ?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:Q206191 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P582 ?value1 . }