Question: Which movie is longer, Venus (the one that has Vanessa Redgrave as a cast member) or The Master (the one whose script is wrote by Paul Thomas Anderson)?
Choices:
Talk to Her
Pleasantville
The Hunchback of Notre Dame
Training Day
The Towering Inferno
The Fifth Element
The Master
Rebecca
A Prairie Home Companion
Curse of the Golden Flower
Program:
function: Find
inputs: Vanessa Redgrave
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Venus
function: And
dependencies: 1
2
function: Find
inputs: Paul Thomas Anderson
function: Relate
dependencies: 4
inputs: screenwriter
backward
function: Find
inputs: The Master
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Venus" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Vanessa Redgrave" .   } UNION { ?e <pred:name> "The Master" . ?e <screenwriter> ?e_2 . ?e_2 <pred:name> "Paul Thomas Anderson" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Master