Question: Which movie is longer, The Man in the Iron Mask (the one that has Alan Hale as a cast member) or Cape Fear (the one that was nominated for Academy Award for Best Supporting Actress)?
Choices: The Fifth Element
Rebecca
The Towering Inferno
The Man in the Iron Mask
Cape Fear
Training Day
Talk to Her
A Prairie Home Companion
Pleasantville
Curse of the Golden Flower
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Man in the Iron Mask" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Alan Hale" .   } UNION { ?e <pred:name> "Cape Fear" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actress" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Alan Hale
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Man in the Iron Mask
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actress
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Cape Fear
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Cape Fear