Question: Which movie is longer, King Kong (the one that has Corbin Bernsen as a cast member) or My-HiME?
Choices:
Pleasantville
Rebecca
The Towering Inferno
The Hunchback of Notre Dame
The Fifth Element
Training Day
Talk to Her
My-HiME
King Kong
A Prairie Home Companion
Answer: King Kong
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "King Kong" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Corbin Bernsen" .   } UNION { ?e <pred:name> "My-HiME" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Corbin Bernsen
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: King Kong
function: And
dependencies: 1
2
function: Find
inputs: My-HiME
function: SelectBetween
dependencies: 3
4
inputs: duration
greater