Question: Which is expensive, Mars Attacks! or Signs which has Joaquin Phoenix in its cast?
Choices:
Talk to Her
The Fifth Element
Mars Attacks!
The Towering Inferno
Training Day
Rebecca
Signs
A Prairie Home Companion
Curse of the Golden Flower
Pleasantville
Program:
function: Find
inputs: Joaquin Phoenix
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Signs
function: And
dependencies: 1
2
function: Find
inputs: Mars Attacks!
function: SelectBetween
dependencies: 3
4
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Signs" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Joaquin Phoenix" .   } UNION { ?e <pred:name> "Mars Attacks!" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Signs