Question: Which has more seasons, Comic Relief Does Fame Academy or Limitless (the one whose genre is police procedural)?
Choices:
Seinfeld
Phineas and Ferb
Bleak House
Saturday Night's Main Event
Comic Relief Does Fame Academy
Six Feet Under
Robot Chicken
Limitless
American Horror Story
Dancing with the Stars
Answer: Comic Relief Does Fame Academy
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Comic Relief Does Fame Academy" .  } UNION { ?e <pred:name> "Limitless" . ?e <genre> ?e_1 . ?e_1 <pred:name> "police procedural" .   } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Comic Relief Does Fame Academy
function: Find
inputs: police procedural
function: Relate
dependencies: 1
inputs: genre
backward
function: Find
inputs: Limitless
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of seasons
greater