add sql, need to modify rule