Question: Does The Vampire Diaries or Spider-Man (that originates in Canada) have fewer seasons?
Choices:
Dancing with the Stars
Bleak House
Saturday Night's Main Event
Game of Thrones
Robot Chicken
The Vampire Diaries
American Horror Story
Seinfeld
Six Feet Under
Spider-Man
Answer: Spider-Man
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Vampire Diaries" .  } UNION { ?e <pred:name> "Spider-Man" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Vampire Diaries
function: Find
inputs: Canada
function: Relate
dependencies: 1
inputs: country of origin
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
less