Question: Does The Polar Express (the one whose genre is adventure film) or Dogma have the greater box office?
Choices:
Code Geass
Ponyo on the Cliff by the Sea
A Christmas Carol
Anastasia
Superman
The Polar Express
Magic Knight Rayearth
Naruto Shippuden the Movie: Bonds
Wonder Woman
My-HiME
Program:
function: Find
inputs: adventure film
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: The Polar Express
function: And
dependencies: 1
2
function: Find
inputs: Dogma
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Polar Express" . ?e <genre> ?e_1 . ?e_1 <pred:name> "adventure film" .   } UNION { ?e <pred:name> "Dogma" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Polar Express