Question: Which film that has Daniel Day-Lewis as a cast member has the longest runtime?
Choices:
In the Name of the Father
Sunday, Bloody Sunday
Gandhi
The Crucible
A Room with a View
My Left Foot
Lincoln
The Unbearable Lightness of Being
Nine
Gangs of New York
Program:
function: Find
inputs: Daniel Day-Lewis
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: film
function: SelectAmong
dependencies: 2
inputs: duration
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Daniel Day-Lewis" .  ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Gandhi