squash, fixes subquery with insert_bulk