Question: Does the shorter run-time belong to Infernal Affairs, released in Japan, or The Siege, featuring Annette Bening as a cast member?
Choices:
A Prairie Home Companion
Talk to Her
The Towering Inferno
Training Day
The Fifth Element
Rebecca
Infernal Affairs
The Hunchback of Notre Dame
Curse of the Golden Flower
The Siege
Program:
function: Find
inputs: Japan
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Infernal Affairs
function: And
dependencies: 1
2
function: Find
inputs: Annette Bening
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: The Siege
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Infernal Affairs" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Japan" .   } UNION { ?e <pred:name> "The Siege" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Annette Bening" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Infernal Affairs