Question: Which is longer, Sherlock Holmes published on 2010-05-20 or Piranha 3DD?
Choices:
The Towering Inferno
Training Day
Pleasantville
Curse of the Golden Flower
Sherlock Holmes
Rebecca
A Prairie Home Companion
The Fifth Element
Talk to Her
Piranha 3DD
Answer: Sherlock Holmes
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sherlock Holmes" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2010-05-20"^^xsd:date . } UNION { ?e <pred:name> "Piranha 3DD" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Sherlock Holmes
function: FilterDate
dependencies: 0
inputs: publication date
2010-05-20
=
function: Find
inputs: Piranha 3DD
function: SelectBetween
dependencies: 1
2
inputs: duration
greater