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