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