Question: What is the connection between Robert Smith (whose profession is military officer) and Alton?
Choices:
place of death
film distribute region
symptom of
currency
child astronomical body
time period
language of work or name
distributor
dedicated to
parent organization
Answer: place of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Robert Smith" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "military officer" . ?e_2 <pred:name> "Alton" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: military officer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Robert Smith
function: And
dependencies: 1
2
function: Find
inputs: Alton
function: QueryRelation
dependencies: 3
4