What is {spouse} of {Alexander Hamilton} and {end cause}
who did alexander hamilton end a relationship with and for what reason?
Who is Alexander Hamilton's wife and why did the relationship end?
SELECT ?l ?j WHERE { ?y property:spouse ?j . resource:Alexander_Hamilton property:spouse ?y . ?y property:end_cause ?l . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q178903> . ?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:Q178903 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P1534 ?value1 . }