Question: Which movie is longer, Bobby (the one that has Prem Nath as a cast member) or Bridget Jones's Diary?
Choices:
Bobby
The Towering Inferno
Bridget Jones's Diary
A Prairie Home Companion
Talk to Her
Pleasantville
Curse of the Golden Flower
Training Day
The Fifth Element
The Hunchback of Notre Dame
Answer: Bobby
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Bobby" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Prem Nath" .   } UNION { ?e <pred:name> "Bridget Jones's Diary" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Prem Nath
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Bobby
function: And
dependencies: 1
2
function: Find
inputs: Bridget Jones's Diary
function: SelectBetween
dependencies: 3
4
inputs: duration
greater