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