Question: Tell me the one with a smaller duration, The Invasion or The Cardinal (which has a release region of West Germany).
Choices:
Talk to Her
A Prairie Home Companion
The Fifth Element
Curse of the Golden Flower
The Invasion
Training Day
The Hunchback of Notre Dame
The Towering Inferno
Rebecca
The Cardinal
Program:
function: Find
inputs: The Invasion
function: Find
inputs: West Germany
function: Relate
dependencies: 1
inputs: film release region
backward
function: Find
inputs: The Cardinal
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Invasion" .  } UNION { ?e <pred:name> "The Cardinal" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "West Germany" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Invasion