Question: Which is longer, Quo Vadis starring Walter Pidgeon or Cape Fear whose genre is film based on literature?
Choices:
Talk to Her
A Prairie Home Companion
The Fifth Element
Pleasantville
Curse of the Golden Flower
Training Day
Cape Fear
Quo Vadis
Rebecca
The Towering Inferno
Answer: Quo Vadis
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quo Vadis" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Walter Pidgeon" .   } UNION { ?e <pred:name> "Cape Fear" . ?e <genre> ?e_2 . ?e_2 <pred:name> "film based on literature" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Walter Pidgeon
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Quo Vadis
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Cape Fear
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater