Split SQL into several lines
respect deleted status