Question: Which lasted longer, The X-Files with Grant Heslov or Will and Grace?
Choices: Phineas and Ferb
Seinfeld
American Horror Story
Six Feet Under
Will & Grace
The X-Files
Saturday Night's Main Event
Robot Chicken
Dancing with the Stars
Game of Thrones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The X-Files" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Grant Heslov" .   } UNION { ?e <pred:name> "Will & Grace" .  } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Grant Heslov
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The X-Files
function: And
dependencies: 1
2
function: Find
inputs: Will & Grace
function: SelectBetween
dependencies: 3
4
inputs: duration
greater
Answer: The X-Files