Question: Which is longer, Last of the Summer Wine or Spider-Man (the one whose production company is Marvel Entertainment)?
Choices: Last of the Summer Wine
Dancing with the Stars
Six Feet Under
American Horror Story
Robot Chicken
Bleak House
Seinfeld
Spider-Man
Phineas and Ferb
Game of Thrones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Last of the Summer Wine" .  } UNION { ?e <pred:name> "Spider-Man" . ?e <production_company> ?e_1 . ?e_1 <pred:name> "Marvel Entertainment" .   } ?e <duration> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Last of the Summer Wine
function: Find
inputs: Marvel Entertainment
function: Relate
dependencies: 1
inputs: production company
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: duration
greater
Answer: Last of the Summer Wine