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