Question: Between Trainspotting, distributed by PolyGram Filmed Entertainment, or Lawrence of Arabia, which is shorter?
Choices:
The Fifth Element
Rebecca
Trainspotting
The Hunchback of Notre Dame
Lawrence of Arabia
Training Day
Talk to Her
A Prairie Home Companion
The Towering Inferno
Pleasantville
Program:
function: Find
inputs: PolyGram Filmed Entertainment
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Trainspotting
function: And
dependencies: 1
2
function: Find
inputs: Lawrence of Arabia
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Trainspotting" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "PolyGram Filmed Entertainment" .   } UNION { ?e <pred:name> "Lawrence of Arabia" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Trainspotting