Question: Which has more episodes, America's Got Talent or Lost in Space (number of seasons is 3)?
Choices: America's Got Talent
Dancing with the Stars
Saturday Night's Main Event
Six Feet Under
Lost in Space
Phineas and Ferb
American Horror Story
Robot Chicken
Game of Thrones
Seinfeld
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "America's Got Talent" . } UNION { ?e <pred:name> "Lost in Space" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "3"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: America's Got Talent
function: Find
inputs: Lost in Space
function: FilterNum
dependencies: 1
inputs: number of seasons
3
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater
Answer: America's Got Talent