log sql before and after transformations