Question: What is the connection between John Davis (who is educated at Brown University) and historian?
Choices:
military casualty classification
feast day
headquarters location
occupation
after a work by
foundational text
influenced by
member of
kit supplier
replaces
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "Brown University" . ?e_2 <pred:name> "historian" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Brown University
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: historian
function: QueryRelation
dependencies: 3
4