What is {educated at} of {Joe Biden} that is {object has role} is {religious school} ?
Joe Biden attended which religious school?
Joe Biden was educated at which religious school?
SELECT ?x WHERE { resource:Joe_Biden property:educated_at ?v . ?v property:object_has_role resource:religious_school . ?v property:educated_at ?x }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q6279> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P69> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P3831> <http://wikidata.dbpedia.org/resource/Q1971849>
} 

SELECT ?obj WHERE { wd:Q6279 p:P69 ?s . ?s ps:P69 ?obj . ?s pq:P3831 wd:Q1971849 }