Question: Which movie cost less to make, The Shining (the one whose publication date is 1980-10-16) or Four Rooms?
Choices:
Pleasantville
Rebecca
The Shining
The Towering Inferno
The Hunchback of Notre Dame
The Fifth Element
Four Rooms
Curse of the Golden Flower
A Prairie Home Companion
Training Day
Answer: Four Rooms
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Shining" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1980-10-16"^^xsd:date . } UNION { ?e <pred:name> "Four Rooms" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Shining
function: FilterDate
dependencies: 0
inputs: publication date
1980-10-16
=
function: Find
inputs: Four Rooms
function: SelectBetween
dependencies: 1
2
inputs: cost
less