How this tool computes its result
Strips -- line comments, then uppercases a fixed list of about 24 SQL keywords (SELECT, FROM, WHERE, JOIN variants, GROUP BY, etc.) matched case-insensitively, with the longest keywords matched first so multi-word keywords like "GROUP BY" aren't partially matched by "GROUP" alone. Formatting then inserts a newline before each of 17 specific clause-starting keywords, normalizes comma and equals spacing, and indents lines starting with ON/AND/OR/JOIN by 2 spaces. Minifying reuses the same keyword uppercasing and comment stripping, then collapses all whitespace to single spaces and removes spacing around commas and equals instead of adding it.
