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