Question: tell me the one that is longer, Alexander the Great (which has Peter Cushing in its cast) or shattered glass
Choices:
Training Day
Alexander the Great
Pleasantville
The Fifth Element
Shattered Glass
A Prairie Home Companion
Rebecca
Talk to Her
Curse of the Golden Flower
The Towering Inferno
Program:
function: Find
inputs: Peter Cushing
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Alexander the Great
function: And
dependencies: 1
2
function: Find
inputs: Shattered Glass
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alexander the Great" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Peter Cushing" .   } UNION { ?e <pred:name> "Shattered Glass" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alexander the Great