Question: Which movie is longer, Cheers or Spartacus (the one whose genre is historical period drama)?
Choices: Game of Thrones
Bleak House
Cheers
Robot Chicken
Saturday Night's Main Event
Spartacus
American Horror Story
Six Feet Under
Phineas and Ferb
Dancing with the Stars
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Cheers" .  } UNION { ?e <pred:name> "Spartacus" . ?e <genre> ?e_1 . ?e_1 <pred:name> "historical period drama" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Cheers
function: Find
inputs: historical period drama
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Spartacus
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Spartacus