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