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