Question: What is the relationship between John Adams (the one that is educated at Yale University) and head teacher?
Choices: source of income
fabrication method
position held
update method
use
soundtrack album
substitute/deputy/replacement of office/officeholder
exclave of
film editor
sport
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "Yale University" . ?e_2 <pred:name> "head teacher" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Yale University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Adams
function: And
dependencies: 1
2
function: Find
inputs: head teacher
function: QueryRelation
dependencies: 3
4
Answer: position held