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