Question: Does Astro Boy (the one whose publication date is 2009-10-05) or Recess: School's Out have greater duration ?
Choices:
Winnie the Pooh
Beauty and the Beast
Peter Pan
Shrek 2
Astro Boy
Renaissance
Aladdin
Lilo & Stitch
WALL·E
Recess: School's Out
Answer: Astro Boy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Astro Boy" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-10-05"^^xsd:date . } UNION { ?e <pred:name> "Recess: School's Out" . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Astro Boy
function: FilterDate
dependencies: 0
inputs: publication date
2009-10-05
=
function: Find
inputs: Recess: School's Out
function: SelectBetween
dependencies: 1
2
inputs: duration
greater