SELECT 1 instead of * when we only care about existence
Strip end-of-line whitespace and excessive blank lines

because I have nothing better else to do...?