Question: Which movie is shorter, Chocolat (the one whose publication date is 2016-11-11) or Mission: Impossible III?
Choices:
Training Day
Talk to Her
The Fifth Element
Curse of the Golden Flower
Mission: Impossible III
Rebecca
Chocolat
A Prairie Home Companion
The Towering Inferno
The Hunchback of Notre Dame
Program:
function: Find
inputs: Chocolat
function: FilterDate
dependencies: 0
inputs: publication date
2016-11-11
=
function: Find
inputs: Mission: Impossible III
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> "2016-11-11"^^xsd:date . } UNION { ?e <pred:name> "Mission: Impossible III" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chocolat