Question: Which one, Breakfast at Tiffany's (the one whose publication date is 1962-01-12) or The Matrix, has greater cost?
Choices:
A Prairie Home Companion
Rebecca
Pleasantville
Talk to Her
The Matrix
The Towering Inferno
The Hunchback of Notre Dame
The Fifth Element
Training Day
Breakfast at Tiffany's
Program:
function: Find
inputs: Breakfast at Tiffany's
function: FilterDate
dependencies: 0
inputs: publication date
1962-01-12
=
function: Find
inputs: The Matrix
function: SelectBetween
dependencies: 1
2
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Breakfast at Tiffany's" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1962-01-12"^^xsd:date . } UNION { ?e <pred:name> "The Matrix" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Matrix