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