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