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