"SQL is a query language. Why would Google treat it like code?"
Because...it's a programming language, and therefore...it is code?
Because...it's a programming language, and therefore...it is code?
It's also literally the classic example of a "fourth-generation programming language."