Type formatsql
in the Alfred popup to activate the workflow.
This workflow takes whatever is in clipboard when called (preferably an SQL query) and tries to format it using sqlformat.org API.
The query is properly indented and identifiers are changed to uppercase.
Once the formatting is complete you will get an option to copy the result to clipboard and also be inserted in the currently active window (if applicable).