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