Question: Which movie is longer, Ice Age: Continental Drift or A Bug's Life (the one whose composer is Randy Newman)?
Choices:
WALL·E
The Rescuers
Aladdin
Lilo & Stitch
Winnie the Pooh
Renaissance
Beauty and the Beast
Ice Age: Continental Drift
Peter Pan
A Bug's Life
Answer: A Bug's Life
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Ice Age: Continental Drift" .  } UNION { ?e <pred:name> "A Bug's Life" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Randy Newman" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Ice Age: Continental Drift
function: Find
inputs: Randy Newman
function: Relate
dependencies: 1
inputs: composer
backward
function: Find
inputs: A Bug's Life
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater