Question: Which one has greater cost between Casablanca (the one that received Academy Award for Best Picture) or J. Edgar?
Choices:
The Fifth Element
Talk to Her
The Towering Inferno
Pleasantville
Training Day
Curse of the Golden Flower
J. Edgar
The Hunchback of Notre Dame
A Prairie Home Companion
Rebecca
Program:
function: Find
inputs: Academy Award for Best Picture
function: Relate
dependencies: 0
inputs: award received
backward
function: Find
inputs: Casablanca
function: And
dependencies: 1
2
function: Find
inputs: J. Edgar
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Casablanca" . ?e <award_received> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Picture" .   } UNION { ?e <pred:name> "J. Edgar" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: J. Edgar