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