Question: Which has a greater number of episodes, Star Trek: Deep Space Nine or Santa Barbara (which has Robin Wright as a cast member)?
Choices:
American Horror Story
Santa Barbara
Game of Thrones
Seinfeld
Six Feet Under
Dancing with the Stars
Bleak House
Saturday Night's Main Event
Robot Chicken
Star Trek: Deep Space Nine
Answer: Santa Barbara
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Star Trek: Deep Space Nine" .  } UNION { ?e <pred:name> "Santa Barbara" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Robin Wright" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Star Trek: Deep Space Nine
function: Find
inputs: Robin Wright
function: Relate
dependencies: 1
inputs: cast member
backward
function: Find
inputs: Santa Barbara
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
greater