Good question. I think the answer is no -- I never promised consistency ;-)
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...