Question: Which has more episodes, Planet of the Apes (the one whose number of seasons is 1) or Working Girl (the one that is originally aired on NBC)?
Choices: Dancing with the Stars
Phineas and Ferb
Working Girl
Six Feet Under
Saturday Night's Main Event
Bleak House
American Horror Story
Robot Chicken
Planet of the Apes
Game of Thrones
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Planet of the Apes" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "1"^^xsd:double . } UNION { ?e <pred:name> "Working Girl" . ?e <original_network> ?e_1 . ?e_1 <pred:name> "NBC" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Planet of the Apes
function: FilterNum
dependencies: 0
inputs: number of seasons
1
=
function: Find
inputs: NBC
function: Relate
dependencies: 2
inputs: original network
backward
function: Find
inputs: Working Girl
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
Answer: Planet of the Apes