Question: Which was longer, Young Adam or Shangai, produced by Walter Wanger?
Choices:
Training Day
Curse of the Golden Flower
The Fifth Element
Pleasantville
A Prairie Home Companion
The Towering Inferno
Shanghai
Young Adam
Rebecca
The Hunchback of Notre Dame
Answer: Young Adam
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Young Adam" .  } UNION { ?e <pred:name> "Shanghai" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Walter Wanger" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Young Adam
function: Find
inputs: Walter Wanger
function: Relate
dependencies: 1
inputs: producer
backward
function: Find
inputs: Shanghai
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater