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