Question: Which show has more episodes, Guiding Light or Dark Shadows (the one whose number of seasons is 5)?
Choices:
Guiding Light
Game of Thrones
Phineas and Ferb
Robot Chicken
Dancing with the Stars
Saturday Night's Main Event
Dark Shadows
Bleak House
American Horror Story
Seinfeld
Answer: Guiding Light
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Guiding Light" . } UNION { ?e <pred:name> "Dark Shadows" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "5"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Guiding Light
function: Find
inputs: Dark Shadows
function: FilterNum
dependencies: 1
inputs: number of seasons
5
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater