Question: Which one, Topaz (the one whose director is Alfred Hitchcock) or Star Wars Episode IV: A New Hope (the one that was nominated for Academy Award for Best Supporting Actor), has greater cost?
Choices: The Hunchback of Notre Dame
Curse of the Golden Flower
Rebecca
Topaz
Talk to Her
The Fifth Element
Training Day
The Towering Inferno
Pleasantville
Star Wars Episode IV: A New Hope
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Topaz" . ?e <director> ?e_1 . ?e_1 <pred:name> "Alfred Hitchcock" .   } UNION { ?e <pred:name> "Star Wars Episode IV: A New Hope" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Supporting Actor" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Alfred Hitchcock
function: Relate
dependencies: 0
inputs: director
backward
function: Find
inputs: Topaz
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Supporting Actor
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: Star Wars Episode IV: A New Hope
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater
Answer: Star Wars Episode IV: A New Hope