Question: What literary work derives the feature film that has Shia LaBeouf as a cast member?
Choices:
The Maltese Falcon
The Devil Wears Prada
Starship Troopers
Holes
The Hours
A Single Man
The Sum of All Fears
Live and Let Die
I, Robot
The Painted Veil
Answer: Holes
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e <derivative_work> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "feature film" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Shia LaBeouf" .   }
Program:
function: Find
inputs: Shia LaBeouf
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: feature film
function: Relate
dependencies: 2
inputs: derivative work
backward
function: FilterConcept
dependencies: 3
inputs: written work
function: What
dependencies: 4