Question: Does Moon (released on 2009-12-31) or W. have the higher cost?
Choices:
Curse of the Golden Flower
Training Day
The Towering Inferno
Talk to Her
The Hunchback of Notre Dame
Rebecca
The Fifth Element
Pleasantville
W.
A Prairie Home Companion
Answer: W.
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Moon" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-12-31"^^xsd:date . } UNION { ?e <pred:name> "W." . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Moon
function: FilterDate
dependencies: 0
inputs: publication date
2009-12-31
=
function: Find
inputs: W.
function: SelectBetween
dependencies: 1
2
inputs: cost
greater