Question: Which is longer in duration, Hercules, which was published on 2014-07-23, or Willow?
Choices:
Training Day
Curse of the Golden Flower
The Towering Inferno
Willow
The Fifth Element
Rebecca
The Hunchback of Notre Dame
Talk to Her
A Prairie Home Companion
Pleasantville
Program:
function: Find
inputs: Willow
function: Find
inputs: Hercules
function: FilterDate
dependencies: 1
inputs: publication date
2014-07-23
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Willow" . } UNION { ?e <pred:name> "Hercules" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2014-07-23"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Willow