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