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