Question: What is the relationship between Jeremy Davies (the one that is a cast member of Dogville) and actor?
Choices:
occupation
copyright holder
mountain range
takes place in fictional universe
honorific suffix
partner
properties for this type
educated at
official residence
residence
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Jeremy Davies" . ?e_3 <cast_member> ?e_1 . ?e_3 <pred:name> "Dogville" . ?e_2 <pred:name> "actor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Dogville
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: Jeremy Davies
function: And
dependencies: 1
2
function: Find
inputs: actor
function: QueryRelation
dependencies: 3
4