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