add having ast conversion