Question: Which movie made more at the box office, G.I. Joe: The Rise of Cobra (the one whose publication date is 2009-08-13) or Moulin Rouge!?
Choices:
G.I. Joe: The Rise of Cobra
Moulin Rouge!
Talk to Her
Rebecca
The Hunchback of Notre Dame
The Fifth Element
Curse of the Golden Flower
Pleasantville
A Prairie Home Companion
The Towering Inferno
Answer: G.I. Joe: The Rise of Cobra
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "G.I. Joe: The Rise of Cobra" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-08-13"^^xsd:date . } UNION { ?e <pred:name> "Moulin Rouge!" . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: G.I. Joe: The Rise of Cobra
function: FilterDate
dependencies: 0
inputs: publication date
2009-08-13
=
function: Find
inputs: Moulin Rouge!
function: SelectBetween
dependencies: 1
2
inputs: box office
greater