Question: Which movie is shorter, The Maltese Falcon (the one that is the movement Pre-Code Hollywood) or The Man in the Iron Mask (the one that has Ralph Richardson as a cast member)?
Choices: Rebecca
The Towering Inferno
Training Day
The Fifth Element
The Man in the Iron Mask
Pleasantville
The Hunchback of Notre Dame
A Prairie Home Companion
The Maltese Falcon
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Maltese Falcon" . ?e <movement> ?e_1 . ?e_1 <pred:name> "Pre-Code Hollywood" .   } UNION { ?e <pred:name> "The Man in the Iron Mask" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Ralph Richardson" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Pre-Code Hollywood
function: Relate
dependencies: 0
inputs: movement
backward
function: Find
inputs: The Maltese Falcon
function: And
dependencies: 1
2
function: Find
inputs: Ralph Richardson
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Man in the Iron Mask
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
Answer: The Maltese Falcon