Question: What is the relationship that Robert Young (born in Sunderland) has to major general?
Choices:
military rank
narrative role
manufacturer
theme music
field of this occupation
twinned administrative body
father
main food source
patron saint
destination point
Answer: military rank
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Robert Young" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Sunderland" . ?e_2 <pred:name> "major general" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Sunderland
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Robert Young
function: And
dependencies: 1
2
function: Find
inputs: major general
function: QueryRelation
dependencies: 3
4