Question: Which movie is longer, Hilary and Jackie or The Time Machine (the one whose publication date is 2002-03-21)?
Choices:
Rebecca
A Prairie Home Companion
Pleasantville
Curse of the Golden Flower
The Time Machine
Talk to Her
The Towering Inferno
Hilary and Jackie
The Fifth Element
Training Day
Answer: Hilary and Jackie
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Hilary and Jackie" . } UNION { ?e <pred:name> "The Time Machine" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2002-03-21"^^xsd:date . } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Hilary and Jackie
function: Find
inputs: The Time Machine
function: FilterDate
dependencies: 1
inputs: publication date
2002-03-21
=
function: SelectBetween
dependencies: 0
2
inputs: duration
greater