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