Question: Which has a greater cost, Slumdog Millionaire or Once Upon a Time in America?
Choices:
The Fifth Element
Talk to Her
The Towering Inferno
The Hunchback of Notre Dame
A Prairie Home Companion
Pleasantville
Rebecca
Training Day
Once Upon a Time in America
Curse of the Golden Flower
Program:
function: Find
inputs: Slumdog Millionaire
function: Find
inputs: Once Upon a Time in America
function: SelectBetween
dependencies: 0
1
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Slumdog Millionaire" .  } UNION { ?e <pred:name> "Once Upon a Time in America" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Once Upon a Time in America