Question: Which movie is shorter, The Messenger (the one that is distributed at United Kingdom) or Enemy of the State?
Choices:
The Messenger
Talk to Her
The Towering Inferno
Training Day
Pleasantville
The Fifth Element
Curse of the Golden Flower
Rebecca
Enemy of the State
The Hunchback of Notre Dame
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: film distribute region
backward
function: Find
inputs: The Messenger
function: And
dependencies: 1
2
function: Find
inputs: Enemy of the State
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Messenger" . ?e <film_distribute_region> ?e_1 . ?e_1 <pred:name> "United Kingdom" .   } UNION { ?e <pred:name> "Enemy of the State" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Messenger