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