Question: Which has fewer episodes, General Hospital or Thirtysomething?
Choices:
Saturday Night's Main Event
Thirtysomething
Six Feet Under
Robot Chicken
General Hospital
Game of Thrones
Bleak House
Seinfeld
American Horror Story
Dancing with the Stars
Program:
function: Find
inputs: General Hospital
function: Find
inputs: Thirtysomething
function: SelectBetween
dependencies: 0
1
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "General Hospital" .  } UNION { ?e <pred:name> "Thirtysomething" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Thirtysomething