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