Question: Which has a lesser box office, Dogma or Romeo and Juliet (whose publication date is 2013-01-01)?
Choices:
Dogma
Talk to Her
Pleasantville
Romeo and Juliet
The Hunchback of Notre Dame
Curse of the Golden Flower
The Towering Inferno
Training Day
The Fifth Element
A Prairie Home Companion
Answer: Romeo and Juliet
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dogma" . } UNION { ?e <pred:name> "Romeo and Juliet" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2013-01-01"^^xsd:date . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Dogma
function: Find
inputs: Romeo and Juliet
function: FilterDate
dependencies: 1
inputs: publication date
2013-01-01
=
function: SelectBetween
dependencies: 0
2
inputs: box office
less