Question: What is the relationship between Colin Powell (the one that has the occupation of diplomat) and diplomat?
Choices:
official symbol
occupation
update method
head of state
indigenous to
game mode
next higher rank
academic degree
student of
registered with
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Colin Powell" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "diplomat" . ?e_2 <pred:name> "diplomat" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: diplomat
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Colin Powell
function: And
dependencies: 1
2
function: Find
inputs: diplomat
function: QueryRelation
dependencies: 3
4