Question: Which is shorter, Brazil, distributed by Republic Pictures, or The Lovely Bones?
Choices:
A Prairie Home Companion
Pleasantville
The Towering Inferno
The Fifth Element
Curse of the Golden Flower
The Hunchback of Notre Dame
Brazil
The Lovely Bones
Rebecca
Training Day
Program:
function: Find
inputs: Republic Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Brazil
function: And
dependencies: 1
2
function: Find
inputs: The Lovely Bones
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brazil" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Republic Pictures" .   } UNION { ?e <pred:name> "The Lovely Bones" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Brazil