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