What is {spouse} of {Anna Jagiellon} and {end cause}
Who is Anna Jagiellon married to and why did she get divorced?
Who is Anna Jagiellon married to and why did she get divorced?
SELECT ?p ?b WHERE { ?f property:spouse ?b . resource:Anna_Jagiellon property:spouse ?f . ?f property:end_cause ?p . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q233989> . ?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:Q233989 p:P26 ?s . ?s ps:P26 ?obj . ?s pq:P1534 ?value1 . }