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