Question: Which movie is shorter, Into the Storm (the one whose publication date is 2014-08-07) or True Grit (the one whose duration is 128 minute)?
Choices:
The Hunchback of Notre Dame
Pleasantville
Curse of the Golden Flower
Rebecca
Talk to Her
Training Day
A Prairie Home Companion
The Fifth Element
True Grit
Into the Storm
Program:
function: Find
inputs: Into the Storm
function: FilterDate
dependencies: 0
inputs: publication date
2014-08-07
=
function: Find
inputs: True Grit
function: FilterNum
dependencies: 2
inputs: duration
128 minute
=
function: SelectBetween
dependencies: 1
3
inputs: duration
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Into the Storm" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2014-08-07"^^xsd:date . } UNION { ?e <pred:name> "True Grit" . ?e <duration> ?pv_2 . ?pv_2 <pred:unit> "minute" . ?pv_2 <pred:value> "128"^^xsd:double . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Into the Storm