Question: How is John Spencer (whose religion Catholic Church) related to United States Army?
Choices:
terminus
candidate
film editor
dialect of
fictional universe described in
genre
opposite of
organisation directed from the office or person
history of topic
military branch
Answer: military branch
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Spencer" . ?e_1 <religion> ?e_3 . ?e_3 <pred:name> "Catholic Church" . ?e_2 <pred:name> "United States Army" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Catholic Church
function: Relate
dependencies: 0
inputs: religion
backward
function: Find
inputs: John Spencer
function: And
dependencies: 1
2
function: Find
inputs: United States Army
function: QueryRelation
dependencies: 3
4