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