Question: Is Brooklyn, with a story set in New York City, or Thirteen Days the longer work?
Choices:
The Fifth Element
Pleasantville
Brooklyn
Training Day
Thirteen Days
A Prairie Home Companion
Talk to Her
The Towering Inferno
Rebecca
Curse of the Golden Flower
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Brooklyn
function: And
dependencies: 1
2
function: Find
inputs: Thirteen Days
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Brooklyn" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "New York City" .   } UNION { ?e <pred:name> "Thirteen Days" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Thirteen Days