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