Question: Is Friends with Benefits or Casablanca distributed by Warner Bros. shorter?
Choices:
Pleasantville
The Towering Inferno
The Fifth Element
Curse of the Golden Flower
Talk to Her
Friends with Benefits
Casablanca
A Prairie Home Companion
Rebecca
Training Day
Program:
function: Find
inputs: Friends with Benefits
function: Find
inputs: Warner Bros.
function: Relate
dependencies: 1
inputs: distributor
backward
function: Find
inputs: Casablanca
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Friends with Benefits" .  } UNION { ?e <pred:name> "Casablanca" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Warner Bros." .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Casablanca