Question: Which has more episodes, The Adventures of Tintin that origins from Canada or Tenjho Tenge?
Choices:
Phineas and Ferb
Robot Chicken
The Adventures of Tintin
Tiny Toon Adventures
Aladdin
The Cleveland Show
American Dad!
Batman Beyond
The Venture Bros.
South Park
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Adventures of Tintin
function: And
dependencies: 1
2
function: Find
inputs: Tenjho Tenge
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Adventures of Tintin" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" .   } UNION { ?e <pred:name> "Tenjho Tenge" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: The Adventures of Tintin