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