fix IF NOT EXISTS clause parsing logic
format select