Question: Which show has more seasons, SpongeBob SquarePants or The Office (the one whose number of seasons is 2)?
Choices:
The Cleveland Show
The Venture Bros.
South Park
Tiny Toon Adventures
Phineas and Ferb
The Office
Robot Chicken
SpongeBob SquarePants
Aladdin
Batman Beyond
Answer: SpongeBob SquarePants
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "SpongeBob SquarePants" . } UNION { ?e <pred:name> "The Office" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: SpongeBob SquarePants
function: Find
inputs: The Office
function: FilterNum
dependencies: 1
inputs: number of seasons
2
=
function: SelectBetween
dependencies: 0
2
inputs: number of seasons
greater