Question: What is the association of John Davis (who is in the military branch called the Royal Air Force) with the Royal Air Force?
Choices: studied by
history of topic
military branch
home world
instrument
publisher
honorific suffix
theme music
symptoms
statistical leader
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <military_branch> ?e_3 . ?e_3 <pred:name> "Royal Air Force" . ?e_2 <pred:name> "Royal Air Force" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Royal Air Force
function: Relate
dependencies: 0
inputs: military branch
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: Royal Air Force
function: QueryRelation
dependencies: 3
4
Answer: military branch