Question: Which show has fewer seasons, Sex and the City (the one that is originally aired on HBO) or The View?
Choices:
The View
American Horror Story
Phineas and Ferb
Bleak House
Sex and the City
Six Feet Under
Dancing with the Stars
Seinfeld
Game of Thrones
Saturday Night's Main Event
Program:
function: Find
inputs: HBO
function: Relate
dependencies: 0
inputs: original network
backward
function: Find
inputs: Sex and the City
function: And
dependencies: 1
2
function: Find
inputs: The View
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Sex and the City" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "HBO" .   } UNION { ?e <pred:name> "The View" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Sex and the City