fix reply detection. change column pattern query design