Question: Which has a greater box office, Dr. Strangelove (which was nominated for a BAFTA Award for Best Film) or The Proposition (whose publication date is 2005-01-01)?
Choices: Dr. Strangelove
Curse of the Golden Flower
A Prairie Home Companion
Rebecca
Talk to Her
Training Day
Pleasantville
The Fifth Element
The Proposition
The Hunchback of Notre Dame
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dr. Strangelove" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "BAFTA Award for Best Film" . } UNION { ?e <pred:name> "The Proposition" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2005-01-01"^^xsd:date . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: BAFTA Award for Best Film
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Dr. Strangelove
function: And
dependencies: 1
2
function: Find
inputs: The Proposition
function: FilterDate
dependencies: 4
inputs: publication date
2005-01-01
=
function: SelectBetween
dependencies: 3
5
inputs: box office
greater
Answer: Dr. Strangelove