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