Question: Which TV series distributed by Viacom, CBS' parent organization, has the most episodes?
Choices: Bleak House
Saturday Night's Main Event
The Andy Griffith Show
The Cosby Show
All in the Family
Seinfeld
Dancing with the Stars
Six Feet Under
Robot Chicken
Game of Thrones
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "Viacom" . ?e_2 <parent_organization> ?e_1 . ?e_2 <pred:name> "CBS" .  ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: CBS
function: Relate
dependencies: 0
inputs: parent organization
forward
function: Find
inputs: Viacom
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: distributor
backward
function: FilterConcept
dependencies: 4
inputs: television series
function: SelectAmong
dependencies: 5
inputs: number of episodes
largest
Answer: The Andy Griffith Show