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