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