Question: Which movie is longer, Daredevil (the one whose publication date is 2003-02-09) or The Duchess?
Choices:
Daredevil
Curse of the Golden Flower
The Fifth Element
Training Day
Rebecca
The Towering Inferno
Pleasantville
The Duchess
The Hunchback of Notre Dame
A Prairie Home Companion
Answer: The Duchess
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Daredevil" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2003-02-09"^^xsd:date . } UNION { ?e <pred:name> "The Duchess" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Daredevil
function: FilterDate
dependencies: 0
inputs: publication date
2003-02-09
=
function: Find
inputs: The Duchess
function: SelectBetween
dependencies: 1
2
inputs: duration
greater