Question: What is the relation from John Wells to politician?
Choices:
residence
killed by
connects with
occupation
field of work
military casualty classification
continent
broadcast by
located in time zone
honorific prefix
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Wells" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "Union College" . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Union College
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Wells
function: And
dependencies: 1
2
function: Find
inputs: politician
function: QueryRelation
dependencies: 3
4