Question: Which movie is longer, Fanny and Alexander or Kundun?
Choices:
Curse of the Golden Flower
Talk to Her
Training Day
Fanny and Alexander
Pleasantville
The Towering Inferno
The Fifth Element
Rebecca
Kundun
The Hunchback of Notre Dame
Program:
function: Find
inputs: Fanny and Alexander
function: Find
inputs: Kundun
function: SelectBetween
dependencies: 0
1
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fanny and Alexander" .  } UNION { ?e <pred:name> "Kundun" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Fanny and Alexander