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