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