`select abs(...)` would make the intention here much clearer. `-1` is a magic number.