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