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