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