Question: What is the connection between Charlie and the Chocolate Factory (the one whose release region is Canada) to Kazakhstan?
Choices: signatory
place of birth
maintained by
developer
film release region
office held by head of state
movement
distributor
history of topic
has quality
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Charlie and the Chocolate Factory" . ?e_1 <film_release_region> ?e_3 . ?e_3 <pred:name> "Canada" . ?e_2 <pred:name> "Kazakhstan" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Charlie and the Chocolate Factory
function: And
dependencies: 1
2
function: Find
inputs: Kazakhstan
function: QueryRelation
dependencies: 3
4
Answer: film release region