Question: Which one, The Simpsons or Friends (the one that is a notable work of Matthew Perry), has greater duration?
Choices: Saturday Night's Main Event
The Simpsons
Game of Thrones
Bleak House
Dancing with the Stars
Friends
Phineas and Ferb
American Horror Story
Robot Chicken
Seinfeld
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Simpsons" .  } UNION { ?e <pred:name> "Friends" . ?e_1 <notable_work> ?e . ?e_1 <pred:name> "Matthew Perry" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Simpsons
function: Find
inputs: Matthew Perry
function: Relate
dependencies: 1
inputs: notable work
forward
function: Find
inputs: Friends
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Friends