Question: Which is shorter Batman & Robin (shot in Ottawa) or Hereafter?
Choices:
Pleasantville
Curse of the Golden Flower
Talk to Her
Rebecca
Training Day
Hereafter
The Fifth Element
Batman & Robin
The Hunchback of Notre Dame
A Prairie Home Companion
Program:
function: Find
inputs: Ottawa
function: Relate
dependencies: 0
inputs: filming location
backward
function: Find
inputs: Batman & Robin
function: And
dependencies: 1
2
function: Find
inputs: Hereafter
function: SelectBetween
dependencies: 3
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Batman & Robin" . ?e <filming_location> ?e_1 . ?e_1 <pred:name> "Ottawa" .   } UNION { ?e <pred:name> "Hereafter" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Batman & Robin