Question: Which movie made less at the box office, Unfaithful (the one whose producer is Arnon Milchan) or Ben-Hur (the one whose publication date is 2016-08-25)?
Choices:
Talk to Her
Unfaithful
Ben-Hur
Curse of the Golden Flower
Pleasantville
Rebecca
The Hunchback of Notre Dame
The Towering Inferno
Training Day
The Fifth Element
Answer: Ben-Hur
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Unfaithful" . ?e <producer> ?e_1 . ?e_1 <pred:name> "Arnon Milchan" . } UNION { ?e <pred:name> "Ben-Hur" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2016-08-25"^^xsd:date . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Arnon Milchan
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Unfaithful
function: And
dependencies: 1
2
function: Find
inputs: Ben-Hur
function: FilterDate
dependencies: 4
inputs: publication date
2016-08-25
=
function: SelectBetween
dependencies: 3
5
inputs: box office
less