what is the {end cause} for {Paul} has {religion} as {Judaism} ?
What is the { end cause } for { Paul } as { Judaism } has { religion }?
SELECT ?p WHERE { ?h property:religion resource:Judaism . resource:Paul property:religion ?h . ?h property:end_cause ?p }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9200> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P140> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q9268> .
?statement <http://www.wikidata.org/entity/P1534> ?value. 
} 

SELECT ?value WHERE { wd:Q9200 p:P140 ?s . ?s ps:P140 wd:Q9268 . ?s pq:P1534 ?value}