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