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