Question: Which one is shorter, The Time Machine (the one whose publication date is 1960-01-01) or Jerusalem (the one whose publication date is 1998-07-02)?
Choices:
Rebecca
A Prairie Home Companion
The Fifth Element
Jerusalem
Talk to Her
Training Day
Pleasantville
The Time Machine
Curse of the Golden Flower
The Towering Inferno
Program:
function: Find
inputs: The Time Machine
function: FilterDate
dependencies: 0
inputs: publication date
1960-01-01
=
function: Find
inputs: Jerusalem
function: FilterDate
dependencies: 2
inputs: publication date
1998-07-02
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Time Machine" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1960-01-01"^^xsd:date . } UNION { ?e <pred:name> "Jerusalem" . ?e <publication_date> ?pv_2 . ?pv_2 <pred:date> "1998-07-02"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Time Machine