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