Question: Does Northern Exposure have more episodes, or does The Singing Detective, featuring Imelda Staunton as a cast member?
Choices:
Northern Exposure
Dancing with the Stars
Bleak House
Game of Thrones
Phineas and Ferb
Saturday Night's Main Event
American Horror Story
Seinfeld
Robot Chicken
The Singing Detective
Answer: Northern Exposure
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Northern Exposure" .  } UNION { ?e <pred:name> "The Singing Detective" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Imelda Staunton" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Northern Exposure
function: Find
inputs: Imelda Staunton
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: The Singing Detective
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
greater