Query Transformation Fix

Issue was, that order of outgoing edges for transformed ops was changed which causes trouble if order is relevant.