Question: Which one made more money at the box office, Priest (the one whose publication date is 2011-01-01) or Heaven's Gate?
Choices:
The Hunchback of Notre Dame
Priest
A Prairie Home Companion
Curse of the Golden Flower
Talk to Her
Pleasantville
The Fifth Element
The Towering Inferno
Heaven's Gate
Training Day
Program:
function: Find
inputs: Priest
function: FilterDate
dependencies: 0
inputs: publication date
2011-01-01
=
function: Find
inputs: Heaven's Gate
function: SelectBetween
dependencies: 1
2
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Priest" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2011-01-01"^^xsd:date . } UNION { ?e <pred:name> "Heaven's Gate" . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Priest