Question: What is the connection between Jack Warner (the one that has the occupation of teacher) to politician?
Choices: member of political party
quotes work
participant
located in time zone
librettist
doctoral student
languages spoken, written or signed
terminus
donated by
occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jack Warner" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "teacher" . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: teacher
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Jack Warner
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4
Answer: occupation