Common Lisp is case-folding to upper case by default so DEFUN and defun are the same; both tokens denote a symbol whose name is the character string "DEFUN".
Symbol names themselves are sensitive; "DEFUN", "Defun" and "defun" are all different character strings and different symbol names. (find-symbol "defun") will not find the defun symbol.
In Common Lisp, you can carry on the sane coding convention as described by the grandparent comment, whereby built-ins like DEFUN and LET are written in upper case, and your own identifiers are mixed case.
For Python, I'd follow PEP8 [1], as it is more important to follow the local programming culture, even if it has some warts. Otherwise, programs from multiple people would quickly become messy, and learning and code reuse between projects becomes harder.
I didn't do much lisp, but considered the builtins as library functions I theoretically could have written myself. So they were lower case, as coherent with all other names of functions etc...
Can't comment on Lua, I've done <100 lines of it and forgot basically all of it.
I used to write BASIC keywords in upper case and vars lowercase (GOTO longlongago)
Tradeoffs, tradeoffs, tradeoffs, as always. I presume SQL has not much consistency in formatting and casing, so I grew my own convention.
[1] https://peps.python.org/pep-0008/#prescriptive-naming-conven...