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