Question: Which has less cost, Chocolat published on 2017-03-03 or Goodfellas?
Choices:
Pleasantville
Training Day
The Hunchback of Notre Dame
Talk to Her
The Fifth Element
Goodfellas
Rebecca
Chocolat
The Towering Inferno
Curse of the Golden Flower
Program:
function: Find
inputs: Chocolat
function: FilterDate
dependencies: 0
inputs: publication date
2017-03-03
=
function: Find
inputs: Goodfellas
function: SelectBetween
dependencies: 1
2
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Chocolat" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2017-03-03"^^xsd:date . } UNION { ?e <pred:name> "Goodfellas" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Chocolat