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