Question: Which show has fewer episodes, Spider-Man (the one whose number of episodes is 52) or Egypt (the one whose distributor is BBC)?
Choices: Game of Thrones
Bleak House
Saturday Night's Main Event
Phineas and Ferb
Six Feet Under
Dancing with the Stars
Robot Chicken
American Horror Story
Spider-Man
Egypt
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> "Egypt" . ?e <distributor> ?e_1 . ?e_1 <pred:name> "BBC" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Spider-Man
function: FilterNum
dependencies: 0
inputs: number of episodes
52
=
function: Find
inputs: BBC
function: Relate
dependencies: 2
inputs: distributor
backward
function: Find
inputs: Egypt
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
less
Answer: Egypt