Question: Does Batman Begins (that is distributed in the United Kingdom) or Chariots of Fire (whose date is 1981-03-30) have the higher cost?
Choices:
The Towering Inferno
Talk to Her
Curse of the Golden Flower
Chariots of Fire
A Prairie Home Companion
Pleasantville
Batman Begins
The Hunchback of Notre Dame
Rebecca
The Fifth Element
Program:
function: Find
inputs: United Kingdom
function: Relate
dependencies: 0
inputs: film distribute region
backward
function: Find
inputs: Batman Begins
function: And
dependencies: 1
2
function: Find
inputs: Chariots of Fire
function: FilterDate
dependencies: 4
inputs: publication date
1981-03-30
=
function: SelectBetween
dependencies: 3
5
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Batman Begins" . ?e <film_distribute_region> ?e_1 . ?e_1 <pred:name> "United Kingdom" . } UNION { ?e <pred:name> "Chariots of Fire" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "1981-03-30"^^xsd:date . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Batman Begins