Question: What is the connection between John Williams (the one that lives in Cardiff) to United Kingdom?
Choices: movement
licensed to broadcast to
located in the administrative territorial entity
country of citizenship
next higher rank
presenter
film editor
taxon rank
officeholder
cause of death
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Williams" . ?e_1 <residence> ?e_3 . ?e_3 <pred:name> "Cardiff" . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Cardiff
function: Relate
dependencies: 0
inputs: residence
backward
function: Find
inputs: John Williams
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4
Answer: country of citizenship