Question: Which one of these has more seasons, Spider-Man (the one that origins from Canada) or Around the World in 80 Days (the one whose number of episodes is 6)?
Choices:
American Horror Story
Robot Chicken
Saturday Night's Main Event
Phineas and Ferb
Six Feet Under
Spider-Man
Dancing with the Stars
Seinfeld
Bleak House
Around the World in 80 Days
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Spider-Man
function: And
dependencies: 1
2
function: Find
inputs: Around the World in 80 Days
function: FilterNum
dependencies: 4
inputs: number of episodes
6
=
function: SelectBetween
dependencies: 3
5
inputs: number of seasons
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spider-Man" . ?e <country_of_origin> ?e_1 . ?e_1 <pred:name> "Canada" . } UNION { ?e <pred:name> "Around the World in 80 Days" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "6"^^xsd:double . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Spider-Man