Question: Which has more episodes, Spider-Man (the one whose number of episodes is 52) or Paris (the one whose number of seasons is 1)?
Choices:
Phineas and Ferb
Spider-Man
Robot Chicken
Six Feet Under
Bleak House
Paris
Saturday Night's Main Event
Dancing with the Stars
Game of Thrones
Seinfeld
Program:
function: Find
inputs: Spider-Man
function: FilterNum
dependencies: 0
inputs: number of episodes
52
=
function: Find
inputs: Paris
function: FilterNum
dependencies: 2
inputs: number of seasons
1
=
function: SelectBetween
dependencies: 1
3
inputs: number of episodes
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Spider-Man" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "52"^^xsd:double . } UNION { ?e <pred:name> "Paris" . ?e <number_of_seasons> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "1"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Spider-Man