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