Question: Which movie is shorter, Wuthering Heights (the one whose release region is Italy) or Catch-22 (the one that has Sam O'Steen as a film editor)?
Choices:
Training Day
Pleasantville
A Prairie Home Companion
The Hunchback of Notre Dame
Catch-22
Wuthering Heights
Rebecca
The Fifth Element
Curse of the Golden Flower
Talk to Her
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Wuthering Heights
function: And
dependencies: 1
2
function: Find
inputs: Sam O'Steen
function: Relate
dependencies: 4
inputs: film editor
backward
function: Find
inputs: Catch-22
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wuthering Heights" . ?e <film_release_region> ?e_1 . ?e_1 <pred:name> "Italy" .   } UNION { ?e <pred:name> "Catch-22" . ?e <film_editor> ?e_2 . ?e_2 <pred:name> "Sam O'Steen" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Catch-22