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