Question: What is the connection between University of Dundee to Brian Cox (the one that has the occupation of actor)?
Choices:
material used
business division
residence
rector
distributor
language used
practiced by
killed by
genre
destination point
Answer: rector
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "University of Dundee" . ?e_2 <pred:name> "Brian Cox" . ?e_2 <occupation> ?e_3 . ?e_3 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: University of Dundee
function: Find
inputs: actor
function: Relate
dependencies: 1
inputs: occupation
backward
function: Find
inputs: Brian Cox
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4