Question: Which is longer in length, Cinderella which has Whoopi Goldberg as a member, or Wonder Boys?
Choices:
Wonder Boys
The Towering Inferno
Pleasantville
Rebecca
Cinderella
A Prairie Home Companion
Curse of the Golden Flower
The Hunchback of Notre Dame
Training Day
The Fifth Element
Answer: Wonder Boys
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wonder Boys" .  } UNION { ?e <pred:name> "Cinderella" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Whoopi Goldberg" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Wonder Boys
function: Find
inputs: Whoopi Goldberg
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Cinderella
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater