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