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