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