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