Question: How is the Gordon Brown who attended University of Strathclyde linked to Glasgow?
Choices:
candidate
award received
place of birth
chief executive officer
official language
location
has parts of the class
has cause
noble title
parent astronomical body
Answer: place of birth
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Gordon Brown" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "University of Strathclyde" . ?e_2 <pred:name> "Glasgow" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: University of Strathclyde
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: Gordon Brown
function: And
dependencies: 1
2
function: Find
inputs: Glasgow
function: QueryRelation
dependencies: 3
4