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