Question: Does the Mars executive produced by Brian Grazer or Star Trek: The Animated Series have the higher episode tally?
Choices:
Aladdin
South Park
The Cleveland Show
The Venture Bros.
Star Trek: The Animated Series
American Dad!
Phineas and Ferb
Robot Chicken
Tiny Toon Adventures
Batman Beyond
Answer: Star Trek: The Animated Series
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Mars" . ?e <executive_producer> ?e_1 . ?e_1 <pred:name> "Brian Grazer" .   } UNION { ?e <pred:name> "Star Trek: The Animated Series" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Brian Grazer
function: Relate
dependencies: 0
inputs: executive producer
backward
function: Find
inputs: Mars
function: And
dependencies: 1
2
function: Find
inputs: Star Trek: The Animated Series
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater