Question: Which has a greater duration, Flash Gordon (which has Max von Sydow as a cast member) or Murder on the Orient Express (which has Johnny Depp as a cast member)?
Choices:
The Hunchback of Notre Dame
The Fifth Element
Flash Gordon
Rebecca
Curse of the Golden Flower
A Prairie Home Companion
Talk to Her
Pleasantville
Murder on the Orient Express
The Towering Inferno
Answer: Murder on the Orient Express
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Flash Gordon" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Max von Sydow" .   } UNION { ?e <pred:name> "Murder on the Orient Express" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Johnny Depp" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Max von Sydow
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Flash Gordon
function: And
dependencies: 1
2
function: Find
inputs: Johnny Depp
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Murder on the Orient Express
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater