Fixed a bug in the query verify procedure: wasn't taking into account that sub-conditions are arrays and that a statement may only have one sub-condition.