Question: Which movie cost more to make, Casablanca (the one that mainly depicts World War II) or Mission: Impossible (the one whose director is Brian De Palma)?
Choices:
The Towering Inferno
Training Day
A Prairie Home Companion
Mission: Impossible
Curse of the Golden Flower
The Hunchback of Notre Dame
Rebecca
Talk to Her
The Fifth Element
Pleasantville
Answer: Mission: Impossible
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Casablanca" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "World War II" .   } UNION { ?e <pred:name> "Mission: Impossible" . ?e <director> ?e_2 . ?e_2 <pred:name> "Brian De Palma" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: World War II
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: Casablanca
function: And
dependencies: 1
2
function: Find
inputs: Brian De Palma
function: Relate
dependencies: 4
inputs: director
backward
function: Find
inputs: Mission: Impossible
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater