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