Question: Which movie is shorter, 13 Assassins (the one whose release region is New Zealand) or Batman (the one whose production company is 20th Century Fox)?
Choices:
The Towering Inferno
A Prairie Home Companion
13 Assassins
Batman
Training Day
The Fifth Element
The Hunchback of Notre Dame
Rebecca
Curse of the Golden Flower
Talk to Her
Program:
function: Find
inputs: New Zealand
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: 13 Assassins
function: And
dependencies: 1
2
function: Find
inputs: 20th Century Fox
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Batman
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "13 Assassins" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "New Zealand" .   } UNION { ?e <pred:name> "Batman" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "20th Century Fox" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Batman