Question: Which movie is longer, Alexander (the one whose narrative location is Russia) or Everyone Says I Love You?
Choices:
Rebecca
Alexander
Training Day
The Hunchback of Notre Dame
Everyone Says I Love You
A Prairie Home Companion
The Towering Inferno
The Fifth Element
Pleasantville
Curse of the Golden Flower
Program:
function: Find
inputs: Russia
function: Relate
dependencies: 0
inputs: narrative location
backward
function: Find
inputs: Alexander
function: And
dependencies: 1
2
function: Find
inputs: Everyone Says I Love You
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Alexander" . ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Russia" .   } UNION { ?e <pred:name> "Everyone Says I Love You" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Alexander