Question: Does The Sopranos or the 14-episode Planet of the Apes have more episodes?
Choices: The Sopranos
Bleak House
American Horror Story
Seinfeld
Six Feet Under
Game of Thrones
Robot Chicken
Planet of the Apes
Phineas and Ferb
Dancing with the Stars
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Sopranos" . } UNION { ?e <pred:name> "Planet of the Apes" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "14"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: The Sopranos
function: Find
inputs: Planet of the Apes
function: FilterNum
dependencies: 1
inputs: number of episodes
14
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater
Answer: The Sopranos