Question: Which movie cost more to make, Sleepy Hollow (the one whose production company is Paramount Pictures) or Harry Potter and the Order of the Phoenix (the one that has Geraldine Somerville as a cast member)?
Choices:
The Fifth Element
Rebecca
Pleasantville
The Towering Inferno
Training Day
The Hunchback of Notre Dame
Curse of the Golden Flower
Harry Potter and the Order of the Phoenix
Talk to Her
Sleepy Hollow
Program:
function: Find
inputs: Paramount Pictures
function: Relate
dependencies: 0
inputs: production company
backward
function: Find
inputs: Sleepy Hollow
function: And
dependencies: 1
2
function: Find
inputs: Geraldine Somerville
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Order of the Phoenix
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: cost
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sleepy Hollow" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Paramount Pictures" .   } UNION { ?e <pred:name> "Harry Potter and the Order of the Phoenix" . ?e <cast_member> ?e_2 . ?e_2 <pred:name> "Geraldine Somerville" .  } ?e <cost> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Harry Potter and the Order of the Phoenix