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