Question: Between Beverly Hills, 90210 or Stargate SG-1, which has the fewest episodes?
Choices:
Seinfeld
Stargate SG-1
Saturday Night's Main Event
Phineas and Ferb
Bleak House
Dancing with the Stars
Six Feet Under
Robot Chicken
American Horror Story
Beverly Hills, 90210
Program:
function: Find
inputs: Beverly Hills, 90210
function: Find
inputs: Stargate SG-1
function: SelectBetween
dependencies: 0
1
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beverly Hills, 90210" .  } UNION { ?e <pred:name> "Stargate SG-1" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Stargate SG-1