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