Question: What work has the person that is the director of Dreamgirls as a cast member?
Choices: Entourage
Spartacus
Click
Scary Movie 4
Hamlet
Mao's Last Dancer
Hannah and Her Sisters
Kinsey
Great Expectations
Willow
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <cast_member> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <director> ?e_1 . ?e_2 <pred:name> "Dreamgirls" .   }
Program:
function: Find
inputs: Dreamgirls
function: Relate
dependencies: 0
inputs: director
forward
function: FilterConcept
dependencies: 1
inputs: human
function: Relate
dependencies: 2
inputs: cast member
backward
function: FilterConcept
dependencies: 3
inputs: visual artwork
function: What
dependencies: 4
Answer: Kinsey