Question: Which movie is shorter, Larry Crowne or The Thin Red Line (the one that has Jack Warden as a cast member)?
Choices:
The Thin Red Line
The Towering Inferno
Curse of the Golden Flower
Pleasantville
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
Larry Crowne
The Fifth Element
Rebecca
Program:
function: Find
inputs: Larry Crowne
function: Find
inputs: Jack Warden
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Thin Red Line
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Larry Crowne" .  } UNION { ?e <pred:name> "The Thin Red Line" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Jack Warden" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Thin Red Line