Question: Which one has the bigger budget, Scary Movie 4 or Corpse Bride
Choices:
Talk to Her
The Hunchback of Notre Dame
Pleasantville
Rebecca
Scary Movie 4
Training Day
A Prairie Home Companion
Corpse Bride
Curse of the Golden Flower
The Fifth Element
Program:
function: Find
inputs: Scary Movie 4
function: Find
inputs: Corpse Bride
function: SelectBetween
dependencies: 0
1
inputs: budget
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Scary Movie 4" .  } UNION { ?e <pred:name> "Corpse Bride" .  } ?e <budget> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Scary Movie 4