Question: Does Barney Miller or WWII-themed Wonder Woman have the fewer episodes?
Choices:
Saturday Night's Main Event
Dancing with the Stars
Bleak House
Six Feet Under
Seinfeld
Wonder Woman
Robot Chicken
Phineas and Ferb
American Horror Story
Barney Miller
Program:
function: Find
inputs: Barney Miller
function: Find
inputs: World War II
function: Relate
dependencies: 1
inputs: main subject
backward
function: Find
inputs: Wonder Woman
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Barney Miller" .  } UNION { ?e <pred:name> "Wonder Woman" . ?e <main_subject> ?e_1 . ?e_1 <pred:name> "World War II" .   } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Wonder Woman