Question: What has a longer duration, The Hauting which was published on 1999-10-14, or Man on the Moon?
Choices: Man on the Moon
Talk to Her
Pleasantville
Rebecca
The Hunchback of Notre Dame
Training Day
Curse of the Golden Flower
The Fifth Element
The Towering Inferno
The Haunting
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Haunting" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1999-10-14"^^xsd:date . } UNION { ?e <pred:name> "Man on the Moon" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Haunting
function: FilterDate
dependencies: 0
inputs: publication date
1999-10-14
=
function: Find
inputs: Man on the Moon
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
Answer: Man on the Moon