refactor SQLs by using multiline