Does it do anything but uppercase keywords? Is it going to add line breaks or indentation at some point?
I also normalize by removing optional/redundant keyword noise, I'm looking at you INNER/OUTER.
This has to do with the outline of letters in uppercase being indistinct (if you trace an outline - especially with serif fonts - you’ll largely just get a block) so you need to spend more time per-letter to distinguish the characters whereas with lowercase, the “fitted box” shape is shared between fewer letters: https://www.sciencedirect.com/science/article/pii/S004269890...
"Under US law, disclaimers must be 'conspicuous'" https://law.stackexchange.com/a/18210
If we wrote:
select(col1, col2, col3, ..., from=table_name, limit=5)
or something like that, it's obvious what are the intrinsics and what are the variable parts without knowing anything about select but for SQL you need to know all the "sentence patterns".In any case, it is objectively not more human writeable.