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