Question: Which movie made more at the box office, Machete (the one whose director is Robert Rodriguez) or State of Play (the one whose publication date is 2009-06-18)?
Choices: Talk to Her
A Prairie Home Companion
The Hunchback of Notre Dame
State of Play
Machete
The Towering Inferno
Curse of the Golden Flower
The Fifth Element
Pleasantville
Training Day
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Machete" . ?e <director> ?e_1 . ?e_1 <pred:name> "Robert Rodriguez" . } UNION { ?e <pred:name> "State of Play" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-06-18"^^xsd:date . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Robert Rodriguez
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Machete
function: And
dependencies: 1
2
function: Find
inputs: State of Play
function: FilterDate
dependencies: 4
inputs: publication date
2009-06-18
=
function: SelectBetween
dependencies: 3
5
inputs: box office
greater
Answer: State of Play