Question: Which has more episodes, The Adventures of Tintin that origins in France or EastEnders?
Choices:
Saturday Night's Main Event
Game of Thrones
Six Feet Under
Robot Chicken
EastEnders
Dancing with the Stars
The Adventures of Tintin
Seinfeld
American Horror Story
Phineas and Ferb
Program:
function: Find
inputs: France
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: The Adventures of Tintin
function: And
dependencies: 1
2
function: Find
inputs: EastEnders
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> "France" .   } UNION { ?e <pred:name> "EastEnders" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: EastEnders