Question: What is the association of John Wells (that is in the Royal Navy military branch) with Corpus Christi College (whose headquarters is located in Oxford)?
Choices:
has edition
mouth of the watercourse
costume designer
educated at
medical condition
field of this occupation
registered with
eye color
located in or next to body of water
draft pick from school
Answer: educated at
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Wells" . ?e_1 <military_branch> ?e_3 . ?e_3 <pred:name> "Royal Navy" . ?e_2 <pred:name> "Corpus Christi College" . ?e_2 <headquarters_location> ?e_4 . ?e_4 <pred:name> "Oxford" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Royal Navy
function: Relate
dependencies: 0
inputs: military branch
backward
function: Find
inputs: John Wells
function: And
dependencies: 1
2
function: Find
inputs: Oxford
function: Relate
dependencies: 4
inputs: headquarters location
backward
function: Find
inputs: Corpus Christi College
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7