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