Question: Is the duration greater for Agora or Monster (the one whose publication date is 2008-01-01)?
Choices: A Prairie Home Companion
The Towering Inferno
Rebecca
Monster
Pleasantville
Talk to Her
Agora
The Fifth Element
Curse of the Golden Flower
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Agora" . } UNION { ?e <pred:name> "Monster" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2008-01-01"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Agora
function: Find
inputs: Monster
function: FilterDate
dependencies: 1
inputs: publication date
2008-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater
Answer: Agora