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