Question: Which has more seasons, Pretty Little Liars with 160 episodes or Star Trek: The Animated Series?
Choices:
Seinfeld
Pretty Little Liars
Saturday Night's Main Event
Star Trek: The Animated Series
Dancing with the Stars
Robot Chicken
Game of Thrones
American Horror Story
Six Feet Under
Phineas and Ferb
Answer: Pretty Little Liars
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pretty Little Liars" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "160"^^xsd:double . } UNION { ?e <pred:name> "Star Trek: The Animated Series" . } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Pretty Little Liars
function: FilterNum
dependencies: 0
inputs: number of episodes
160
=
function: Find
inputs: Star Trek: The Animated Series
function: SelectBetween
dependencies: 1
2
inputs: number of seasons
greater