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