Question: Is the longer work The Last of the Mohicans, published on 1936-01-01, or Bad Education?
Choices:
Talk to Her
Curse of the Golden Flower
Training Day
Pleasantville
The Fifth Element
The Towering Inferno
A Prairie Home Companion
The Last of the Mohicans
Bad Education
Rebecca
Program:
function: Find
inputs: The Last of the Mohicans
function: FilterDate
dependencies: 0
inputs: publication date
1936-01-01
=
function: Find
inputs: Bad Education
function: SelectBetween
dependencies: 1
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Last of the Mohicans" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1936-01-01"^^xsd:date . } UNION { ?e <pred:name> "Bad Education" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Bad Education