Question: Which movie is longer, Julius Caesar (the one that has Robert Vaughn as a cast member) or Africa (the one whose genre is drama film)?
Choices: Curse of the Golden Flower
The Hunchback of Notre Dame
The Towering Inferno
Africa
Pleasantville
Julius Caesar
A Prairie Home Companion
The Fifth Element
Training Day
Rebecca
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Julius Caesar" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Robert Vaughn" .   } UNION { ?e <pred:name> "Africa" . ?e <genre> ?e_2 . ?e_2 <pred:name> "drama film" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Robert Vaughn
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Julius Caesar
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: Relate
dependencies: 4
inputs: genre
backward
function: Find
inputs: Africa
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: duration
greater
Answer: Julius Caesar