Question: What is the connection between John Davis (the one that belongs to the allegiance of United Kingdom) to Queens' College?
Choices:
next higher rank
record label
officeholder
contributor(s) to the creative work
mountain range
work location
educated at
applies to jurisdiction
substitute/deputy/replacement of office/officeholder
founded by
Answer: educated at
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <allegiance> ?e_3 . ?e_3 <pred:name> "United Kingdom" . ?e_2 <pred:name> "Queens' College" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: allegiance
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: Queens' College
function: QueryRelation
dependencies: 3
4