Question: Which is longer, On Golden Pond with Henry Fonda in the cast, or Willow?
Choices:
The Towering Inferno
Rebecca
Talk to Her
Training Day
Willow
The Fifth Element
Curse of the Golden Flower
On Golden Pond
A Prairie Home Companion
Pleasantville
Answer: Willow
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Willow" .  } UNION { ?e <pred:name> "On Golden Pond" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Henry Fonda" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Willow
function: Find
inputs: Henry Fonda
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: On Golden Pond
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater