Question: What is the relationship between John Locke who has the occupation of writer to Trinity College which is a part of University of Cambridge?
Choices:
father
instrument
manner of death
next lower rank
exported to
producer
educated at
published in
captain
this taxon is source of
Program:
function: Find
inputs: writer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Locke
function: And
dependencies: 1
2
function: Find
inputs: University of Cambridge
function: Relate
dependencies: 4
inputs: part of
backward
function: Find
inputs: Trinity College
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Locke" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "writer" . ?e_2 <pred:name> "Trinity College" . ?e_2 <part_of> ?e_4 . ?e_4 <pred:name> "University of Cambridge" . ?e_1 ?p ?e_2 .  }
Answer: educated at