Question: Which has less cost, The Three Musketeers (whose publication date is 2013-11-14) or Apocalypto?
Choices:
The Three Musketeers
The Goodbye Girl
The Music Man
The Challenge
Apocalypto
The Late Shift
All Quiet on the Western Front
Luther
A Christmas Carol
A Streetcar Named Desire
Program:
function: Find
inputs: The Three Musketeers
function: FilterDate
dependencies: 0
inputs: publication date
2013-11-14
=
function: Find
inputs: Apocalypto
function: SelectBetween
dependencies: 1
2
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Three Musketeers" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2013-11-14"^^xsd:date . } UNION { ?e <pred:name> "Apocalypto" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Three Musketeers