Question: Is the shorter work Carrie, distributed by Paramount Pictures, or StudioCanal's production of Brighton Rock?
Choices:
Talk to Her
The Hunchback of Notre Dame
Brighton Rock
A Prairie Home Companion
The Fifth Element
Training Day
Curse of the Golden Flower
Rebecca
The Towering Inferno
Carrie
Answer: Brighton Rock
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Carrie" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } UNION { ?e <pred:name> "Brighton Rock" . ?e <production_company> ?e_2 . ?e_2 <pred:name> "StudioCanal" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Carrie
function: And
dependencies: 1
2
function: Find
inputs: StudioCanal
function: Relate
dependencies: 4
inputs: production company
backward
function: Find
inputs: Brighton Rock
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
less