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