Question: Which show has more episodes, Late Show with David Letterman or The Incredible Hulk (the one whose number of seasons is 2)?
Choices:
American Horror Story
Late Show with David Letterman
Game of Thrones
Saturday Night's Main Event
Phineas and Ferb
Bleak House
Dancing with the Stars
Seinfeld
The Incredible Hulk
Robot Chicken
Answer: Late Show with David Letterman
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Late Show with David Letterman" . } UNION { ?e <pred:name> "The Incredible Hulk" . ?e <number_of_seasons> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "2"^^xsd:double . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Late Show with David Letterman
function: Find
inputs: The Incredible Hulk
function: FilterNum
dependencies: 1
inputs: number of seasons
2
=
function: SelectBetween
dependencies: 0
2
inputs: number of episodes
greater