Question: Which was more expensive, The Amazing Spider-Man released on 2012-07-03 or Dogma?
Choices:
A Prairie Home Companion
The Fifth Element
Curse of the Golden Flower
Talk to Her
Training Day
Dogma
The Amazing Spider-Man
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Answer: The Amazing Spider-Man
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Amazing Spider-Man" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2012-07-03"^^xsd:date . } UNION { ?e <pred:name> "Dogma" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Amazing Spider-Man
function: FilterDate
dependencies: 0
inputs: publication date
2012-07-03
=
function: Find
inputs: Dogma
function: SelectBetween
dependencies: 1
2
inputs: cost
greater