Question: Does Frasier or Freakazoid! have the greater number of episodes?
Choices:
Saturday Night's Main Event
Seinfeld
Frasier
Phineas and Ferb
Six Feet Under
Robot Chicken
Bleak House
Freakazoid!
American Horror Story
Dancing with the Stars
Program:
function: Find
inputs: Frasier
function: Find
inputs: Freakazoid!
function: SelectBetween
dependencies: 0
1
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Frasier" .  } UNION { ?e <pred:name> "Freakazoid!" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Frasier