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