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