Question: Which movie had a bigger box office, The Matrix or Cowboys & Aliens?
Choices:
Talk to Her
A Prairie Home Companion
The Fifth Element
The Towering Inferno
The Matrix
Pleasantville
Cowboys & Aliens
The Hunchback of Notre Dame
Training Day
Curse of the Golden Flower
Program:
function: Find
inputs: The Matrix
function: Find
inputs: Cowboys & Aliens
function: SelectBetween
dependencies: 0
1
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Matrix" .  } UNION { ?e <pred:name> "Cowboys & Aliens" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Matrix