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