Question: Which show has more seasons, Quincy (the one whose number of episodes is 148) or The Singing Detective (the one whose genre is film noir)?
Choices: The Singing Detective
Robot Chicken
Dancing with the Stars
Quincy
Bleak House
Saturday Night's Main Event
Game of Thrones
American Horror Story
Phineas and Ferb
Six Feet Under
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quincy" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "148"^^xsd:double . } UNION { ?e <pred:name> "The Singing Detective" . ?e <genre> ?e_1 . ?e_1 <pred:name> "film noir" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Quincy
function: FilterNum
dependencies: 0
inputs: number of episodes
148
=
function: Find
inputs: film noir
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: The Singing Detective
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
Answer: Quincy