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