Question: Were there more episodes in Damages or the 4 season long Beetlejuice?
Choices: Bleak House
Game of Thrones
Beetlejuice
Six Feet Under
American Horror Story
Robot Chicken
Saturday Night's Main Event
Seinfeld
Phineas and Ferb
Damages
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Damages" . } UNION { ?e <pred:name> "Beetlejuice" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "4"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Damages
function: Find
inputs: Beetlejuice
function: FilterNum
dependencies: 1
inputs: number of seasons
4
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater
Answer: Beetlejuice