Question: Which show has fewer episodes, The Kingdom (the one whose number of episodes is 8) or The Untouchables (the one whose number of seasons is 4)?
Choices: The Untouchables
The Kingdom
Six Feet Under
Game of Thrones
American Horror Story
Seinfeld
Robot Chicken
Bleak House
Phineas and Ferb
Dancing with the Stars
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Kingdom" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "8"^^xsd:double . } UNION { ?e <pred:name> "The Untouchables" . ?e <number_of_seasons> ?pv_2 . ?pv_2 <pred:unit> "1" . ?pv_2 <pred:value> "4"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: The Kingdom
function: FilterNum
dependencies: 0
inputs: number of episodes
8
=
function: Find
inputs: The Untouchables
function: FilterNum
dependencies: 2
inputs: number of seasons
4
=
function: SelectBetween
dependencies: 1
3
inputs: number of episodes
less
Answer: The Kingdom