Question: Did the police procedural genre 'Wanted' or did Cagney & Lacey have more seasons?
Choices:
Phineas and Ferb
American Horror Story
Game of Thrones
Six Feet Under
Wanted
Bleak House
Dancing with the Stars
Robot Chicken
Cagney & Lacey
Saturday Night's Main Event
Answer: Cagney & Lacey
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wanted" . ?e <genre> ?e_1 . ?e_1 <pred:name> "police procedural" .   } UNION { ?e <pred:name> "Cagney & Lacey" .  } ?e <number_of_seasons> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: police procedural
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Wanted
function: And
dependencies: 1
2
function: Find
inputs: Cagney & Lacey
function: SelectBetween
dependencies: 3
4
inputs: number of seasons
greater