Question: Which movie is longer, Twilight (the one whose release region is Russia) or Mulholland Drive?
Choices:
The Towering Inferno
Mulholland Drive
Talk to Her
The Hunchback of Notre Dame
Pleasantville
The Fifth Element
Curse of the Golden Flower
Twilight
Rebecca
A Prairie Home Companion
Program:
function: Find
inputs: Russia
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Twilight
function: And
dependencies: 1
2
function: Find
inputs: Mulholland Drive
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twilight" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Russia" .   } UNION { ?e <pred:name> "Mulholland Drive" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mulholland Drive