Question: Which has a greater box office, Scott Pilgrim vs. the World or Moulin Rouge!?
Choices:
Scott Pilgrim vs. the World
The Towering Inferno
Rebecca
Moulin Rouge!
The Hunchback of Notre Dame
Talk to Her
Curse of the Golden Flower
Pleasantville
Training Day
The Fifth Element
Program:
function: Find
inputs: Scott Pilgrim vs. the World
function: Find
inputs: Moulin Rouge!
function: SelectBetween
dependencies: 0
1
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scott Pilgrim vs. the World" .  } UNION { ?e <pred:name> "Moulin Rouge!" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Moulin Rouge!