Question: Which movie is shorter, Octopussy or Stardust (the one whose genre is musical film)?
Choices:
The Towering Inferno
Pleasantville
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
The Fifth Element
Stardust
Octopussy
A Prairie Home Companion
Training Day
Answer: Stardust
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Octopussy" .  } UNION { ?e <pred:name> "Stardust" . ?e <genre> ?e_1 . ?e_1 <pred:name> "musical film" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Octopussy
function: Find
inputs: musical film
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Stardust
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less