Question: How is John Davis who attended University College related to the London School of Economics?
Choices:
terminus
office held by head of government
place of burial
diaspora
geographic distribution
highest judicial authority
educated at
noble title
affiliation
office held by head of state
Answer: educated at
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "University College" . ?e_2 <pred:name> "London School of Economics" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: University College
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: London School of Economics
function: QueryRelation
dependencies: 3
4