Question: Which was longer, The Three Musketeers (published on 1939-02-17) or Oasis (published on 2002-01-01)?
Choices: A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Talk to Her
Rebecca
Curse of the Golden Flower
The Three Musketeers
Oasis
The Fifth Element
Pleasantville
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1939-02-17"^^xsd:date . } UNION { ?e <pred:name> "Oasis" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "2002-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Three Musketeers
function: FilterDate
dependencies: 0
inputs: publication date
1939-02-17
=
function: Find
inputs: Oasis
function: FilterDate
dependencies: 2
inputs: publication date
2002-01-01
=
function: SelectBetween
dependencies: 1
3
inputs: duration
greater
Answer: Oasis