Question: Which movie is shorter, Olympia (the one whose public domain date is 2087-01-01) or Cold Mountain (the one whose composer is Gabriel Yared)?
Choices: The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
A Prairie Home Companion
The Towering Inferno
The Fifth Element
Pleasantville
Cold Mountain
Rebecca
Olympia
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Olympia" . ?e <public_domain_date> ?pv_1 . ?pv_1 <pred:date> "2087-01-01"^^xsd:date . } UNION { ?e <pred:name> "Cold Mountain" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Gabriel Yared" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Olympia
function: FilterDate
dependencies: 0
inputs: public domain date
2087-01-01
=
function: Find
inputs: Gabriel Yared
function: Relate
dependencies: 2
inputs: composer
backward
function: Find
inputs: Cold Mountain
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: duration
less
Answer: Olympia