Question: Which movie is longer, Robin Hood (the one whose duration is 30 minute) or Sullivan's Travels?
Choices: Talk to Her
Pleasantville
Training Day
Rebecca
Robin Hood
The Fifth Element
A Prairie Home Companion
Curse of the Golden Flower
The Towering Inferno
Sullivan's Travels
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Robin Hood" . ?e <duration> ?pv_1 . ?pv_1 <pred:unit> "minute" . ?pv_1 <pred:value> "30"^^xsd:double . } UNION { ?e <pred:name> "Sullivan's Travels" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Robin Hood
function: FilterNum
dependencies: 0
inputs: duration
30 minute
=
function: Find
inputs: Sullivan's Travels
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
Answer: Sullivan's Travels