Question: Was it cheaper to make the literature-based movie The Lord of the Rings: The Two Towers, or The Hunchback of Notre Dame, released on 1923-01-01?
Choices:
Little Women
The Hunchback of Notre Dame
A Prairie Home Companion
The Last of the Mohicans
Rebecca
Earth
Paris
Hamlet
Pleasantville
The Scarlet Letter
Program:
function: Find
inputs: film based on literature
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Lord of the Rings: The Two Towers
function: And
dependencies: 1
2
function: Find
inputs: The Hunchback of Notre Dame
function: FilterDate
dependencies: 4
inputs: publication date
1923-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: cost
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Lord of the Rings: The Two Towers" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film based on literature" . } UNION { ?e <pred:name> "The Hunchback of Notre Dame" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1923-01-01"^^xsd:date . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Hunchback of Notre Dame