Question: Which movie is shorter, Star Wars: Episode III – Revenge of the Sith or The Apartment (the one whose duration is 116 minute)?
Choices: The Towering Inferno
Star Wars: Episode III – Revenge of the Sith
The Apartment
The Hunchback of Notre Dame
Rebecca
Pleasantville
The Fifth Element
Training Day
Curse of the Golden Flower
Talk to Her
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Wars: Episode III – Revenge of the Sith" . } UNION { ?e <pred:name> "The Apartment" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "116"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Star Wars: Episode III – Revenge of the Sith
function: Find
inputs: The Apartment
function: FilterNum
dependencies: 1
inputs: duration
116 minute
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
Answer: The Apartment