Question: Which costed more Grease on Thor (which was published on 2011-05-06)?
Choices:
Talk to Her
Training Day
Grease
Curse of the Golden Flower
A Prairie Home Companion
Pleasantville
The Hunchback of Notre Dame
The Fifth Element
The Towering Inferno
Thor
Answer: Thor
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Grease" . } UNION { ?e <pred:name> "Thor" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2011-05-06"^^xsd:date . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Grease
function: Find
inputs: Thor
function: FilterDate
dependencies: 1
inputs: publication date
2011-05-06
=
function: SelectBetween
dependencies: 0
2
inputs: cost
greater