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