Question: What film is a derivative work of Cape Fear (the one that has Telly Savalas as a cast member)?
Choices: Training Day
Jane Eyre
The Towering Inferno
Cape Fear
Men in Black 3
An Early Frost
Pleasantville
Talk to Her
The Fifth Element
Rebecca
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e_1 <derivative_work> ?e . ?e_1 <pred:name> "Cape Fear" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Telly Savalas" .   }
Program:
function: Find
inputs: Telly Savalas
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Cape Fear
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
forward
function: FilterConcept
dependencies: 4
inputs: film
function: What
dependencies: 5
Answer: Cape Fear