Question: Which movie cost more to make, The Proposition (the one whose cost is 2000000 United States dollar) or Rosemary's Baby (the one that has Ruth Gordon as a cast member)?
Choices:
Rosemary's Baby
Training Day
The Fifth Element
The Hunchback of Notre Dame
The Proposition
Curse of the Golden Flower
A Prairie Home Companion
Talk to Her
The Towering Inferno
Pleasantville
Program:
function: Find
inputs: The Proposition
function: FilterNum
dependencies: 0
inputs: cost
2000000 United States dollar
=
function: Find
inputs: Ruth Gordon
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: Rosemary's Baby
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Proposition" . ?e <cost> ?pv_1 . ?pv_1 <pred:unit> "United States dollar" . ?pv_1 <pred:value> "2000000"^^xsd:double . } UNION { ?e <pred:name> "Rosemary's Baby" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Ruth Gordon" . } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Rosemary's Baby