Question: Which movie is longer, Aladdin (the one whose publication date is 1993-11-19) or Ice Age: Continental Drift?
Choices:
Lilo & Stitch
WALL·E
The Rescuers
Beauty and the Beast
Renaissance
Shrek 2
Cinderella
Aladdin
Winnie the Pooh
Peter Pan
Answer: Aladdin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Aladdin" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1993-11-19"^^xsd:date . } UNION { ?e <pred:name> "Ice Age: Continental Drift" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Aladdin
function: FilterDate
dependencies: 0
inputs: publication date
1993-11-19
=
function: Find
inputs: Ice Age: Continental Drift
function: SelectBetween
dependencies: 1
2
inputs: duration
greater