Question: What is the relationship of St. Augustine whose religion is the Catholic Church to the Catholic Church?
Choices: religion
has cause
partner
rector
dissertation submitted to
has part
software engine
relative
geographic distribution
office held by head of state
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "St. Augustine" . ?e_1 <religion> ?e_3 . ?e_3 <pred:name> "Catholic Church" . ?e_2 <pred:name> "Catholic Church" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Catholic Church
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: St. Augustine
function: And
dependencies: 1
2
function: Find
inputs: Catholic Church
function: QueryRelation
dependencies: 3
4
Answer: religion