Question: Which movie is shorter, The Jacket or Milk (the one whose narrative location is New York City)?
Choices:
The Fifth Element
Curse of the Golden Flower
Talk to Her
The Jacket
A Prairie Home Companion
Pleasantville
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Training Day
Program:
function: Find
inputs: The Jacket
function: Find
inputs: New York City
function: Relate
dependencies: 1
inputs: narrative location
backward
function: Find
inputs: Milk
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Jacket" .  } UNION { ?e <pred:name> "Milk" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Jacket