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