Question: Which has a larger box office total, Heaven's Gate or Nixon?
Choices:
Nixon
Curse of the Golden Flower
The Hunchback of Notre Dame
Pleasantville
A Prairie Home Companion
Heaven's Gate
The Towering Inferno
Rebecca
Talk to Her
The Fifth Element
Program:
function: Find
inputs: Heaven's Gate
function: Find
inputs: Nixon
function: SelectBetween
dependencies: 0
1
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Heaven's Gate" .  } UNION { ?e <pred:name> "Nixon" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Nixon