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