Question: Is Bernie or August whose narrative location is Wales longer?
Choices:
The Towering Inferno
Pleasantville
Curse of the Golden Flower
Training Day
Bernie
A Prairie Home Companion
Rebecca
August
The Fifth Element
Talk to Her
Program:
function: Find
inputs: Bernie
function: Find
inputs: Wales
function: Relate
dependencies: 1
inputs: narrative location
backward
function: Find
inputs: August
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bernie" .  } UNION { ?e <pred:name> "August" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Wales" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bernie