Question: Which movie is longer, 30 Days of Night or Kiss (the one whose duration is 50 minute)?
Choices: Kiss
Pleasantville
Curse of the Golden Flower
A Prairie Home Companion
30 Days of Night
The Fifth Element
Talk to Her
The Hunchback of Notre Dame
The Towering Inferno
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "30 Days of Night" . } UNION { ?e <pred:name> "Kiss" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "50"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: 30 Days of Night
function: Find
inputs: Kiss
function: FilterNum
dependencies: 1
inputs: duration
50 minute
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
Answer: 30 Days of Night