remove check for revflow in query_cmp