Question: What movie is based on Bedazzled (the one that has Raquel Welch as a cast member)?
Choices: Training Day
Talk to Her
Blow
Vanilla Sky
A Prairie Home Companion
The Fifth Element
The Towering Inferno
Pleasantville
Rebecca
Bedazzled
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <based_on> ?e_1 . ?e_1 <pred:name> "Bedazzled" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Raquel Welch" .   }
Program:
function: Find
inputs: Raquel Welch
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Bedazzled
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: What
dependencies: 5
Answer: Bedazzled