Input: primitive name pName, input unit data , blocking queue in following query primitive , tag name tName, input position index i, and output position index j in history record of unit data, region encoding , relation index , and global result .
Output: none. The local results are processed in the algorithm: either put into the queue or output directly to the global result.