Question: Which one, Roman Holiday (the one that was nominated for Academy Award for Best Director) or The Exorcist, has greater box office?
Choices:
Rebecca
A Prairie Home Companion
Talk to Her
Training Day
Roman Holiday
The Towering Inferno
Curse of the Golden Flower
The Hunchback of Notre Dame
The Exorcist
The Fifth Element
Program:
function: Find
inputs: Academy Award for Best Director
function: Relate
dependencies: 0
inputs: nominated for
backward
function: Find
inputs: Roman Holiday
function: And
dependencies: 1
2
function: Find
inputs: The Exorcist
function: SelectBetween
dependencies: 3
4
inputs: box office
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Roman Holiday" . ?e <nominated_for> ?e_1 . ?e_1 <pred:name> "Academy Award for Best Director" .   } UNION { ?e <pred:name> "The Exorcist" .  } ?e <box_office> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Exorcist