Question: Does The Damned, published on 1947-01-01, or Derby, published in 1949, have the shorter running time?
Choices:
The Hunchback of Notre Dame
The Damned
A Prairie Home Companion
Talk to Her
The Towering Inferno
Training Day
Rebecca
Curse of the Golden Flower
The Fifth Element
Derby
Program:
function: Find
inputs: The Damned
function: FilterDate
dependencies: 0
inputs: publication date
1947-01-01
=
function: Find
inputs: Derby
function: FilterYear
dependencies: 2
inputs: publication date
1949
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Damned" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1947-01-01"^^xsd:date . } UNION { ?e <pred:name> "Derby" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:year> 1949 . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Derby