Question: Does Arthur Christmas or Hercules (the one whose publication date is 1997-11-14) has greater duration ?
Choices:
Winnie the Pooh
Peter Pan
Arthur Christmas
Aladdin
Lilo & Stitch
The Rescuers
WALL·E
Hercules
Beauty and the Beast
Renaissance
Answer: Arthur Christmas
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Arthur Christmas" . } UNION { ?e <pred:name> "Hercules" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1997-11-14"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Arthur Christmas
function: Find
inputs: Hercules
function: FilterDate
dependencies: 1
inputs: publication date
1997-11-14
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater