Question: How is accountant John Davis related to the United Kingdom?
Choices:
stated in
has part
educated at
film release region
military branch
edition or translation of
organisation directed from the office or person
has immediate cause
sibling
country of citizenship
Answer: country of citizenship
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <occupation> ?e_3 . ?e_3 <pred:name> "accountant" . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: accountant
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: John Davis
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4