Question: Does Great Expectations (the one whose publication date is 1946-01-01) or Lock, Stock and Two Smoking Barrels have lesser duration ?
Choices:
Lock, Stock and Two Smoking Barrels
A Prairie Home Companion
Rebecca
The Fifth Element
The Towering Inferno
Talk to Her
Training Day
Curse of the Golden Flower
The Hunchback of Notre Dame
Pleasantville
Program:
function: Find
inputs: Great Expectations
function: FilterDate
dependencies: 0
inputs: publication date
1946-01-01
=
function: Find
inputs: Lock, Stock and Two Smoking Barrels
function: SelectBetween
dependencies: 1
2
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Great Expectations" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1946-01-01"^^xsd:date . } UNION { ?e <pred:name> "Lock, Stock and Two Smoking Barrels" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Lock, Stock and Two Smoking Barrels