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