Question: Which movie is shorter, Godzilla (the one whose production company is Tōhō) or Natural Born Killers?
Choices:
Godzilla
Rebecca
A Prairie Home Companion
Training Day
Talk to Her
The Fifth Element
Natural Born Killers
The Towering Inferno
Pleasantville
Curse of the Golden Flower
Program:
function: Find
inputs: Tōhō
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Godzilla
function: And
dependencies: 1
2
function: Find
inputs: Natural Born Killers
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Godzilla" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Tōhō" .   } UNION { ?e <pred:name> "Natural Born Killers" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Godzilla