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