Question: Which has more episodes, The Firm that origins from Canada or Guiding Light?
Choices:
Robot Chicken
Dancing with the Stars
Game of Thrones
Saturday Night's Main Event
Seinfeld
Guiding Light
American Horror Story
Phineas and Ferb
Bleak House
The Firm
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Firm
function: And
dependencies: 1
2
function: Find
inputs: Guiding Light
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Firm" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "Guiding Light" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Guiding Light