Question: Does 3rd Rock from the Sun or the 26-episode Back to the Future have more episodes?
Choices:
American Horror Story
Game of Thrones
Saturday Night's Main Event
3rd Rock from the Sun
Seinfeld
Phineas and Ferb
Dancing with the Stars
Robot Chicken
Back to the Future
Bleak House
Answer: 3rd Rock from the Sun
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "3rd Rock from the Sun" . } UNION { ?e <pred:name> "Back to the Future" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "26"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: 3rd Rock from the Sun
function: Find
inputs: Back to the Future
function: FilterNum
dependencies: 1
inputs: number of episodes
26
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater