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