Question: Does The Red Violin or Grey Gardens (that has Drew Barrymore as a cast member) have the longer runtime?
Choices:
The Fifth Element
The Towering Inferno
A Prairie Home Companion
Talk to Her
Pleasantville
Curse of the Golden Flower
The Red Violin
Grey Gardens
Rebecca
The Hunchback of Notre Dame
Answer: The Red Violin
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Red Violin" .  } UNION { ?e <pred:name> "Grey Gardens" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Drew Barrymore" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Red Violin
function: Find
inputs: Drew Barrymore
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Grey Gardens
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater