Question: Which movie is shorter, Final Destination 5 or The Perks of Being a Wallflower (the one whose release region is Chile)?
Choices:
Talk to Her
Training Day
A Prairie Home Companion
The Hunchback of Notre Dame
Curse of the Golden Flower
The Fifth Element
Pleasantville
The Perks of Being a Wallflower
The Towering Inferno
Final Destination 5
Program:
function: Find
inputs: Final Destination 5
function: Find
inputs: Chile
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: The Perks of Being a Wallflower
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Final Destination 5" .  } UNION { ?e <pred:name> "The Perks of Being a Wallflower" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Chile" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Final Destination 5