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