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