Question: What is the relationship between James Bond (the one that is in the military branch Royal Navy) and The Living Daylights?
Choices:
religious order
allegiance
present in work
notable work
connects with
spouse
location of discovery
developer
award disciplines or subjects
honorific prefix
Answer: present in work
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "James Bond" . ?e_1 <military_branch> ?e_3 . ?e_3 <pred:name> "Royal Navy" . ?e_2 <pred:name> "The Living Daylights" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Royal Navy
function: Relate
dependencies: 0
inputs: military branch
backward
function: Find
inputs: James Bond
function: And
dependencies: 1
2
function: Find
inputs: The Living Daylights
function: QueryRelation
dependencies: 3
4