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