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