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