Question: Which one has more total sales between Moon (the one whose release date is 2009-12-31) and The Motorcycle Diaries?
Choices: Curse of the Golden Flower
A Prairie Home Companion
The Hunchback of Notre Dame
Training Day
The Motorcycle Diaries
Moon
Pleasantville
The Fifth Element
Rebecca
The Towering Inferno
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Moon" . ?e <publication_date> ?pv_1 . ?pv_1 <pred:date> "2009-12-31"^^xsd:date . } UNION { ?e <pred:name> "The Motorcycle Diaries" . } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Moon
function: FilterDate
dependencies: 0
inputs: publication date
2009-12-31
=
function: Find
inputs: The Motorcycle Diaries
function: SelectBetween
dependencies: 1
2
inputs: box office
greater
Answer: The Motorcycle Diaries