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