Question: Which movie is shorter, How the West Was Won or Planet of the Apes (the one whose publication date is 2001-08-30)?
Choices: Planet of the Apes
A Prairie Home Companion
How the West Was Won
The Fifth Element
The Hunchback of Notre Dame
Talk to Her
Pleasantville
Curse of the Golden Flower
Rebecca
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "How the West Was Won" . } UNION { ?e <pred:name> "Planet of the Apes" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2001-08-30"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: How the West Was Won
function: Find
inputs: Planet of the Apes
function: FilterDate
dependencies: 1
inputs: publication date
2001-08-30
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
Answer: Planet of the Apes