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