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