Question: Which movie is shorter, The Count of Monte Cristo (the one whose publication date is 1934-01-01) or The Love Guru?
Choices:
Rebecca
The Fifth Element
Pleasantville
Talk to Her
Curse of the Golden Flower
The Love Guru
Training Day
The Hunchback of Notre Dame
The Towering Inferno
A Prairie Home Companion
Program:
function: Find
inputs: The Count of Monte Cristo
function: FilterDate
dependencies: 0
inputs: publication date
1934-01-01
=
function: Find
inputs: The Love Guru
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Count of Monte Cristo" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1934-01-01"^^xsd:date . } UNION { ?e <pred:name> "The Love Guru" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Love Guru