Question: Are there more episodes in I Spy (with 82 episodes) or the police procedural Bones?
Choices: Saturday Night's Main Event
I Spy
Seinfeld
Game of Thrones
Robot Chicken
Bones
Six Feet Under
Phineas and Ferb
American Horror Story
Bleak House
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "I Spy" . ?e <number_of_episodes> ?pv_1 . ?pv_1 <pred:unit> "1" . ?pv_1 <pred:value> "82"^^xsd:double . } UNION { ?e <pred:name> "Bones" . ?e <genre> ?e_1 . ?e_1 <pred:name> "police procedural" . } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: I Spy
function: FilterNum
dependencies: 0
inputs: number of episodes
82
=
function: Find
inputs: police procedural
function: Relate
dependencies: 2
inputs: genre
backward
function: Find
inputs: Bones
function: And
dependencies: 3
4
function: SelectBetween
dependencies: 1
5
inputs: number of episodes
greater
Answer: Bones