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