Question: How is the literature-based film Hope Springs linked to Heather Graham?
Choices:
maintained by
official symbol
studied by
cast member
statistical leader
student of
registered with
captain
ancestral home
does not have part
Answer: cast member
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hope Springs" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "film based on literature" . ?e_2 <pred:name> "Heather Graham" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Hope Springs
function: And
dependencies: 1
2
function: Find
inputs: Heather Graham
function: QueryRelation
dependencies: 3
4