Question: Which show has more total episodes, Fringe or Dynasty, which had 22 episodes?
Choices: Robot Chicken
Phineas and Ferb
Game of Thrones
Saturday Night's Main Event
Dynasty
Six Feet Under
Dancing with the Stars
Bleak House
American Horror Story
Fringe
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Dynasty" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "22"^^xsd:double . } UNION { ?e <pred:name> "Fringe" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Dynasty
function: FilterNum
dependencies: 0
inputs: number of episodes
22
=
function: Find
inputs: Fringe
function: SelectBetween
dependencies: 1
2
inputs: number of episodes
greater
Answer: Fringe