Question: Which show has fewer episodes, Twin Peaks (the one whose number of seasons is 1) or WCW Monday Nitro?
Choices:
Game of Thrones
WCW Monday Nitro
Six Feet Under
Phineas and Ferb
Dancing with the Stars
Seinfeld
Twin Peaks
Saturday Night's Main Event
American Horror Story
Bleak House
Program:
function: Find
inputs: Twin Peaks
function: FilterNum
dependencies: 0
inputs: number of seasons
1
=
function: Find
inputs: WCW Monday Nitro
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Twin Peaks" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } UNION { ?e <pred:name> "WCW Monday Nitro" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Twin Peaks