Question: What is John Logan's (military rank major) association  to judge?
Choices:
student of
hair color
professional or sports partner
director
had as last meal
edition or translation of
occupation
chairperson
conflict
lowest point
Program:
function: Find
inputs: major
function: Relate
dependencies: 0
inputs: military rank
backward
function: Find
inputs: John Logan
function: And
dependencies: 1
2
function: Find
inputs: judge
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Logan" . ?e_1 <military_rank> ?e_3 . ?e_3 <pred:name> "major" . ?e_2 <pred:name> "judge" . ?e_1 ?p ?e_2 .  }
Answer: occupation