Question: Which is expensive, Thor published on 2011-04-27 or Lost in Translation?
Choices:
Curse of the Golden Flower
Rebecca
The Fifth Element
Lost in Translation
Training Day
Talk to Her
Thor
A Prairie Home Companion
Pleasantville
The Hunchback of Notre Dame
Program:
function: Find
inputs: Thor
function: FilterDate
dependencies: 0
inputs: publication date
2011-04-27
=
function: Find
inputs: Lost in Translation
function: SelectBetween
dependencies: 1
2
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Thor" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2011-04-27"^^xsd:date . } UNION { ?e <pred:name> "Lost in Translation" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Thor