Question: Which movie is longer, Never Let Me Go (the one whose publication date is 1953-01-01) or Cast Away?
Choices:
The Towering Inferno
Rebecca
Training Day
Cast Away
Curse of the Golden Flower
The Hunchback of Notre Dame
Never Let Me Go
The Fifth Element
A Prairie Home Companion
Pleasantville
Answer: Cast Away
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Never Let Me Go" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1953-01-01"^^xsd:date . } UNION { ?e <pred:name> "Cast Away" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Never Let Me Go
function: FilterDate
dependencies: 0
inputs: publication date
1953-01-01
=
function: Find
inputs: Cast Away
function: SelectBetween
dependencies: 1
2
inputs: duration
greater