Question: Which movie is shorter, The Prince of Egypt or Peter Pan (the one whose publication date is 1953-12-22)?
Choices: The Rescuers
Shrek 2
Renaissance
Winnie the Pooh
Aladdin
The Prince of Egypt
Beauty and the Beast
Peter Pan
Cinderella
Lilo & Stitch
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Prince of Egypt" . } UNION { ?e <pred:name> "Peter Pan" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1953-12-22"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Prince of Egypt
function: Find
inputs: Peter Pan
function: FilterDate
dependencies: 1
inputs: publication date
1953-12-22
=
function: SelectBetween
dependencies: 0
2
inputs: duration
less
Answer: Peter Pan