Question: How is John Wood who was educated at Northwestern University related to entrepreneur?
Choices:
has cause
commander of
occupation
tributary
heritage designation
cast member
country of citizenship
composer
head of state
permanent resident of
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Wood" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "Northwestern University" . ?e_2 <pred:name> "entrepreneur" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Northwestern University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Wood
function: And
dependencies: 1
2
function: Find
inputs: entrepreneur
function: QueryRelation
dependencies: 3
4