Question: How is University of Edinburgh alumnus David Brown related to St Andrews?
Choices:
work location
native language
penalty
position held
drug used for treatment
presenter
substitute/deputy/replacement of office/officeholder
production company
connects with
famous people
Program:
function: Find
inputs: University of Edinburgh
function: Relate
dependencies: 0
inputs: educated at
backward
function: Find
inputs: David Brown
function: And
dependencies: 1
2
function: Find
inputs: St Andrews
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "David Brown" . ?e_1 <educated_at> ?e_3 . ?e_3 <pred:name> "University of Edinburgh" . ?e_2 <pred:name> "St Andrews" . ?e_1 ?p ?e_2 .  }
Answer: work location