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