Question: Which is longer, Venus starring Richard Griffiths or A Christmas Carol that was nominated for an Academy Award for Best Animated Short Film?
Choices:
Talk to Her
A Prairie Home Companion
The Towering Inferno
Rebecca
Pleasantville
A Christmas Carol
The Hunchback of Notre Dame
Venus
Training Day
The Fifth Element
Answer: Venus
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Venus" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Richard Griffiths" .   } UNION { ?e <pred:name> "A Christmas Carol" . ?e <nominated_for> ?e_2 . ?e_2 <pred:name> "Academy Award for Best Animated Short Film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Richard Griffiths
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Venus
function: And
dependencies: 1
2
function: Find
inputs: Academy Award for Best Animated Short Film
function: Relate
dependencies: 4
inputs: nominated for
backward
function: Find
inputs: A Christmas Carol
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater