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