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