Question: What's the relationship between Katie Holmes and The Gift (directed by Sam Raimi)?
Choices:
instrumentation
item operated
has immediate cause
official residence
geographic distribution
enclave within
practiced by
relative
cast member
is a list of
Program:
function: Find
inputs: Sam Raimi
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: The Gift
function: And
dependencies: 1
2
function: Find
inputs: Katie Holmes
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Gift" . ?e_1 <director> ?e_3 . ?e_3 <pred:name> "Sam Raimi" . ?e_2 <pred:name> "Katie Holmes" . ?e_1 ?p ?e_2 .  }
Answer: cast member