Question: What is the relation of Amy Grant to teacher?
Choices:
honorific prefix
symptoms
archives at
maintained by
set in period
appears in the form of
head coach
notable people with this condition
software engine
occupation
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Amy Grant" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "teacher" . ?e_2 <pred:name> "teacher" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: teacher
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Amy Grant
function: And
dependencies: 1
2
function: Find
inputs: teacher
function: QueryRelation
dependencies: 3
4