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