Question: Which has fewer episodes, The Ten Commandments (the one whose composer is Randy Edelman) or L.A. Law?
Choices:
George Washington
The Diary of Anne Frank
The Stand
Roots
The Ten Commandments
L.A. Law
Emma
Battlestar Galactica
The Civil War
The Pacific
Program:
function: Find
inputs: Randy Edelman
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: The Ten Commandments
function: And
dependencies: 1
2
function: Find
inputs: L.A. Law
function: SelectBetween
dependencies: 3
4
inputs: number of episodes
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "The Ten Commandments" . ?e <composer> ?e_1 . ?e_1 <pred:name> "Randy Edelman" .   } UNION { ?e <pred:name> "L.A. Law" .  } ?e <number_of_episodes> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: The Ten Commandments