Question: Which one, Fist of the North Star (the one whose publication date is 1995-01-01) or The Adventures of Baron Munchausen, has greater duration?
Choices:
Training Day
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
The Adventures of Baron Munchausen
The Towering Inferno
Fist of the North Star
Talk to Her
Pleasantville
The Fifth Element
Program:
function: Find
inputs: Fist of the North Star
function: FilterDate
dependencies: 0
inputs: publication date
1995-01-01
=
function: Find
inputs: The Adventures of Baron Munchausen
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Fist of the North Star" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1995-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Adventures of Baron Munchausen" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Adventures of Baron Munchausen