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